Skip to content

Commit

Permalink
implementing form list
Browse files Browse the repository at this point in the history
  • Loading branch information
kakwa committed Jun 2, 2015
1 parent af0ac63 commit 228c65a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/templates/form.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
% elif attr['type'] == 'fix':
<input type="text" class="form-control" placeholder="${attr['description']}" aria-describedby="basic-addon1" required>
% elif attr['type'] == 'stringlist':
<input type="text" class="form-control" placeholder="${attr['description']}" aria-describedby="basic-addon1" required>
<select class="form-control" name="type">
%for val in attr['values']:
<option>${val}</option>
%endfor
</select>
% elif attr['type'] == 'password':
<input type="password" class="form-control" placeholder="${attr['description']}" aria-describedby="basic-addon1" required>
<span class="input-group-addon" id="basic-addon1">Retype ${attr['display_name']}</span>
Expand Down

0 comments on commit 228c65a

Please sign in to comment.