Start writing a new settings page based on hoplite.
[bugdar.git] / admin / templates / admin_settings.tpl
1 {%#import 'admin_header'%}
2
3 <div ng-app="bugdar.admin.settings">
4
5 <script type="text/ng-template" id="-/admin/settings/yesno.tpl">
6 <tr>
7 <th>
8 <label>{{title}}</label>
9 <dfn>{{description}}</dfn>
10 </th>
11 <td>
12 <input type="radio" id="settings-{{name}}-true" name="settings[{{name}}]" value="1" ng-checked="value == 1">
13 <label for="settings-{{name}}-true">{%=T('Yes')%}</label>
14
15 <input type="radio" id="settings-{{name}}-false" name="settings[{{name}}]" value="0" ng-checked="value == 0">
16 <label for="settings-{{name}}-false">{%=T('No')%}</label>
17 </td>
18 </tr>
19 </script>
20
21 <table id="settings">
22 <tr><th colspan="2">{%=T('General Options')%}</th></tr>
23 <tr yesno name="allownewreg"
24 title="{%=T('Allow New Registrations')%}"
25 description="{%=T('If this is set to <em>yes</em>, then new users will be allowed to register.') | raw%}"
26 value="{%= Bugdar::$options['allownewreg'] %}">
27 <tr yesno name="verifyemail"
28 title="{%=T('Require Activation Email')%}"
29 description="{%=T('Setting this to yes will force all new users to verify their account with an email activation link.')%}"
30 value="{%= Bugdar::$options['verifyemail'] %}">
31 <tr yesno name="moderatenewusers"
32 title="{%=T('Moderate New Users')%}"
33 description="{%=T('All new users will have to be approved by the administration before being able to have normal user rights.')%}"
34 value="{%= Bugdar::$options['moderatenewusers'] %}">
35 <tr yesno name="sendwelcomemail"
36 title="{%=T('Send New Use Welcome Email')%}"
37 description="{%=T('Setting this option to <em>yes</em> will send each new verified user a welcome email.') | raw%}"
38 value="{%= Bugdar::$options['sendwelcomemail'] %}">
39 <tr>
40 <th>
41 <label for="settings-webmasteremail">{%=T('Webmaster Email Address')%}</label>
42 <dfn>{%=T('The email address from which emails will be sent out.')%}</dfn>
43 </th>
44 <td>
45 <input type="text" id="settings-webmasteremail" name="settings[webmasteremail]" value="{%= Bugdar::$options['webmasteremail'] %}">
46 </td>
47 </tr>
48 </table>
49
50 </div>
51
52 {%#import 'admin_footer'%}