annotate rhodecode/templates/settings/repo_settings.html @ 3600:727119201a42 beta

repository: cleanup and alignment of repository editing templates Too much duplicated code.
author Mads Kiilerich <madski@unity3d.com>
date Tue, 26 Mar 2013 17:16:04 +0100
parents 1f334a68d057
children 51da0e019248
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
320
05b212954275 Implemented owner settings, as separete posibility to edit repositry by non administrative owner of repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
1 ## -*- coding: utf-8 -*-
3600
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
2 ##
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
3 ## See also repo_edit.html
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
4 ##
320
05b212954275 Implemented owner settings, as separete posibility to edit repositry by non administrative owner of repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
5 <%inherit file="/base/base.html"/>
05b212954275 Implemented owner settings, as separete posibility to edit repositry by non administrative owner of repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
6
05b212954275 Implemented owner settings, as separete posibility to edit repositry by non administrative owner of repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
7 <%def name="title()">
3582
1f334a68d057 improved title consistency
Marcin Kuzminski <marcin@python-works.com>
parents: 3308
diff changeset
8 ${_('%s Settings') % c.repo_name} &middot; ${c.rhodecode_name}
320
05b212954275 Implemented owner settings, as separete posibility to edit repositry by non administrative owner of repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
9 </%def>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
10
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
11 <%def name="breadcrumbs_links()">
2492
79818f546538 i18n 'Home' in breadcrumbs
Takumi IINO <trot.thunder@gmail.com>
parents: 2417
diff changeset
12 ${h.link_to(_(u'Home'),h.url('/'))}
1084
17721a2dfadb fixed breadcrumbs in few pages
Marcin Kuzminski <marcin@python-works.com>
parents: 1015
diff changeset
13 &raquo;
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1594
diff changeset
14 ${h.link_to(c.repo_info.repo_name,h.url('summary_home',repo_name=c.repo_info.repo_name))}
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1594
diff changeset
15 &raquo;
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1594
diff changeset
16 ${_('Settings')}
320
05b212954275 Implemented owner settings, as separete posibility to edit repositry by non administrative owner of repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
17 </%def>
579
6d0474c7e645 more templates updates
Marcin Kuzminski <marcin@python-works.com>
parents: 562
diff changeset
18
320
05b212954275 Implemented owner settings, as separete posibility to edit repositry by non administrative owner of repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
19 <%def name="page_nav()">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
20 ${self.menu('settings')}
320
05b212954275 Implemented owner settings, as separete posibility to edit repositry by non administrative owner of repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
21 </%def>
05b212954275 Implemented owner settings, as separete posibility to edit repositry by non administrative owner of repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
22 <%def name="main()">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
23 <div class="box">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
24 <!-- box / title -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
25 <div class="title">
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1594
diff changeset
26 ${self.breadcrumbs()}
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
27 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
28 ${h.form(url('repo_settings_update', repo_name=c.repo_info.repo_name),method='put')}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
29 <div class="form">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
30 <!-- fields -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
31 <div class="fields">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
32 <div class="field">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
33 <div class="label">
366
0f35fa0f4eb8 fixed some html and styles, added owner into admin repo list
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
34 <label for="repo_name">${_('Name')}:</label>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
35 </div>
3600
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
36 <div class="input">
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
37 ${h.text('repo_name',class_="medium")}
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
38 </div>
3600
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
39 </div>
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
40 <div class="field">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
41 <div class="label">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
42 <label for="clone_uri">${_('Clone uri')}:</label>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
43 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
44 <div class="input">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
45 ${h.text('clone_uri',class_="medium")}
2103
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
46 <span class="help-block">${_('Optional http[s] url from which repository should be cloned.')}</span>
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
47 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
48 </div>
1594
9dae92a65e40 fixes #288
Marcin Kuzminski <marcin@python-works.com>
parents: 1455
diff changeset
49 <div class="field">
9dae92a65e40 fixes #288
Marcin Kuzminski <marcin@python-works.com>
parents: 1455
diff changeset
50 <div class="label">
9dae92a65e40 fixes #288
Marcin Kuzminski <marcin@python-works.com>
parents: 1455
diff changeset
51 <label for="repo_group">${_('Repository group')}:</label>
9dae92a65e40 fixes #288
Marcin Kuzminski <marcin@python-works.com>
parents: 1455
diff changeset
52 </div>
9dae92a65e40 fixes #288
Marcin Kuzminski <marcin@python-works.com>
parents: 1455
diff changeset
53 <div class="input">
9dae92a65e40 fixes #288
Marcin Kuzminski <marcin@python-works.com>
parents: 1455
diff changeset
54 ${h.select('repo_group','',c.repo_groups,class_="medium")}
2103
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
55 <span class="help-block">${_('Optional select a group to put this repository into.')}</span>
1594
9dae92a65e40 fixes #288
Marcin Kuzminski <marcin@python-works.com>
parents: 1455
diff changeset
56 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1594
diff changeset
57 </div>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
58 <div class="field">
2596
bf17b1e4a19c fixed issue #497 missing landing rev on second edit repo page
Marcin Kuzminski <marcin@python-works.com>
parents: 2492
diff changeset
59 <div class="label">
bf17b1e4a19c fixed issue #497 missing landing rev on second edit repo page
Marcin Kuzminski <marcin@python-works.com>
parents: 2492
diff changeset
60 <label for="landing_rev">${_('Landing revision')}:</label>
bf17b1e4a19c fixed issue #497 missing landing rev on second edit repo page
Marcin Kuzminski <marcin@python-works.com>
parents: 2492
diff changeset
61 </div>
bf17b1e4a19c fixed issue #497 missing landing rev on second edit repo page
Marcin Kuzminski <marcin@python-works.com>
parents: 2492
diff changeset
62 <div class="input">
3089
4cc9bb83ecb4 Fixed some issues with edit form
Marcin Kuzminski <marcin@python-works.com>
parents: 3084
diff changeset
63 ${h.select('repo_landing_rev','',c.landing_revs,class_="medium")}
2596
bf17b1e4a19c fixed issue #497 missing landing rev on second edit repo page
Marcin Kuzminski <marcin@python-works.com>
parents: 2492
diff changeset
64 <span class="help-block">${_('Default revision for files page, downloads, whoosh and readme')}</span>
bf17b1e4a19c fixed issue #497 missing landing rev on second edit repo page
Marcin Kuzminski <marcin@python-works.com>
parents: 2492
diff changeset
65 </div>
2673
d5e42c00f3c1 white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
66 </div>
2596
bf17b1e4a19c fixed issue #497 missing landing rev on second edit repo page
Marcin Kuzminski <marcin@python-works.com>
parents: 2492
diff changeset
67 <div class="field">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
68 <div class="label label-textarea">
3089
4cc9bb83ecb4 Fixed some issues with edit form
Marcin Kuzminski <marcin@python-works.com>
parents: 3084
diff changeset
69 <label for="repo_description">${_('Description')}:</label>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
70 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
71 <div class="textarea text-area editor">
3089
4cc9bb83ecb4 Fixed some issues with edit form
Marcin Kuzminski <marcin@python-works.com>
parents: 3084
diff changeset
72 ${h.textarea('repo_description')}
2103
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
73 <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
74 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
75 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1594
diff changeset
76
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
77 <div class="field">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
78 <div class="label label-checkbox">
3089
4cc9bb83ecb4 Fixed some issues with edit form
Marcin Kuzminski <marcin@python-works.com>
parents: 3084
diff changeset
79 <label for="repo_private">${_('Private repository')}:</label>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
80 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
81 <div class="checkboxes">
3089
4cc9bb83ecb4 Fixed some issues with edit form
Marcin Kuzminski <marcin@python-works.com>
parents: 3084
diff changeset
82 ${h.checkbox('repo_private',value="True")}
2103
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
83 <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
84 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
85 </div>
3308
72a91632b731 repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents: 3197
diff changeset
86 %if c.visual.repository_fields:
3600
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
87 ## EXTRA FIELDS
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
88 %for field in c.repo_fields:
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
89 <div class="field">
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
90 <div class="label">
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
91 <label for="${field.field_key_prefixed}">${field.field_label} (${field.field_key}):</label>
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
92 </div>
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
93 <div class="input input-medium">
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
94 ${h.text(field.field_key_prefixed, field.field_value, class_='medium')}
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
95 %if field.field_desc:
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
96 <span class="help-block">${field.field_desc}</span>
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
97 %endif
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
98 </div>
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
99 </div>
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
100 %endfor
3308
72a91632b731 repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents: 3197
diff changeset
101 %endif
3600
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
102 <div class="field">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
103 <div class="label">
3600
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
104 <label for="input">${_('Permissions')}:</label>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
105 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
106 <div class="input">
1015
65129c332d37 #56 added ajax removal of users groups,
Marcin Kuzminski <marcin@python-works.com>
parents: 888
diff changeset
107 <%include file="../admin/repos/repo_edit_perms.html"/>
65129c332d37 #56 added ajax removal of users groups,
Marcin Kuzminski <marcin@python-works.com>
parents: 888
diff changeset
108 </div>
3084
2ec4a2a53167 added delete button into repository settings form, it makes more natural to have it there.
Marcin Kuzminski <marcin@python-works.com>
parents: 2673
diff changeset
109 </div>
3089
4cc9bb83ecb4 Fixed some issues with edit form
Marcin Kuzminski <marcin@python-works.com>
parents: 3084
diff changeset
110
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
111 <div class="buttons">
2607
7ae36df760ce removed deprecated ui-button
Marcin Kuzminski <marcin@python-works.com>
parents: 2596
diff changeset
112 ${h.submit('save',_('Save'),class_="ui-btn large")}
7ae36df760ce removed deprecated ui-button
Marcin Kuzminski <marcin@python-works.com>
parents: 2596
diff changeset
113 ${h.reset('reset',_('Reset'),class_="ui-btn large")}
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1594
diff changeset
114 </div>
3149
68f9c216377d white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 3108
diff changeset
115
3600
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
116 </div>
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
117 </div>
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
118 ${h.end_form()}
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
119
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
120 <h3>${_('Delete')}</h3>
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
121 ${h.form(url('repo_settings_delete', repo_name=c.repo_info.repo_name),method='delete')}
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
122 <div class="form">
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
123 <div class="fields">
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
124 <div class="field" style="border:none;color:#888">
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
125 <div class="label">
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
126 <label for="">${_('Remove repository')}:</label>
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
127 </div>
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
128 <div class="checkboxes">
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
129 ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")}
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
130 <ul>
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
131 <li>${_('This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. If you need to fully delete it from file system please do it manually')}</li>
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
132 </ul>
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
133 </div>
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
134 </div>
727119201a42 repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
135 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1594
diff changeset
136 </div>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 320
diff changeset
137 ${h.end_form()}
3089
4cc9bb83ecb4 Fixed some issues with edit form
Marcin Kuzminski <marcin@python-works.com>
parents: 3084
diff changeset
138
579
6d0474c7e645 more templates updates
Marcin Kuzminski <marcin@python-works.com>
parents: 562
diff changeset
139 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1594
diff changeset
140 </%def>