2a0b67d469994926e4198ca5decb6278d7e1229b
[myslice.git] / forge / templates / createLab.html
1 <!DOCTYPE html>
2 <html>
3         <head>
4                 <meta charset="utf-8">
5                 <title>Create a new Lab</title>
6         </head>
7         <body>
8         <!-- List of existing labs -->
9         {% if labs %}
10                 <ul>
11                 {% for lab in labs %}
12                         <li>{{ lab }} 
13                                 <a href="/ict_education/lab-details/{{ lab.id }}">Lab details</a>
14                                 <a href="/ict_education/delete-lab/{{ lab.id }}">Delete Lab</a>
15                         </li>
16                 {% endfor %}
17                 </ul>
18         {% else %}
19                 <p>No lab</p>
20         {% endif %}
21
22                 <!-- Upload form. Note enctype attribute! -->
23                 <form action="{% url "ict_education.views.createLab" %}" method="post" enctype="multipart/form-data">
24                         {% csrf_token %}
25                         {{ form.as_p }}
26                         <p><input type="submit" value="Add Lab" /></p>
27                 </form>
28         </body>
29 </html>