mirror of https://github.com/jumpserver/jumpserver
修改默认
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 group.id|int2str in groups_str %}
|
||||
<option value="{{ group.id }}" selected>{{ group.name }}</option>
|
||||
{% 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…
Reference in New Issue