##// END OF EJS Templates
labs: show a text that there are no active labs settings
marcink -
r749:19af1ba9 default
parent child Browse files
Show More
@@ -1,54 +1,58 b''
1 <div class="panel panel-default">
1 <div class="panel panel-default">
2 <div class="panel-heading">
2 <div class="panel-heading">
3 <h3 class="panel-title">${_('Labs Settings')}</h3>
3 <h3 class="panel-title">${_('Labs Settings')}</h3>
4 </div>
4 </div>
5 <div class="panel-body">
5 <div class="panel-body">
6 ${h.secure_form(url('admin_settings_labs'), method='post')}
6 ${h.secure_form(url('admin_settings_labs'), method='post')}
7 <div class="form">
7 <div class="form">
8 <div class="fields">
8 <div class="fields">
9 % if not c.lab_settings:
10 ${_('There are no Labs settings currently')}
11 % else:
9 % for lab_setting in c.lab_settings:
12 % for lab_setting in c.lab_settings:
10 <div class="field">
13 <div class="field">
11 <div class="label">
14 <div class="label">
12 <label>${lab_setting.group}:</label>
15 <label>${lab_setting.group}:</label>
13 </div>
16 </div>
14 % if lab_setting.type == 'bool':
17 % if lab_setting.type == 'bool':
15 <div class="checkboxes">
18 <div class="checkboxes">
16 <div class="checkbox">
19 <div class="checkbox">
17 ${h.checkbox(lab_setting.key, 'True')}
20 ${h.checkbox(lab_setting.key, 'True')}
18 % if lab_setting.label:
21 % if lab_setting.label:
19 <label for="${lab_setting.key}">${lab_setting.label}</label>
22 <label for="${lab_setting.key}">${lab_setting.label}</label>
20 % endif
23 % endif
21 </div>
24 </div>
22 % if lab_setting.help:
25 % if lab_setting.help:
23 <p class="help-block">${lab_setting.help}</p>
26 <p class="help-block">${lab_setting.help}</p>
24 % endif
27 % endif
25 </div>
28 </div>
26 % else:
29 % else:
27 <div class="input">
30 <div class="input">
28 ${h.text(lab_setting.key, size=60)}
31 ${h.text(lab_setting.key, size=60)}
29
32
30 ## TODO: johbo: This style does not yet exist for our forms,
33 ## TODO: johbo: This style does not yet exist for our forms,
31 ## the lab settings seem not to adhere to the structure which
34 ## the lab settings seem not to adhere to the structure which
32 ## we use in other places.
35 ## we use in other places.
33 % if lab_setting.label:
36 % if lab_setting.label:
34 <label for="${lab_setting.key}">${lab_setting.label}</label>
37 <label for="${lab_setting.key}">${lab_setting.label}</label>
35 % endif
38 % endif
36
39
37 % if lab_setting.help:
40 % if lab_setting.help:
38 <p class="help-block">${lab_setting.help}</p>
41 <p class="help-block">${lab_setting.help}</p>
39 % endif
42 % endif
40 </div>
43 </div>
41 % endif
44 % endif
42 </div>
45 </div>
43 % endfor
46 % endfor
44 <div class="buttons">
47 <div class="buttons">
45 ${h.submit('save', _('Save settings'), class_='btn')}
48 ${h.submit('save', _('Save settings'), class_='btn')}
46 ${h.reset('reset', _('Reset'), class_='btn')}
49 ${h.reset('reset', _('Reset'), class_='btn')}
47 </div>
50 </div>
51 % endif
48 </div>
52 </div>
49 </div>
53 </div>
50 ${h.end_form()}
54 ${h.end_form()}
51 </div>
55 </div>
52 </div>
56 </div>
53
57
54
58
General Comments 0
You need to be logged in to leave comments. Login now