Rewrite Notification subsystem
[pharos-tools.git] / dashboard / src / templates / notifier / new_booking.html
1 <html>
2     <body>
3         <div id="message_content_wrapper">
4             {% if owner %}
5             <h3>You have created a new booking</h3>
6             <p>We have recieved your booking request and will start working on it right away.</p>
7             {% else %}
8             <h3>You have been added as a collaborator to a booking</h3>
9             <p>{{booking.owner.username}} has given you access to thier booking.</p>
10             {% endif %}
11             <p>Booking information:</p>
12             <ul>
13                 <li>owner: {{booking.owner.username}}</li>
14                 <li>id: {{booking.id}}</li>
15                 <li>lab: {{booking.resource.template.lab.lab_user.username}}</li>
16                 <li>resource: {{booking.resource.template.name}}</li>
17                 <li>start: {{booking.start}}</li>
18                 <li>end: {{booking.end}}</li>
19                 <li>purpose: {{booking.purpose}}</li>
20                 <li>collaborators:
21                     <ul>
22                         {% for user in booking.collaborators.all %}
23                         <li>user.username</li>
24                         {% empty %}
25                         <li>No collaborators</li>
26                         {% endfor %}
27                     </ul>
28                 </li>
29             </ul>
30
31             <p>You can find more detailed information <a href=/booking/detail/{{booking.id/>Here</a></p>
32         </div>
33     </body>
34 </html>