##// END OF EJS Templates
fixes issue #199 wrong redirection for non admin users after creating a repository
marcink -
r1367:e8afa84a beta
parent child Browse files
Show More
@@ -1,60 +1,63 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2
2
3 ${h.form(url('repos'))}
3 ${h.form(url('repos'))}
4 <div class="form">
4 <div class="form">
5 <!-- fields -->
5 <!-- fields -->
6 <div class="fields">
6 <div class="fields">
7 <div class="field">
7 <div class="field">
8 <div class="label">
8 <div class="label">
9 <label for="repo_name">${_('Name')}:</label>
9 <label for="repo_name">${_('Name')}:</label>
10 </div>
10 </div>
11 <div class="input">
11 <div class="input">
12 ${h.text('repo_name',c.new_repo,class_="small")}
12 ${h.text('repo_name',c.new_repo,class_="small")}
13 %if not h.HasPermissionAll('hg.admin')('repo create form'):
14 ${h.hidden('user_created',True)}
15 %endif
13 </div>
16 </div>
14 </div>
17 </div>
15 <div class="field">
18 <div class="field">
16 <div class="label">
19 <div class="label">
17 <label for="clone_uri">${_('Clone from')}:</label>
20 <label for="clone_uri">${_('Clone from')}:</label>
18 </div>
21 </div>
19 <div class="input">
22 <div class="input">
20 ${h.text('clone_uri',class_="small")}
23 ${h.text('clone_uri',class_="small")}
21 </div>
24 </div>
22 </div>
25 </div>
23 <div class="field">
26 <div class="field">
24 <div class="label">
27 <div class="label">
25 <label for="repo_group">${_('Repository group')}:</label>
28 <label for="repo_group">${_('Repository group')}:</label>
26 </div>
29 </div>
27 <div class="input">
30 <div class="input">
28 ${h.select('repo_group','',c.repo_groups,class_="medium")}
31 ${h.select('repo_group','',c.repo_groups,class_="medium")}
29 </div>
32 </div>
30 </div>
33 </div>
31 <div class="field">
34 <div class="field">
32 <div class="label">
35 <div class="label">
33 <label for="repo_type">${_('Type')}:</label>
36 <label for="repo_type">${_('Type')}:</label>
34 </div>
37 </div>
35 <div class="input">
38 <div class="input">
36 ${h.select('repo_type','hg',c.backends,class_="small")}
39 ${h.select('repo_type','hg',c.backends,class_="small")}
37 </div>
40 </div>
38 </div>
41 </div>
39 <div class="field">
42 <div class="field">
40 <div class="label label-textarea">
43 <div class="label label-textarea">
41 <label for="description">${_('Description')}:</label>
44 <label for="description">${_('Description')}:</label>
42 </div>
45 </div>
43 <div class="textarea text-area editor">
46 <div class="textarea text-area editor">
44 ${h.textarea('description',cols=23,rows=5)}
47 ${h.textarea('description',cols=23,rows=5)}
45 </div>
48 </div>
46 </div>
49 </div>
47 <div class="field">
50 <div class="field">
48 <div class="label label-checkbox">
51 <div class="label label-checkbox">
49 <label for="private">${_('Private')}:</label>
52 <label for="private">${_('Private')}:</label>
50 </div>
53 </div>
51 <div class="checkboxes">
54 <div class="checkboxes">
52 ${h.checkbox('private',value="True")}
55 ${h.checkbox('private',value="True")}
53 </div>
56 </div>
54 </div>
57 </div>
55 <div class="buttons">
58 <div class="buttons">
56 ${h.submit('add','add',class_="ui-button")}
59 ${h.submit('add','add',class_="ui-button")}
57 </div>
60 </div>
58 </div>
61 </div>
59 </div>
62 </div>
60 ${h.end_form()}
63 ${h.end_form()}
General Comments 0
You need to be logged in to leave comments. Login now