mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-21 17:04:21 +01:00
removing duplicate option in form select fields
This commit is contained in:
parent
a33a46e8b8
commit
de5f760c37
@ -58,7 +58,9 @@ for a in sorted(attributes.keys(), key=lambda attr: attributes[attr]['weight']):
|
||||
<select class="form-control" id="attr.${a}" name="attr.${a}">
|
||||
${value2}
|
||||
%for val in attr['values']:
|
||||
%if '<option>' + val + '</option>' != value2:
|
||||
<option>${val}</option>
|
||||
%endif
|
||||
%endfor
|
||||
</select>
|
||||
% elif attr['type'] == 'password':
|
||||
|
Loading…
Reference in New Issue
Block a user