修改默认

pull/6/head
ibuler 10 years ago
parent 9304a911ea
commit f45398e20b

@ -74,8 +74,12 @@
<div class="col-sm-8">
<select id="groups" name="groups" class="form-control m-b" multiple>
{% for group in all_group %}
{% if groups_str %}
{% if group.id|int2str in groups_str %}
<option value="{{ group.id }}" selected>{{ group.name }}</option>
{% else %}
<option value="{{ group.id }}">{{ group.name }}</option>
{% endif %}
{% else %}
{% if forloop.first %}
<option value="{{ group.id }}" selected>{{ group.name }}</option>

Loading…
Cancel
Save