Mercurial > kallithea
annotate rhodecode/templates/admin/repos/repo_add_base.html @ 1367:e8afa84ab131 beta
fixes issue #199 wrong redirection for non admin users after creating a repository
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 07 Jun 2011 18:08:21 +0200 |
parents | 3bce31f026b8 |
children | aaec08ad9daf |
rev | line source |
---|---|
1111
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
1 ## -*- coding: utf-8 -*- |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
3 ${h.form(url('repos'))} |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
4 <div class="form"> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
5 <!-- fields --> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
6 <div class="fields"> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
7 <div class="field"> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
8 <div class="label"> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
9 <label for="repo_name">${_('Name')}:</label> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
10 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
11 <div class="input"> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
12 ${h.text('repo_name',c.new_repo,class_="small")} |
1367
e8afa84ab131
fixes issue #199 wrong redirection for non admin users after creating a repository
Marcin Kuzminski <marcin@python-works.com>
parents:
1345
diff
changeset
|
13 %if not h.HasPermissionAll('hg.admin')('repo create form'): |
e8afa84ab131
fixes issue #199 wrong redirection for non admin users after creating a repository
Marcin Kuzminski <marcin@python-works.com>
parents:
1345
diff
changeset
|
14 ${h.hidden('user_created',True)} |
e8afa84ab131
fixes issue #199 wrong redirection for non admin users after creating a repository
Marcin Kuzminski <marcin@python-works.com>
parents:
1345
diff
changeset
|
15 %endif |
1111
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
16 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
17 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
18 <div class="field"> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
19 <div class="label"> |
1112
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
20 <label for="clone_uri">${_('Clone from')}:</label> |
1111
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
21 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
22 <div class="input"> |
1112
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
23 ${h.text('clone_uri',class_="small")} |
1111
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
24 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
25 </div> |
1112
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
26 <div class="field"> |
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
27 <div class="label"> |
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
28 <label for="repo_group">${_('Repository group')}:</label> |
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
29 </div> |
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
30 <div class="input"> |
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
31 ${h.select('repo_group','',c.repo_groups,class_="medium")} |
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
32 </div> |
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
33 </div> |
1111
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
34 <div class="field"> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
35 <div class="label"> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
36 <label for="repo_type">${_('Type')}:</label> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
37 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
38 <div class="input"> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
39 ${h.select('repo_type','hg',c.backends,class_="small")} |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
40 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
41 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
42 <div class="field"> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
43 <div class="label label-textarea"> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
44 <label for="description">${_('Description')}:</label> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
45 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
46 <div class="textarea text-area editor"> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
47 ${h.textarea('description',cols=23,rows=5)} |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
48 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
49 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
50 <div class="field"> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
51 <div class="label label-checkbox"> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
52 <label for="private">${_('Private')}:</label> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
53 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
54 <div class="checkboxes"> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
55 ${h.checkbox('private',value="True")} |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
56 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
57 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
58 <div class="buttons"> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
59 ${h.submit('add','add',class_="ui-button")} |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
60 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
61 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
62 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
63 ${h.end_form()} |