comparison pylons_app/templates/admin/settings/settings.html @ 395:e8af467b5a60

Added hooks managment into application settings
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 06 Aug 2010 02:40:57 +0200
parents 3bcf9529d221
children 9b6c1de4ce9e
comparison
equal deleted inserted replaced
394:42367607dc19 395:e8af467b5a60
87 87
88 <div class="fields"> 88 <div class="fields">
89 89
90 <div class="field"> 90 <div class="field">
91 <div class="label label-checkbox"> 91 <div class="label label-checkbox">
92 <label for="web_push_ssl">${_('Push ssl')}:</label> 92 <label for="web_push_ssl">${_('Web')}:</label>
93 </div> 93 </div>
94 <div class="checkboxes"> 94 <div class="checkboxes">
95 <div class="checkbox"> 95 <div class="checkbox">
96 ${h.checkbox('web_push_ssl','true')} 96 ${h.checkbox('web_push_ssl','true')}
97 <label for="web_push_ssl">${_('require ssl for pushing')}</label> 97 <label for="web_push_ssl">${_('require ssl for pushing')}</label>
98 </div> 98 </div>
99 </div> 99 </div>
100 </div> 100 </div>
101
102 <div class="field">
103 <div class="label label-checkbox">
104 <label for="web_push_ssl">${_('Hooks')}:</label>
105 </div>
106 <div class="checkboxes">
107 <div class="checkbox">
108 ${h.checkbox('hooks_changegroup_update','True')}
109 <label for="hooks_changegroup_update">${_('Update repository after push (hg update)')}</label>
110 </div>
111 <div class="checkbox">
112 ${h.checkbox('hooks_changegroup_repo_size','True')}
113 <label for="hooks_changegroup_repo_size">${_('Show repository size after push')}</label>
114 </div>
115 </div>
116 </div>
101 117
102 <div class="field"> 118 <div class="field">
103 <div class="label"> 119 <div class="label">
104 <label for="paths_root_path">${_('Repositories location')}:</label> 120 <label for="paths_root_path">${_('Repositories location')}:</label>
105 </div> 121 </div>
106 <div class="input"> 122 <div class="input">
107 ${h.text('paths_root_path',size=30,disabled="disabled")} 123 ${h.text('paths_root_path',size=30,readonly="readonly")}
108 <span id="path_unlock" class="tooltip" tooltip_title="${h.tooltip(_('This a crucial application setting. If You really sure you need to change this, you must restart application in order to make this settings take effect. Click this label to unlock.'))}"> 124 <span id="path_unlock" class="tooltip" tooltip_title="${h.tooltip(_('This a crucial application setting. If You really sure you need to change this, you must restart application in order to make this settings take effect. Click this label to unlock.'))}">
109 ${_('unlock')}</span> 125 ${_('unlock')}</span>
110 </div> 126 </div>
111 </div> 127 </div>
112 128
118 ${h.end_form()} 134 ${h.end_form()}
119 135
120 <script type="text/javascript"> 136 <script type="text/javascript">
121 YAHOO.util.Event.onDOMReady(function(){ 137 YAHOO.util.Event.onDOMReady(function(){
122 YAHOO.util.Event.addListener('path_unlock','click',function(){ 138 YAHOO.util.Event.addListener('path_unlock','click',function(){
123 YAHOO.util.Dom.get('paths_root_path').disabled=false; 139 YAHOO.util.Dom.get('paths_root_path').readonly=false;
124 }); 140 });
125 }); 141 });
126 </script> 142 </script>
127 143
128 </div> 144 </div>