Show More
@@ -1,106 +1,105 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="/base/base.mako"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="title()"> |
|
5 | 5 | ${_('Add repository group')} |
|
6 | 6 | %if c.rhodecode_name: |
|
7 | 7 | · ${h.branding(c.rhodecode_name)} |
|
8 | 8 | %endif |
|
9 | 9 | </%def> |
|
10 | 10 | |
|
11 | 11 | <%def name="breadcrumbs_links()"> |
|
12 | 12 | ${h.link_to(_('Admin'),h.route_path('admin_home'))} |
|
13 | 13 | » |
|
14 | 14 | ${h.link_to(_('Repository groups'),h.route_path('repo_groups'))} |
|
15 | 15 | » |
|
16 | 16 | ${_('Add Repository Group')} |
|
17 | 17 | </%def> |
|
18 | 18 | |
|
19 | 19 | <%def name="menu_bar_nav()"> |
|
20 | 20 | ${self.menu_items(active='admin')} |
|
21 | 21 | </%def> |
|
22 | 22 | |
|
23 | <%def name="menu_bar_subnav()"> | |
|
24 | ${self.admin_menu(active='repository_groups')} | |
|
25 | </%def> | |
|
26 | ||
|
23 | 27 | <%def name="main()"> |
|
24 | 28 | <div class="box"> |
|
25 | <!-- box / title --> | |
|
26 | <div class="title"> | |
|
27 | ${self.breadcrumbs()} | |
|
28 | </div> | |
|
29 | <!-- end box / title --> | |
|
30 | 29 | ${h.secure_form(h.route_path('repo_group_create'), request=request)} |
|
31 | 30 | <div class="form"> |
|
32 | 31 | <!-- fields --> |
|
33 | 32 | <div class="fields"> |
|
34 | 33 | <div class="field"> |
|
35 | 34 | <div class="label"> |
|
36 | 35 | <label for="group_name">${_('Group name')}:</label> |
|
37 | 36 | </div> |
|
38 | 37 | <div class="input"> |
|
39 | 38 | ${h.text('group_name', class_="medium")} |
|
40 | 39 | </div> |
|
41 | 40 | </div> |
|
42 | 41 | |
|
43 | 42 | <div class="field"> |
|
44 | 43 | <div class="label"> |
|
45 | 44 | <label for="group_parent_id">${_('Repository group')}:</label> |
|
46 | 45 | </div> |
|
47 | 46 | <div class="select"> |
|
48 | 47 | ${h.select('group_parent_id',request.GET.get('parent_group'),c.repo_groups,class_="medium")} |
|
49 | 48 | </div> |
|
50 | 49 | </div> |
|
51 | 50 | |
|
52 | 51 | <div class="field"> |
|
53 | 52 | <div class="label"> |
|
54 | 53 | <label for="group_description">${_('Description')}:</label> |
|
55 | 54 | </div> |
|
56 | 55 | <div class="textarea editor"> |
|
57 | 56 | ${h.textarea('group_description',cols=23,rows=5,class_="medium")} |
|
58 | 57 | <% metatags_url = h.literal('''<a href="#metatagsShow" onclick="$('#meta-tags-desc').toggle();return false">meta-tags</a>''') %> |
|
59 | 58 | <span class="help-block">${_('Plain text format with support of {metatags}').format(metatags=metatags_url)|n}</span> |
|
60 | 59 | <span id="meta-tags-desc" style="display: none"> |
|
61 | 60 | <%namespace name="dt" file="/data_table/_dt_elements.mako"/> |
|
62 | 61 | ${dt.metatags_help()} |
|
63 | 62 | </span> |
|
64 | 63 | </div> |
|
65 | 64 | </div> |
|
66 | 65 | |
|
67 | 66 | <div id="copy_perms" class="field"> |
|
68 | 67 | <div class="label label-checkbox"> |
|
69 | 68 | <label for="group_copy_permissions">${_('Copy Parent Group Permissions')}:</label> |
|
70 | 69 | </div> |
|
71 | 70 | <div class="checkboxes"> |
|
72 | 71 | ${h.checkbox('group_copy_permissions', value="True", checked="checked")} |
|
73 | 72 | <span class="help-block">${_('Copy permissions from parent repository group.')}</span> |
|
74 | 73 | </div> |
|
75 | 74 | </div> |
|
76 | 75 | |
|
77 | 76 | <div class="buttons"> |
|
78 | 77 | ${h.submit('save',_('Save'),class_="btn")} |
|
79 | 78 | </div> |
|
80 | 79 | </div> |
|
81 | 80 | </div> |
|
82 | 81 | ${h.end_form()} |
|
83 | 82 | </div> |
|
84 | 83 | <script> |
|
85 | 84 | $(document).ready(function(){ |
|
86 | 85 | var setCopyPermsOption = function(group_val){ |
|
87 | 86 | if(group_val !== "-1"){ |
|
88 | 87 | $('#copy_perms').show() |
|
89 | 88 | } |
|
90 | 89 | else{ |
|
91 | 90 | $('#copy_perms').hide(); |
|
92 | 91 | } |
|
93 | 92 | }; |
|
94 | 93 | $("#group_parent_id").select2({ |
|
95 | 94 | 'containerCssClass': "drop-menu", |
|
96 | 95 | 'dropdownCssClass': "drop-menu-dropdown", |
|
97 | 96 | 'dropdownAutoWidth': true |
|
98 | 97 | }); |
|
99 | 98 | setCopyPermsOption($('#group_parent_id').val()); |
|
100 | 99 | $("#group_parent_id").on("change", function(e) { |
|
101 | 100 | setCopyPermsOption(e.val) |
|
102 | 101 | }); |
|
103 | 102 | $('#group_name').focus(); |
|
104 | 103 | }) |
|
105 | 104 | </script> |
|
106 | 105 | </%def> |
@@ -1,37 +1,37 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="/base/base.mako"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="title()"> |
|
5 | 5 | ${_('Add repository')} |
|
6 | 6 | %if c.rhodecode_name: |
|
7 | 7 | · ${h.branding(c.rhodecode_name)} |
|
8 | 8 | %endif |
|
9 | 9 | </%def> |
|
10 | 10 | |
|
11 | 11 | <%def name="breadcrumbs_links()"> |
|
12 | 12 | %if c.rhodecode_user.is_admin: |
|
13 | 13 | ${h.link_to(_('Admin'), h.route_path('admin_home'))} |
|
14 | 14 | » |
|
15 | 15 | ${h.link_to(_('Repositories'), h.route_path('repos'))} |
|
16 | 16 | %else: |
|
17 | 17 | ${_('Admin')} |
|
18 | 18 | » |
|
19 | 19 | ${_('Repositories')} |
|
20 | 20 | %endif |
|
21 | 21 | » |
|
22 | 22 | ${_('Add Repository')} |
|
23 | 23 | </%def> |
|
24 | 24 | |
|
25 | 25 | <%def name="menu_bar_nav()"> |
|
26 | 26 | ${self.menu_items(active='admin')} |
|
27 | 27 | </%def> |
|
28 | 28 | |
|
29 | <%def name="menu_bar_subnav()"> | |
|
30 | ${self.admin_menu(active='repositories')} | |
|
31 | </%def> | |
|
32 | ||
|
29 | 33 | <%def name="main()"> |
|
30 | 34 | <div class="box"> |
|
31 | <!-- box / title --> | |
|
32 | <div class="title"> | |
|
33 | ${self.breadcrumbs()} | |
|
34 | </div> | |
|
35 | 35 | <%include file="repo_add_base.mako"/> |
|
36 | 36 | </div> |
|
37 | 37 | </%def> |
@@ -1,72 +1,71 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="/base/base.mako"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="title()"> |
|
5 | 5 | ${_('Add user group')} |
|
6 | 6 | %if c.rhodecode_name: |
|
7 | 7 | · ${h.branding(c.rhodecode_name)} |
|
8 | 8 | %endif |
|
9 | 9 | </%def> |
|
10 | 10 | <%def name="breadcrumbs_links()"> |
|
11 | 11 | ${h.link_to(_('Admin'),h.route_path('admin_home'))} |
|
12 | 12 | » |
|
13 | 13 | ${h.link_to(_('User groups'),h.route_path('user_groups'))} |
|
14 | 14 | » |
|
15 | 15 | ${_('Add User Group')} |
|
16 | 16 | </%def> |
|
17 | 17 | |
|
18 | 18 | <%def name="menu_bar_nav()"> |
|
19 | 19 | ${self.menu_items(active='admin')} |
|
20 | 20 | </%def> |
|
21 | 21 | |
|
22 | <%def name="menu_bar_subnav()"> | |
|
23 | ${self.admin_menu(active='user_groups')} | |
|
24 | </%def> | |
|
25 | ||
|
22 | 26 | <%def name="main()"> |
|
23 | 27 | <div class="box main-content"> |
|
24 | <!-- box / title --> | |
|
25 | <div class="title"> | |
|
26 | ${self.breadcrumbs()} | |
|
27 | </div> | |
|
28 | <!-- end box / title --> | |
|
29 | 28 | ${h.secure_form(h.route_path('user_groups_create'), request=request)} |
|
30 | 29 | <div class="form"> |
|
31 | 30 | <!-- fields --> |
|
32 | 31 | <div class="fields"> |
|
33 | 32 | <div class="field"> |
|
34 | 33 | <div class="label"> |
|
35 | 34 | <label for="users_group_name">${_('Group name')}:</label> |
|
36 | 35 | </div> |
|
37 | 36 | <div class="input"> |
|
38 | 37 | ${h.text('users_group_name', class_='medium')} |
|
39 | 38 | </div> |
|
40 | 39 | </div> |
|
41 | 40 | <div class="field"> |
|
42 | 41 | <div class="label"> |
|
43 | 42 | <label for="user_group_description">${_('Description')}:</label> |
|
44 | 43 | </div> |
|
45 | 44 | <div class="textarea editor"> |
|
46 | 45 | ${h.textarea('user_group_description')} |
|
47 | 46 | <span class="help-block">${_('Short, optional description for this user group.')}</span> |
|
48 | 47 | </div> |
|
49 | 48 | </div> |
|
50 | 49 | <div class="field"> |
|
51 | 50 | <div class="label"> |
|
52 | 51 | <label for="users_group_active">${_('Active')}:</label> |
|
53 | 52 | </div> |
|
54 | 53 | <div class="checkboxes"> |
|
55 | 54 | ${h.checkbox('users_group_active',value=True, checked='checked')} |
|
56 | 55 | </div> |
|
57 | 56 | </div> |
|
58 | 57 | |
|
59 | 58 | <div class="buttons"> |
|
60 | 59 | ${h.submit('save',_('Save'),class_="btn")} |
|
61 | 60 | </div> |
|
62 | 61 | </div> |
|
63 | 62 | </div> |
|
64 | 63 | ${h.end_form()} |
|
65 | 64 | </div> |
|
66 | 65 | </%def> |
|
67 | 66 | |
|
68 | 67 | <script> |
|
69 | 68 | $(document).ready(function(){ |
|
70 | 69 | $('#users_group_name').focus(); |
|
71 | 70 | }) |
|
72 | 71 | </script> |
@@ -1,46 +1,47 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="/base/base.mako"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="title()"> |
|
5 | 5 | ${_('%s user group settings') % c.user_group.users_group_name} |
|
6 | 6 | %if c.rhodecode_name: |
|
7 | 7 | · ${h.branding(c.rhodecode_name)} |
|
8 | 8 | %endif |
|
9 | 9 | </%def> |
|
10 | 10 | |
|
11 | 11 | <%def name="breadcrumbs_links()"> |
|
12 | 12 | ${h.link_to(_('Admin'),h.route_path('admin_home'))} |
|
13 | 13 | » |
|
14 | 14 | ${h.link_to(_('User Groups'),h.route_path('user_groups'))} |
|
15 | 15 | » |
|
16 | 16 | ${c.user_group.users_group_name} |
|
17 | 17 | </%def> |
|
18 | 18 | |
|
19 | 19 | <%def name="menu_bar_nav()"> |
|
20 | 20 | ${self.menu_items(active='admin')} |
|
21 | 21 | </%def> |
|
22 | 22 | |
|
23 | <%def name="menu_bar_subnav()"> | |
|
24 | ${self.admin_menu(active='user_groups')} | |
|
25 | </%def> | |
|
26 | ||
|
23 | 27 | <%def name="main()"> |
|
24 | 28 | <div class="box"> |
|
25 | <div class="title"> | |
|
26 | ${self.breadcrumbs()} | |
|
27 | </div> | |
|
28 | 29 | |
|
29 | 30 | ##main |
|
30 | 31 | <div class="sidebar-col-wrapper"> |
|
31 | 32 | <div class="sidebar"> |
|
32 | 33 | <ul class="nav nav-pills nav-stacked"> |
|
33 | 34 | <li class="${'active' if c.active=='settings' else ''}"><a href="${h.route_path('edit_user_group', user_group_id=c.user_group.users_group_id)}">${_('Settings')}</a></li> |
|
34 | 35 | <li class="${'active' if c.active=='perms' else ''}"><a href="${h.route_path('edit_user_group_perms', user_group_id=c.user_group.users_group_id)}">${_('Permissions')}</a></li> |
|
35 | 36 | <li class="${'active' if c.active=='advanced' else ''}"><a href="${h.route_path('edit_user_group_advanced', user_group_id=c.user_group.users_group_id)}">${_('Advanced')}</a></li> |
|
36 | 37 | <li class="${'active' if c.active=='global_perms' else ''}"><a href="${h.route_path('edit_user_group_global_perms', user_group_id=c.user_group.users_group_id)}">${_('Global permissions')}</a></li> |
|
37 | 38 | <li class="${'active' if c.active=='perms_summary' else ''}"><a href="${h.route_path('edit_user_group_perms_summary', user_group_id=c.user_group.users_group_id)}">${_('Permissions summary')}</a></li> |
|
38 | 39 | </ul> |
|
39 | 40 | </div> |
|
40 | 41 | |
|
41 | 42 | <div class="main-content-full-width"> |
|
42 | 43 | <%include file="/admin/user_groups/user_group_edit_${c.active}.mako"/> |
|
43 | 44 | </div> |
|
44 | 45 | </div> |
|
45 | 46 | </div> |
|
46 | 47 | </%def> |
@@ -1,58 +1,60 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="/base/base.mako"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="title()"> |
|
5 | 5 | ${_('%s user settings') % c.user.username} |
|
6 | 6 | %if c.rhodecode_name: |
|
7 | 7 | · ${h.branding(c.rhodecode_name)} |
|
8 | 8 | %endif |
|
9 | 9 | </%def> |
|
10 | 10 | |
|
11 | 11 | <%def name="breadcrumbs_links()"> |
|
12 | 12 | ${h.link_to(_('Admin'),h.route_path('admin_home'))} |
|
13 | 13 | » |
|
14 | 14 | ${h.link_to(_('Users'),h.route_path('users'))} |
|
15 | 15 | » |
|
16 | 16 | % if c.user.active: |
|
17 | 17 | ${c.user.username} |
|
18 | 18 | % else: |
|
19 | 19 | <strike title="${_('This user is set as disabled')}">${c.user.username}</strike> |
|
20 | 20 | % endif |
|
21 | 21 | |
|
22 | 22 | </%def> |
|
23 | 23 | |
|
24 | 24 | <%def name="menu_bar_nav()"> |
|
25 | 25 | ${self.menu_items(active='admin')} |
|
26 | 26 | </%def> |
|
27 | 27 | |
|
28 | <%def name="menu_bar_subnav()"> | |
|
29 | ${self.admin_menu(active='users')} | |
|
30 | </%def> | |
|
31 | ||
|
32 | ||
|
28 | 33 | <%def name="main()"> |
|
29 | 34 | <div class="box user_settings"> |
|
30 | <div class="title"> | |
|
31 | ${self.breadcrumbs()} | |
|
32 | </div> | |
|
33 | 35 | |
|
34 |
|
|
|
36 | ##main | |
|
35 | 37 | <div class="sidebar-col-wrapper"> |
|
36 | 38 | <div class="sidebar"> |
|
37 | 39 | <ul class="nav nav-pills nav-stacked"> |
|
38 | 40 | <li class="${'active' if c.active=='profile' else ''}"><a href="${h.route_path('user_edit', user_id=c.user.user_id)}">${_('User Profile')}</a></li> |
|
39 | 41 | <li class="${'active' if c.active=='auth_tokens' else ''}"><a href="${h.route_path('edit_user_auth_tokens', user_id=c.user.user_id)}">${_('Auth tokens')}</a></li> |
|
40 | 42 | <li class="${'active' if c.active in ['ssh_keys','ssh_keys_generate'] else ''}"><a href="${h.route_path('edit_user_ssh_keys', user_id=c.user.user_id)}">${_('SSH Keys')}</a></li> |
|
41 | 43 | <li class="${'active' if c.active=='advanced' else ''}"><a href="${h.route_path('user_edit_advanced', user_id=c.user.user_id)}">${_('Advanced')}</a></li> |
|
42 | 44 | <li class="${'active' if c.active=='global_perms' else ''}"><a href="${h.route_path('user_edit_global_perms', user_id=c.user.user_id)}">${_('Global permissions')}</a></li> |
|
43 | 45 | <li class="${'active' if c.active=='perms_summary' else ''}"><a href="${h.route_path('edit_user_perms_summary', user_id=c.user.user_id)}">${_('Permissions summary')}</a></li> |
|
44 | 46 | <li class="${'active' if c.active=='emails' else ''}"><a href="${h.route_path('edit_user_emails', user_id=c.user.user_id)}">${_('Emails')}</a></li> |
|
45 | 47 | <li class="${'active' if c.active=='ips' else ''}"><a href="${h.route_path('edit_user_ips', user_id=c.user.user_id)}">${_('Ip Whitelist')}</a></li> |
|
46 | 48 | <li class="${'active' if c.active=='groups' else ''}"><a href="${h.route_path('edit_user_groups_management', user_id=c.user.user_id)}">${_('User Groups Management')}</a></li> |
|
47 | 49 | <li class="${'active' if c.active=='audit' else ''}"><a href="${h.route_path('edit_user_audit_logs', user_id=c.user.user_id)}">${_('Audit logs')}</a></li> |
|
48 | 50 | <li class="${'active' if c.active=='caches' else ''}"><a href="${h.route_path('edit_user_caches', user_id=c.user.user_id)}">${_('Caches')}</a></li> |
|
49 | 51 | </ul> |
|
50 | 52 | </div> |
|
51 | 53 | |
|
52 | 54 | <div class="main-content-full-width"> |
|
53 | 55 | <%include file="/admin/users/user_edit_${c.active}.mako"/> |
|
54 | 56 | </div> |
|
55 | 57 | </div> |
|
56 | 58 | </div> |
|
57 | 59 | |
|
58 | 60 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now