1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-25 10:44:30 +01:00

name the attributes of the add form

This commit is contained in:
kakwa 2015-06-03 00:06:59 +02:00
parent c5796ae56e
commit eee3b419cf

View File

@ -4,13 +4,13 @@
<div class="input-group"> <div class="input-group">
<span class="input-group-addon" id="basic-addon1">${attr['display_name']}</span> <span class="input-group-addon" id="basic-addon1">${attr['display_name']}</span>
% if attr['type'] == 'string': % if attr['type'] == 'string':
<input type="text" class="form-control" placeholder="${attr['description']}" aria-describedby="basic-addon1" required> <input type="text" name="${a}" class="form-control" placeholder="${attr['description']}" aria-describedby="basic-addon1" required>
% elif attr['type'] == 'email': % elif attr['type'] == 'email':
<input type="email" class="form-control" placeholder="${attr['description']}" aria-describedby="basic-addon1" required> <input type="email" name="${a}" class="form-control" placeholder="${attr['description']}" aria-describedby="basic-addon1" required>
% elif attr['type'] == 'int': % elif attr['type'] == 'int':
<input type="number" class="form-control" placeholder="${attr['description']}" aria-describedby="basic-addon1" required> <input type="number" name="${a}" class="form-control" placeholder="${attr['description']}" aria-describedby="basic-addon1" required>
% elif attr['type'] == 'fix': % elif attr['type'] == 'fix':
<input type="text" class="form-control" placeholder="${attr['description']}" aria-describedby="basic-addon1" required> <input type="text" name="${a}" class="form-control" placeholder="${attr['description']}" aria-describedby="basic-addon1" required>
% elif attr['type'] == 'stringlist': % elif attr['type'] == 'stringlist':
<select class="form-control" name="type"> <select class="form-control" name="type">
%for val in attr['values']: %for val in attr['values']:
@ -18,9 +18,9 @@
%endfor %endfor
</select> </select>
% elif attr['type'] == 'password': % elif attr['type'] == 'password':
<input type="password" class="form-control" placeholder="${attr['description']}" aria-describedby="basic-addon1" required> <input type="password" name="${a}1" class="form-control" placeholder="${attr['description']}" aria-describedby="basic-addon1" required>
<span class="input-group-addon" id="basic-addon1">Retype ${attr['display_name']}</span> <span class="input-group-addon" id="basic-addon1">Retype ${attr['display_name']}</span>
<input type="password" class="form-control" placeholder="${attr['description']}" aria-describedby="basic-addon1" required> <input type="password" name="${a}2" class="form-control" placeholder="${attr['description']}" aria-describedby="basic-addon1" required>
% endif % endif
</div> </div>
</div> </div>