Commit 16ab76f1 by Dányi Bence

webui: group creating interface added

parent 62a152c0
......@@ -65,10 +65,35 @@
<div class="clear"></div>
</div>
<div id="new-group-wizard" style="display: none">
<h3>{% trans "Create new group" %}</h3>
<p>
<textarea placeholder="{% trans 'Student NEPTUN codes, one per line' %}"></textarea>
</p>
<form action="/group/new/" method="POST">
<h3>{% trans "Create new group" %}</h3>
<h4>{% trans "Group name" %}</h4>
<p>
<input type="text" name="name" id="new-group-name" />
</p>
<h4>{% trans "Semester" %}</h4>
<p>
<select name="semester" id="new-group-semester">
{% for semester in semesters %}
<option value="{{semester.id}}">{{semester.name}}</option>
{% endfor %}
</select>
</p>
<h4>{% trans "Members" %}</h4>
<p>
<textarea name="members" placeholder="{% trans 'Student NEPTUN codes, one per line' %}" id="new-group-members"></textarea>
</p>
<h4>{% trans "Summary" %}</h4>
<p>
<strong>{% trans "Group name" %}:</strong> <span id="new-group-summary-name"></span><br />
<strong>{% trans "Semester" %}:</strong> <span id="new-group-summary-semester"></span><br />
<strong>{% trans "Member count" %}:</strong> <span id="new-group-summary-count"></span><br />
</p>
<p>
{% csrf_token %}
<input type="submit" value="{% trans "Done" %}">
</p>
</form>
</div>
</li>
</ul>
......
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