Mercurial > kallithea
annotate kallithea/templates/admin/repos/repo_add_base.html @ 4197:d208416c84c6 kallithea-2.2.5-rebrand
Rename rhodecode_user to authuser - it is an AuthUser instance
author | Bradley M. Kuhn <bkuhn@sfconservancy.org> |
---|---|
date | Wed, 02 Jul 2014 19:05:10 -0400 |
parents | d1addaf7a91e |
children | b3f12c354e87 |
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"> |
3333
069884383cc7
Implemented #738 Giving a user WRITE+ permissions on folder should not allow repo creation in root folder.
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
12 ${h.text('repo_name',class_="small")} |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
13 <div style="margin: 6px 0px 0px 0px"> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
14 <a id="remote_clone_toggle" href="#"><i class="icon-download-alt"></i> ${_('Import existing repository ?')}</a> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
15 </div> |
4197
d208416c84c6
Rename rhodecode_user to authuser - it is an AuthUser instance
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
16 %if not c.authuser.is_admin: |
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
|
17 ${h.hidden('user_created',True)} |
3057
79c5967a1e5c
whitespace and formatting
Marcin Kuzminski <marcin@python-works.com>
parents:
3056
diff
changeset
|
18 %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
|
19 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
20 </div> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
21 <div id="remote_clone" class="field" style="display: none"> |
1111
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="label"> |
1112
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
23 <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
|
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 class="input"> |
1112
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
26 ${h.text('clone_uri',class_="small")} |
2103 | 27 <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
|
28 </div> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
29 </div> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
30 <div class="field"> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
31 <div class="label label-textarea"> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
32 <label for="repo_description">${_('Description')}:</label> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
33 </div> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
34 <div class="textarea-repo editor"> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
35 ${h.textarea('repo_description')} |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
36 <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
37 </div> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
38 </div> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
39 <div class="field"> |
1112
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
40 <div class="label"> |
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
41 <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
|
42 </div> |
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1111
diff
changeset
|
43 <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
|
44 ${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
|
45 <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
|
46 </div> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
47 </div> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
48 <div id="copy_perms" class="field"> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
49 <div class="label label-checkbox"> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
50 <label for="repo_copy_permissions">${_('Copy parent group permissions')}:</label> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
51 </div> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
52 <div class="checkboxes"> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
53 ${h.checkbox('repo_copy_permissions',value="True")} |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
54 <span class="help-block">${_('Copy permission set from parent repository group.')}</span> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
55 </div> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
56 </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
|
57 <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
|
58 <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
|
59 <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
|
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 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
|
62 ${h.select('repo_type','hg',c.backends,class_="small")} |
2103 | 63 <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
|
64 </div> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
65 </div> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
66 <div class="field"> |
2459
9492ab68331f
Initial version of landing revisions ref #483
Marcin Kuzminski <marcin@python-works.com>
parents:
2130
diff
changeset
|
67 <div class="label"> |
3056
6104dfd35b16
Implemented #379 defaults settings page for creation of repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
68 <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
|
69 </div> |
9492ab68331f
Initial version of landing revisions ref #483
Marcin Kuzminski <marcin@python-works.com>
parents:
2130
diff
changeset
|
70 <div class="input"> |
3056
6104dfd35b16
Implemented #379 defaults settings page for creation of repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
71 ${h.select('repo_landing_rev','',c.landing_revs,class_="medium")} |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
72 <span class="help-block">${_('Default revision for files page, downloads, full text search index and readme generation')}</span> |
2459
9492ab68331f
Initial version of landing revisions ref #483
Marcin Kuzminski <marcin@python-works.com>
parents:
2130
diff
changeset
|
73 </div> |
2461
015a42e970a6
whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2459
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 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
|
76 <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
|
77 <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
|
78 </div> |
4b62d2fea08a
added base for repo creation forms, both templates will share the same form.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
79 <div class="checkboxes"> |
3056
6104dfd35b16
Implemented #379 defaults settings page for creation of repositories
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
80 ${h.checkbox('repo_private',value="True")} |
2103 | 81 <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
|
82 </div> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
83 </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
|
84 <div class="buttons"> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
85 ${h.submit('add',_('Add'),class_="btn")} |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
86 </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
|
87 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
88 </div> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
89 <script> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
90 $(document).ready(function(){ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
91 var setCopyPermsOption = function(group_val){ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
92 if(group_val != "-1"){ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
93 $('#copy_perms').show() |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
94 } |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
95 else{ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
96 $('#copy_perms').hide(); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
97 } |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
98 } |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
99 |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
100 $('#remote_clone_toggle').on('click', function(e){ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
101 $('#remote_clone').show(); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
102 e.preventDefault(); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
103 }) |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
104 if($('#remote_clone input').hasClass('error')){ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
105 $('#remote_clone').show(); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
106 } |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
107 if($('#remote_clone input').val()){ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
108 $('#remote_clone').show(); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
109 } |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
110 $("#repo_group").select2({ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
111 'dropdownAutoWidth': true |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
112 }); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
113 |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
114 setCopyPermsOption($('#repo_group').val()) |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
115 $("#repo_group").on("change", function(e) { |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
116 setCopyPermsOption(e.val) |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
117 }) |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
118 |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
119 $("#repo_type").select2({ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
120 'minimumResultsForSearch': -1, |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
121 }); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
122 $("#repo_landing_rev").select2({ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
123 'minimumResultsForSearch': -1, |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
124 }); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
125 $('#repo_name').focus(); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
126 }) |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
3654
diff
changeset
|
127 </script> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
128 ${h.end_form()} |