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