##// END OF EJS Templates
repository: cleanup and alignment of repository editing templates...
Mads Kiilerich -
r3600:72711920 beta
parent child Browse files
Show More
@@ -1,4 +1,7 b''
1 1 ## -*- coding: utf-8 -*-
2 ##
3 ## See also repo_settings.html
4 ##
2 5 <%inherit file="/base/base.html"/>
3 6
4 7 <%def name="title()">
@@ -152,6 +155,7 b''
152 155 <div class="input">
153 156 <%include file="repo_edit_perms.html"/>
154 157 </div>
158 </div>
155 159
156 160 <div class="buttons">
157 161 ${h.submit('save',_('Save'),class_="ui-btn large")}
@@ -159,7 +163,6 b''
159 163 </div>
160 164 </div>
161 165 </div>
162 </div>
163 166 ${h.end_form()}
164 167 </div>
165 168
@@ -291,19 +294,24 b''
291 294 ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')}
292 295 <div class="form">
293 296 <div class="fields">
297 <div class="field" style="border:none;color:#888">
298 ## <div class="label">
299 ## <label for="">${_('Remove repository')}:</label>
300 ## </div>
301 <div class="checkboxes">
294 302 ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")}
295 303 %if c.repo_info.forks.count():
296 304 - ${ungettext('this repository has %s fork', 'this repository has %s forks', c.repo_info.forks.count()) % c.repo_info.forks.count()}
297 305 <input type="radio" name="forks" value="detach_forks" checked="checked"/> <label for="forks">${_('Detach forks')}</label>
298 306 <input type="radio" name="forks" value="delete_forks" /> <label for="forks">${_('Delete forks')}</label>
299 307 %endif
300 </div>
301 <div class="field" style="border:none;color:#888">
302 308 <ul>
303 309 <li>${_('This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. If you need to fully delete it from file system please do it manually')}</li>
304 310 </ul>
305 311 </div>
306 312 </div>
313 </div>
314 </div>
307 315 ${h.end_form()}
308 316 </div>
309 317
@@ -1,4 +1,7 b''
1 1 ## -*- coding: utf-8 -*-
2 ##
3 ## See also repo_edit.html
4 ##
2 5 <%inherit file="/base/base.html"/>
3 6
4 7 <%def name="title()">
@@ -30,8 +33,8 b''
30 33 <div class="label">
31 34 <label for="repo_name">${_('Name')}:</label>
32 35 </div>
33 <div class="input input-medium">
34 ${h.text('repo_name',class_="small")}
36 <div class="input">
37 ${h.text('repo_name',class_="medium")}
35 38 </div>
36 39 </div>
37 40 <div class="field">
@@ -96,10 +99,9 b''
96 99 </div>
97 100 %endfor
98 101 %endif
99
100 102 <div class="field">
101 103 <div class="label">
102 <label for="">${_('Permissions')}:</label>
104 <label for="input">${_('Permissions')}:</label>
103 105 </div>
104 106 <div class="input">
105 107 <%include file="../admin/repos/repo_edit_perms.html"/>
@@ -112,35 +114,27 b''
112 114 </div>
113 115
114 116 </div>
117 </div>
115 118 ${h.end_form()}
116 </div>
117 119
118 <h3>${_('Delete repository')}</h3>
120 <h3>${_('Delete')}</h3>
121 ${h.form(url('repo_settings_delete', repo_name=c.repo_info.repo_name),method='delete')}
119 122 <div class="form">
120 <!-- fields -->
121 123 <div class="fields">
122
123 <div class="field">
124 <div class="field" style="border:none;color:#888">
124 125 <div class="label">
125 <label for="">${_('Remove repo')}:</label>
126 <label for="">${_('Remove repository')}:</label>
126 127 </div>
127 128 <div class="checkboxes">
128 ${h.form(url('repo_settings_delete', repo_name=c.repo_info.repo_name),method='delete')}
129 <div class="">
130 <div class="fields">
131 129 ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")}
132 </div>
133 <div class="field" style="border:none;color:#888">
134 130 <ul>
135 <li>${_('This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. If you need fully delete it from file system please do it manually')}</li>
131 <li>${_('This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. If you need to fully delete it from file system please do it manually')}</li>
136 132 </ul>
137 133 </div>
138 134 </div>
139 ${h.end_form()}
140 </div>
141 </div>
142 135 </div>
143 136 </div>
137 ${h.end_form()}
144 138
145 139 </div>
146 140 </%def>
General Comments 0
You need to be logged in to leave comments. Login now