comparison pylons_app/templates/admin/settings/settings.html @ 409:9b6c1de4ce9e

some small template fixes
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 18 Aug 2010 01:46:18 +0200
parents e8af467b5a60
children 3fc3ce53659b
comparison
equal deleted inserted replaced
408:fadbb1eea649 409:9b6c1de4ce9e
118 <div class="field"> 118 <div class="field">
119 <div class="label"> 119 <div class="label">
120 <label for="paths_root_path">${_('Repositories location')}:</label> 120 <label for="paths_root_path">${_('Repositories location')}:</label>
121 </div> 121 </div>
122 <div class="input"> 122 <div class="input">
123 ${h.text('paths_root_path',size=30,readonly="readonly")} 123 ${h.text('paths_root_path',size=30,readonly="readonly")}
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.'))}"> 124 <span id="path_unlock" class="tooltip"
125 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.'))}">
125 ${_('unlock')}</span> 126 ${_('unlock')}</span>
126 </div> 127 </div>
127 </div> 128 </div>
128 129
129 <div class="buttons"> 130 <div class="buttons">
134 ${h.end_form()} 135 ${h.end_form()}
135 136
136 <script type="text/javascript"> 137 <script type="text/javascript">
137 YAHOO.util.Event.onDOMReady(function(){ 138 YAHOO.util.Event.onDOMReady(function(){
138 YAHOO.util.Event.addListener('path_unlock','click',function(){ 139 YAHOO.util.Event.addListener('path_unlock','click',function(){
139 YAHOO.util.Dom.get('paths_root_path').readonly=false; 140 YAHOO.util.Dom.get('paths_root_path').removeAttribute('readonly');
140 }); 141 });
141 }); 142 });
142 </script> 143 </script>
143
144 </div> 144 </div>
145 </%def> 145 </%def>