Commits

Christopher Young  committed 3e2087d

Edit link for superusers on every timeslot.

  • Participants
  • Parent commits 85b6c28

Comments (0)

Files changed (1)

File renters/templates/renters/renter_detail.html

       <p>Reserved for: {{ time_slot.renter.first_name }} {{ time_slot.renter.last_name }}</p>
         {% if time_slot.renter.contact_info_visible %}
             {% if time_slot.renter.email %}
-            <p>Email: <a href="mailto:{{ time_slot.renter.email }}">{{ time_slot.renter.email }}</a></p>
+            <br/>Email: <a href="mailto:{{ time_slot.renter.email }}">{{ time_slot.renter.email }}</a>
             {% endif %}
             {% if time_slot.renter.mobile_phone_number %}
-            <p>Cell: {{ time_slot.renter.mobile_phone_number }}</p>
+            <br/>Cell: {{ time_slot.renter.mobile_phone_number }}
             {% endif %}
             {% if time_slot.renter.home_phone_number %}
-            <p>Home Phone Number: {{ time_slot.renter.home_phone_number }}</p>
+            <br/>Home Phone Number: {{ time_slot.renter.home_phone_number }}
             {% endif %}
 	{% endif %}
       {% endif %}
 
+    {% if user.is_superuser %}
+    <p><a href="/admin/timeslots/timeslot/{{ time_slot.pk }}">Edit timeslot</a></p>
+    {% endif %}
+
+
 
     </li> <!--timeslot-->
 {% endfor %}