Mercurial > kallithea
annotate rhodecode/templates/admin/repos/repo_add_base.html @ 3056:6104dfd35b16 beta
Implemented #379 defaults settings page for creation of repositories
- locking
- statistics, downloads
- repository type
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 03 Dec 2012 02:55:08 +0100 |
parents | 7ae36df760ce |
children | 79c5967a1e5c |
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)} |
3056
6104dfd35b16
Implemented #379 defaults settings page for creation of repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
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")} |
2103 | 24 <span class="help-block">${_('Optional http[s] url from which repository should be cloned.')}</span> |
1111
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> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
26 </div> |
1112
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
27 <div class="field"> |
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
28 <div class="label"> |
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
29 <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
|
30 </div> |
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
31 <div class="input"> |
2130
5242b1619603
#401 repository group is automatically pre-selected when adding repos inside a repository group
Marcin Kuzminski <marcin@python-works.com>
parents:
2103
diff
changeset
|
32 ${h.select('repo_group',request.GET.get('parent_group'),c.repo_groups,class_="medium")} |
2485
133209bf300c
added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents:
2461
diff
changeset
|
33 <span class="help-block">${_('Optionaly select a group to put this repository into.')}</span> |
1112
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
34 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
35 </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
|
36 <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
|
37 <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
|
38 <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
|
39 </div> |
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 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
|
41 ${h.select('repo_type','hg',c.backends,class_="small")} |
2103 | 42 <span class="help-block">${_('Type of repository to create.')}</span> |
1111
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> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
44 </div> |
2459
9492ab68331f
Initial version of landing revisions ref #483
Marcin Kuzminski <marcin@python-works.com>
parents:
2130
diff
changeset
|
45 <div class="field"> |
9492ab68331f
Initial version of landing revisions ref #483
Marcin Kuzminski <marcin@python-works.com>
parents:
2130
diff
changeset
|
46 <div class="label"> |
3056
6104dfd35b16
Implemented #379 defaults settings page for creation of repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
47 <label for="repo_landing_rev">${_('Landing revision')}:</label> |
2459
9492ab68331f
Initial version of landing revisions ref #483
Marcin Kuzminski <marcin@python-works.com>
parents:
2130
diff
changeset
|
48 </div> |
9492ab68331f
Initial version of landing revisions ref #483
Marcin Kuzminski <marcin@python-works.com>
parents:
2130
diff
changeset
|
49 <div class="input"> |
3056
6104dfd35b16
Implemented #379 defaults settings page for creation of repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
50 ${h.select('repo_landing_rev','',c.landing_revs,class_="medium")} |
2459
9492ab68331f
Initial version of landing revisions ref #483
Marcin Kuzminski <marcin@python-works.com>
parents:
2130
diff
changeset
|
51 <span class="help-block">${_('Default revision for files page, downloads, whoosh and readme')}</span> |
9492ab68331f
Initial version of landing revisions ref #483
Marcin Kuzminski <marcin@python-works.com>
parents:
2130
diff
changeset
|
52 </div> |
2461
015a42e970a6
whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2459
diff
changeset
|
53 </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
|
54 <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
|
55 <div class="label label-textarea"> |
3056
6104dfd35b16
Implemented #379 defaults settings page for creation of repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
56 <label for="repo_description">${_('Description')}:</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
|
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="textarea text-area editor"> |
3056
6104dfd35b16
Implemented #379 defaults settings page for creation of repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
59 ${h.textarea('repo_description')} |
2103 | 60 <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span> |
1111
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 <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
|
64 <div class="label label-checkbox"> |
3056
6104dfd35b16
Implemented #379 defaults settings page for creation of repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
65 <label for="repo_private">${_('Private repository')}:</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
|
66 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
67 <div class="checkboxes"> |
3056
6104dfd35b16
Implemented #379 defaults settings page for creation of repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
68 ${h.checkbox('repo_private',value="True")} |
2103 | 69 <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span> |
1111
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
70 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
71 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
72 <div class="buttons"> |
2607
7ae36df760ce
removed deprecated ui-button
Marcin Kuzminski <marcin@python-works.com>
parents:
2485
diff
changeset
|
73 ${h.submit('add',_('add'),class_="ui-btn large")} |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
74 </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
|
75 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
76 </div> |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
77 ${h.end_form()} |