project/templates/user/account.html
changeset 139 6e4719bb7df0
parent 135 782f958b2cb2
child 189 ff5ee7c15f21
equal deleted inserted replaced
138:250e2731039d 139:6e4719bb7df0
     4 
     4 
     5 {% block content %}
     5 {% block content %}
     6 <h1>My Profile: {{ user.first_name }} {{user.last_name}}</h1>
     6 <h1>My Profile: {{ user.first_name }} {{user.last_name}}</h1>
     7 
     7 
     8 <table class="scipycon-default">
     8 <table class="scipycon-default">
     9     <tr>
     9   <tr>
    10         <td class="label">
    10     <td class="label">Username:</td>
    11             Username:
    11     <td>{{ user.username }}</td>
    12         </td>
    12   </tr>
    13         <td>
    13   <tr>
    14           {{ user.username }}
    14     <td class="label">Name:</td>
    15         </td>
    15     <td>
    16     </tr>
    16       {% if user.first_name %}
    17     <tr>
    17         <span>{{ user.get_full_name }}</span>
    18         <td class="label">
    18       {% else %}
    19             Name:
       
    20         </td>
       
    21         <td>
       
    22         {% if user.first_name %}
       
    23             <span>{{ user.get_full_name }}</span>
       
    24         {% else %}
       
    25         <span class="important">
    19         <span class="important">
    26           No name, please
    20           No name, please
    27           <a href="{% url scipycon_edit_profile params.scope %}">
    21           <a href="{% url scipycon_edit_profile params.scope %}">
    28             edit profile
    22             edit profile
    29           </a>.
    23           </a>.
    30         </span>
    24         </span>
    31         {% endif %}
    25       {% endif %}
    32         </td>
    26     </td>
    33         <td rowspan="4">
    27     <td rowspan="4">
    34         <div class="picture">
    28       <div class="picture">
    35           <img src="{{ photo }}" width="80" height="80" />
    29         <img src="{{ photo }}" width="80" height="80" />
    36         </div>
    30       </div>
    37         </td>
    31     </td>
    38     </tr>
    32   </tr>
    39     <tr>
    33   <tr>
    40         <td class="label">
    34     <td class="label">Email:</td>
    41             Email:
    35     <td><a href="mailto:{{ user.email }}">{{ user.email }}</a></td>
    42         </td>
    36   </tr>
    43         <td>
    37   <tr>
    44             <a href="mailto:{{ user.email }}">{{ user.email }}</a>
    38     <td class="label">Url:</td>
    45         </td>
    39     <td>
    46     </tr>
    40       <a href="{{ profile.url }}" target="_blank">{{ profile.url }}</a>
    47     <tr>
    41     </td>
    48         <td class="label">
    42   </tr>
    49           Url:
    43   <tr>
    50         </td>
    44     <td class="label">About:</td>
    51         <td>
    45     <td style="width: 40em">{{ profile.about }}</td>
    52             <a href="{{ profile.url }}" target="_blank">{{ profile.url }}</a>
    46   </tr>
    53         </td>
       
    54     </tr>
       
    55     <tr>
       
    56         <td class="label">
       
    57           About:
       
    58         </td>
       
    59         <td style="width: 40em">
       
    60           {{ profile.about }}
       
    61         </td>
       
    62     </tr>
       
    63 </table>
    47 </table>
    64 {% if comment %}
    48 
    65 <strong>{{ comment }}</strong>
    49 {% if registration %}
       
    50   <div id="talks">
       
    51     <h1>My Registration Details</h1>
       
    52     <table class="scipycon-default">
       
    53       <tr>
       
    54         <td class="label">{{ event.get_full_name }} ID:</td>
       
    55         <td>{{ registration.slug }}</td>
       
    56       </tr>
       
    57       <tr>
       
    58         <td class="label">Attending Conference:</td>
       
    59         <td>{% if registration.conference %}Yes{% else %}No{% endif %}</td>
       
    60       </tr>
       
    61       <tr>
       
    62         <td class="label">Attending Tutorials:</td>
       
    63         <td>{% if registration.tutorial %}Yes{% else %}No{% endif %}</td>
       
    64       </tr>
       
    65       <tr>
       
    66         <td class="label">Attending Sprints:</td>
       
    67         <td>{% if registration.sprint %}Yes{% else %}No{% endif %}</td>
       
    68       </tr>
       
    69       <tr>
       
    70         <td class="label">Organisation:</td>
       
    71         <td>{{ registration.organisation }}</td>
       
    72       </tr>
       
    73       <tr>
       
    74         <td class="label">Occupation:</td>
       
    75         <td>{{ registration.occupation }}</td>
       
    76       </tr>
       
    77       <tr>
       
    78         <td class="label">City:</td>
       
    79         <td>{{ registration.city }}</td>
       
    80       </tr>
       
    81       <tr>
       
    82         <td class="label">Post Code:</td>
       
    83         <td>{{ registration.postcode }}</td>
       
    84       </tr>
       
    85       <tr>
       
    86         <td class="label">Phone Number:</td>
       
    87         <td>{{ registration.phone_num }}</td>
       
    88       </tr>
       
    89       <tr>
       
    90         <td class="label">Allow Contact:</td>
       
    91         <td>{% if registration.allow_contact %}Yes{% else %}No{% endif %}</td>
       
    92       </tr>
       
    93       <tr>
       
    94         <td class="label">Registered On:</td>
       
    95         <td>{{ registration.submitted|date:"jS F Y H:i" }}</td>
       
    96       </tr>
       
    97       <tr>
       
    98         <td class="label">Last Modified On:</td>
       
    99         <td>{{ registration.last_mod|date:"jS F Y H:i" }}</td>
       
   100       </tr>
       
   101     </table>
       
   102     <p>
       
   103       <a href="{% url scipycon_edit_registration params.scope
       
   104           registration.id %}" title="Edit">Edit Registration</a>
       
   105     </p>
       
   106   </div>
    66 {% endif %}
   107 {% endif %}
    67 
   108 
    68 {% if registration %}
       
    69 <div id="talks">
       
    70   <h2>Your Registration</h2>
       
    71 <p>
       
    72   <a href="{% url scipycon_edit_registration params.scope registration.id %}"
       
    73     title="Edit">Edit Registration</a>
       
    74   </p>
       
    75 </div>
       
    76 {% endif %}
       
    77 {% if talks %}
   109 {% if talks %}
    78 <div id="talks">
   110   <div id="talks">
    79   <h2>Your Submitted Talks</h2>
   111     <h1>My Submitted Talks</h1>
    80   <table class="scipycon-default" border="1">
   112     <table class="scipycon-default" border="1">
    81     <th>Title</th>
   113       <th>Title</th>
    82     <th>Duration</th>
   114       <th>Duration</th>
    83     <th>Audience</th>
   115       <th>Audience</th>
    84     <th>Tags</th>
   116       <th>Tags</th>
    85     <th>&nbsp;</th>
   117       <th>&nbsp;</th>
    86 {% for talk in talks %}
   118       {% for talk in talks %}
    87 <tr>
   119         <tr>
    88 <td>{{ talk.title }}</td>
   120           <td>{{ talk.title }}</td>
    89 <td>{{ talk.duration }}</td>
   121           <td>{{ talk.duration }}</td>
    90 <td>{{ talk.audience }}</td>
   122           <td>{{ talk.audience }}</td>
    91 <td>{{ talk.tags }}</td>
   123           <td>{{ talk.tags }}</td>
    92 <td>
   124           <td>
    93         {% if talk.approved %}
   125             {% if talk.approved %}
    94           <span>Accepted</span>
   126               <span>Accepted</span>
    95         {% else %}
   127             {% else %}
    96           <a href="/edit-talk/{{ talk.id }}/" title="Edit">Edit</a>
   128               <a href="/edit-talk/{{ talk.id }}/" title="Edit">Edit</a>
    97         {% endif %}
   129             {% endif %}
    98 </td>
   130           </td>
    99 </tr>
   131         </tr>
   100 {% endfor %}
   132       {% endfor %}
   101 </table>
   133     </table>
   102 </div>
   134   </div>
   103 {% endif %}
   135 {% endif %}
   104 {% endblock content %}
   136 {% endblock content %}