mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 01:14: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}">
|
<select class="form-control" id="attr.${a}" name="attr.${a}">
|
||||||
${value2}
|
${value2}
|
||||||
%for val in attr['values']:
|
%for val in attr['values']:
|
||||||
|
%if '<option>' + val + '</option>' != value2:
|
||||||
<option>${val}</option>
|
<option>${val}</option>
|
||||||
|
%endif
|
||||||
%endfor
|
%endfor
|
||||||
</select>
|
</select>
|
||||||
% elif attr['type'] == 'password':
|
% elif attr['type'] == 'password':
|
||||||
|
Loading…
Reference in New Issue
Block a user