1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-22 01:14:21 +01:00

implementing default value in form

This commit is contained in:
kakwa 2016-06-16 22:11:48 +02:00
parent c969e730c4
commit 921eef4b04

View File

@ -34,6 +34,8 @@ for a in sorted(attributes.keys(), key=lambda attr: attributes[attr]['weight']):
else:
value = ''
value2 = ''
if 'default' in attr and value == '':
value = ' value="'+ attr['default'] + '"'
%>
<span class="input-group-addon" id="basic-addon-${a}">${attr['display_name']}</span>