project/templates/user/account.html
changeset 1 fda1c66b25f9
child 28 09032925ad9d
equal deleted inserted replaced
0:9a77edda77b7 1:fda1c66b25f9
       
     1 {% extends "base.html" %}
       
     2           <li class="last"><a
       
     3             href="mailto:kauaerangastore@xtra.co.nz">kauaerangastore@xtra.co.nz</a></li>
       
     4 <!-- TODO: Lot of fees related and New Zealand group related info. -->
       
     5 {% block title %}My Profile{% endblock %}
       
     6 
       
     7 {% block content %}
       
     8 <h1>My Profile: {{ user.first_name }} {{user.last_name}}</h1>
       
     9 
       
    10 <table class="kiwipycon-default">
       
    11     <tr>
       
    12         <td class="label">
       
    13             Username:
       
    14         </td>
       
    15         <td>
       
    16           {{ user.username }}
       
    17         </td>
       
    18     </tr>
       
    19     <tr>
       
    20         <td class="label">
       
    21             Name:
       
    22         </td>
       
    23         <td>
       
    24         {% if user.first_name %}
       
    25             <span>{{ user.get_full_name }}</span>
       
    26         {% else %}
       
    27         <span class="important">No name, please <a 
       
    28             href="{% url kiwipycon_edit_profile %}">edit profile</a>.</span>
       
    29         {% endif %}
       
    30         </td>
       
    31         <td rowspan="4">
       
    32         <div class="picture">
       
    33           <img src="{{ photo }}" width="80" height="80" />
       
    34         </div>
       
    35         </td>
       
    36     </tr>
       
    37     <tr>
       
    38         <td class="label">
       
    39             Email:
       
    40         </td>
       
    41         <td>
       
    42             <a href="mailto:{{ user.email }}">{{ user.email }}</a>
       
    43         </td>
       
    44     </tr>
       
    45     <tr>
       
    46         <td class="label">
       
    47           Url:
       
    48         </td>
       
    49         <td>
       
    50             <a href="{{ profile.url }}" target="_blank">{{ profile.url }}</a>
       
    51         </td>
       
    52     </tr>
       
    53     <tr>
       
    54         <td class="label">
       
    55           About:
       
    56         </td>
       
    57         <td style="width: 40em">
       
    58           {{ profile.about }}
       
    59         </td>
       
    60     </tr>
       
    61 </table>
       
    62 {% if comment %}
       
    63 <strong>{{ comment }}</strong>
       
    64 {% endif %}
       
    65 {% if form %}
       
    66 <!-- wifi form -->
       
    67   <h2>Wifi</h2>
       
    68 <p>The following form will help the SciPy.in team identify wireless
       
    69 requirements.</p> 
       
    70 <form action="" method="post">
       
    71 <table>
       
    72   {{ form }}
       
    73 </table>
       
    74 <input type="submit" value="submit" />
       
    75 </form>
       
    76 {% endif %}
       
    77 {% if registration %}
       
    78 <div id="talks">
       
    79   <h2>Your Registration</h2>
       
    80 <p>
       
    81   <a href="/edit-registration/{{ registration.id }}/"
       
    82     title="Edit">Edit Registration</a>
       
    83   {% if registration.sponsor %}
       
    84   {% else %}
       
    85   | <a href="/invoice/"
       
    86     title="Your invoice (html)">Your invoice (html)</a> (<a href="/pdf_invoice/"
       
    87     title="Your invoice (pdf)">pdf</a>)</p>
       
    88   {% endif %}
       
    89   </p>
       
    90 </div>
       
    91 {% endif %}
       
    92 {% if talks %}
       
    93 <div id="talks">
       
    94   <h2>Your Submitted Talks</h2>
       
    95   <table class="kiwipycon-default" border="1">
       
    96     <th>Title</th>
       
    97     <th>Duration</th>
       
    98     <th>Audience</th>
       
    99     <th>Tags</th>
       
   100     <th>&nbsp;</th>
       
   101 {% for talk in talks %}
       
   102 <tr>
       
   103 <td>{{ talk.title }}</td>
       
   104 <td>{{ talk.duration }}</td>
       
   105 <td>{{ talk.audience }}</td>
       
   106 <td>{{ talk.tags }}</td>
       
   107 <td>
       
   108         {% if talk.approved %}
       
   109           <span>Accepted</span>
       
   110         {% else %}
       
   111           <a href="/edit-talk/{{ talk.id }}/" title="Edit">Edit</a>
       
   112         {% endif %}
       
   113 </td>
       
   114 </tr>
       
   115 {% endfor %}
       
   116 </table>
       
   117 </div>
       
   118 {% endif %}
       
   119 {% endblock content %}