Commit d7f9727d by Dányi Bence

webui: new group creation interface

parent 272a1c82
...@@ -69,41 +69,36 @@ ...@@ -69,41 +69,36 @@
</div> </div>
<div id="new-group-wizard" style="display: none"> <div id="new-group-wizard" style="display: none">
<form action="/group/new/" method="POST" class="wizard"> <form action="/group/new/" method="POST" class="wizard">
{% csrf_token %}
<h3>{% trans "Create new group" %}</h3> <h3>{% trans "Create new group" %}</h3>
<h4>{% trans "Group name" %}</h4> <ul>
<p> <li>
<label for="new-group-name">{% trans "Group name" %}</label>
<input type="text" name="name" id="new-group-name" /> <input type="text" name="name" id="new-group-name" />
</p> </li>
<h4>{% trans "Semester" %}</h4> <li>
<p> <label for="new-group-semester">{% trans "Semester" %}</label>
<select name="semester" id="new-group-semester"> <select name="semester" id="new-group-semester">
{% for semester in semesters %} {% for semester in semesters %}
<option value="{{semester.id}}">{{semester.name}}</option> <option value="{{semester.id}}">{{semester.name}}</option>
{% endfor %} {% endfor %}
</select> </select>
</p> </li>
<h4>{% trans "Members" %}</h4> <li>
<p> <label for="new-group-members">{% trans "Members" %}</label>
<textarea name="members" placeholder="{% trans 'Student NEPTUN codes, one per line' %}" id="new-group-members"></textarea> <textarea name="members" placeholder="{% trans 'Student NEPTUN codes, one per line' %}" id="new-group-members"></textarea>
</p> <div class="clear"></div>
<!--<h4>{% trans "Summary" %}</h4> </li>
<p> <strong>{% trans "Group name" %}:</strong> </ul>
<span id="new-group-summary-name"></span> <nav>
<br /> <strong>{% trans "Semester" %}:</strong> <input type="reset" class="prev" value="{% trans "Cancel" %}" />
<span id="new-group-summary-semester"></span> <input type="submit" class="next" value="{% trans "Done" %}" />
<br /> <div class="clear"></div>
<strong>{% trans "Member count" %}:</strong> </nav>
<span id="new-group-summary-count"></span>
<br />
</p>
-->
<p>
{% csrf_token %}
<input type="submit" value="{% trans "Done" %}"></p>
</form> </form>
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>
</div> </div>
</div> </div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment