Mercurial > kallithea
annotate rhodecode/templates/admin/repos/repo_add_base.html @ 4116:ffd45b185016 rhodecode-2.2.5-gpl
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
This imports changes between changesets 21af6c4eab3d and 6177597791c2 in
RhodeCode's original repository, including only changes to Python files and HTML.
RhodeCode clearly licensed its changes to these files under GPLv3
in their /LICENSE file, which states the following:
The Python code and integrated HTML are licensed under the GPLv3 license.
(See:
https://code.rhodecode.com/rhodecode/files/v2.2.5/LICENSE
or
http://web.archive.org/web/20140512193334/https://code.rhodecode.com/rhodecode/files/f3b123159901f15426d18e3dc395e8369f70ebe0/LICENSE
for an online copy of that LICENSE file)
Conservancy reviewed these changes and confirmed that they can be licensed as
a whole to the Kallithea project under GPLv3-only.
While some of the contents committed herein are clearly licensed
GPLv3-or-later, on the whole we must assume the are GPLv3-only, since the
statement above from RhodeCode indicates that they intend GPLv3-only as their
license, per GPLv3ยง14 and other relevant sections of GPLv3.
author | Bradley M. Kuhn <bkuhn@sfconservancy.org> |
---|---|
date | Wed, 02 Jul 2014 19:03:13 -0400 |
parents | ec6354949623 |
children |
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> |
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
|
16 %if not c.rhodecode_user.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()} |