Show More
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | <h3 class="panel-title">${_('Default Settings For New Repositories')}</h3> |
|
4 | 4 | </div> |
|
5 | 5 | <div class="panel-body"> |
|
6 |
${h.secure_form(h.route_path('admin_defaults_repositories_update'), |
|
|
6 | ${h.secure_form(h.route_path('admin_defaults_repositories_update'), request=request)} | |
|
7 | 7 | <div class="form"> |
|
8 | 8 | <!-- fields --> |
|
9 | 9 |
@@ -26,7 +26,7 b'' | |||
|
26 | 26 | <div class="table"> |
|
27 | 27 | |
|
28 | 28 | <div id="files_data"> |
|
29 |
${h.secure_form(h.route_path('gist_update', gist_id=c.gist.gist_access_id), id='eform', |
|
|
29 | ${h.secure_form(h.route_path('gist_update', gist_id=c.gist.gist_access_id), id='eform', request=request)} | |
|
30 | 30 | <div> |
|
31 | 31 | <input type="hidden" value="${c.file_last_commit.raw_id}" name="parent_hash"> |
|
32 | 32 | <textarea id="description" name="description" |
@@ -25,7 +25,7 b'' | |||
|
25 | 25 | |
|
26 | 26 | <div class="table"> |
|
27 | 27 | <div id="files_data"> |
|
28 |
${h.secure_form(h.route_path('gists_create'), id='eform', |
|
|
28 | ${h.secure_form(h.route_path('gists_create'), id='eform', request=request)} | |
|
29 | 29 | <div> |
|
30 | 30 | <textarea id="description" name="description" placeholder="${_('Gist description ...')}"></textarea> |
|
31 | 31 |
@@ -45,7 +45,7 b'' | |||
|
45 | 45 | <div class="stats"> |
|
46 | 46 | %if h.HasPermissionAny('hg.admin')() or c.gist.gist_owner == c.rhodecode_user.user_id: |
|
47 | 47 | <div class="remove_gist"> |
|
48 |
${h.secure_form(h.route_path('gist_delete', gist_id=c.gist.gist_access_id), |
|
|
48 | ${h.secure_form(h.route_path('gist_delete', gist_id=c.gist.gist_access_id), request=request)} | |
|
49 | 49 | ${h.submit('remove_gist', _('Delete'),class_="btn btn-mini btn-danger",onclick="return confirm('"+_('Confirm to delete this Gist')+"');")} |
|
50 | 50 | ${h.end_form()} |
|
51 | 51 | </div> |
@@ -42,7 +42,7 b'' | |||
|
42 | 42 | %endif |
|
43 | 43 | </td> |
|
44 | 44 | <td class="td-action"> |
|
45 |
${h.secure_form(h.route_path('my_account_auth_tokens_delete'), |
|
|
45 | ${h.secure_form(h.route_path('my_account_auth_tokens_delete'), request=request)} | |
|
46 | 46 | ${h.hidden('del_auth_token', auth_token.user_api_key_id)} |
|
47 | 47 | <button class="btn btn-link btn-danger" type="submit" |
|
48 | 48 | onclick="return confirm('${_('Confirm to remove this auth token: %s') % auth_token.token_obfuscated}');"> |
@@ -59,7 +59,7 b'' | |||
|
59 | 59 | </div> |
|
60 | 60 | |
|
61 | 61 | <div class="user_auth_tokens"> |
|
62 |
${h.secure_form(h.route_path('my_account_auth_tokens_add'), |
|
|
62 | ${h.secure_form(h.route_path('my_account_auth_tokens_add'), request=request)} | |
|
63 | 63 | <div class="form form-vertical"> |
|
64 | 64 | <!-- fields --> |
|
65 | 65 | <div class="fields"> |
@@ -25,7 +25,7 b'' | |||
|
25 | 25 | <span class="user email">${em.email}</span> |
|
26 | 26 | </td> |
|
27 | 27 | <td class="td-action"> |
|
28 |
${h.secure_form(h.route_path('my_account_emails_delete'), |
|
|
28 | ${h.secure_form(h.route_path('my_account_emails_delete'), request=request)} | |
|
29 | 29 | ${h.hidden('del_email_id',em.email_id)} |
|
30 | 30 | <button class="btn btn-link btn-danger" type="submit" id="${'remove_email_%s'.format(em.email_id)}" |
|
31 | 31 | onclick="return confirm('${_('Confirm to delete this email: {}').format(em.email)}');"> |
@@ -48,7 +48,7 b'' | |||
|
48 | 48 | </div> |
|
49 | 49 | |
|
50 | 50 | <div> |
|
51 |
${h.secure_form(h.route_path('my_account_emails_add'), |
|
|
51 | ${h.secure_form(h.route_path('my_account_emails_add'), request=request)} | |
|
52 | 52 | <div class="form"> |
|
53 | 53 | <!-- fields --> |
|
54 | 54 | <div class="fields"> |
@@ -6,7 +6,7 b'' | |||
|
6 | 6 | </div> |
|
7 | 7 | |
|
8 | 8 | <div class="panel-body"> |
|
9 |
${h.secure_form(h.route_path('my_account_update'), class_='form', |
|
|
9 | ${h.secure_form(h.route_path('my_account_update'), class_='form', request=request)} | |
|
10 | 10 | <% readonly = None %> |
|
11 | 11 | <% disabled = "" %> |
|
12 | 12 |
@@ -24,7 +24,7 b'' | |||
|
24 | 24 | <td class="td-tags">${h.format_date(ssh_key.created_on)}</td> |
|
25 | 25 | |
|
26 | 26 | <td class="td-action"> |
|
27 |
${h.secure_form(h.route_path('my_account_ssh_keys_delete'), |
|
|
27 | ${h.secure_form(h.route_path('my_account_ssh_keys_delete'), request=request)} | |
|
28 | 28 | ${h.hidden('del_ssh_key', ssh_key.ssh_key_id)} |
|
29 | 29 | <button class="btn btn-link btn-danger" type="submit" |
|
30 | 30 | onclick="return confirm('${_('Confirm to remove ssh key %s') % ssh_key.ssh_key_fingerprint}');"> |
@@ -43,7 +43,7 b'' | |||
|
43 | 43 | |
|
44 | 44 | % if c.ssh_enabled: |
|
45 | 45 | <div class="user_ssh_keys"> |
|
46 |
${h.secure_form(h.route_path('my_account_ssh_keys_add'), |
|
|
46 | ${h.secure_form(h.route_path('my_account_ssh_keys_add'), request=request)} | |
|
47 | 47 | <div class="form form-vertical"> |
|
48 | 48 | <!-- fields --> |
|
49 | 49 | <div class="fields"> |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | <h3 class="panel-title">${_('System Wide Application Permissions')}</h3> |
|
4 | 4 | </div> |
|
5 | 5 | <div class="panel-body"> |
|
6 |
${h.secure_form(h.route_path('admin_permissions_application_update'), |
|
|
6 | ${h.secure_form(h.route_path('admin_permissions_application_update'), request=request)} | |
|
7 | 7 | <div class="form"> |
|
8 | 8 | <!-- fields --> |
|
9 | 9 | <div class="fields"> |
@@ -1,5 +1,5 b'' | |||
|
1 | 1 | |
|
2 |
${h.secure_form(h.route_path('admin_permissions_global_update'), |
|
|
2 | ${h.secure_form(h.route_path('admin_permissions_global_update'), request=request)} | |
|
3 | 3 | <div class="form permissions-global"> |
|
4 | 4 | <!-- fields --> |
|
5 | 5 | <div class="fields"> |
@@ -23,7 +23,7 b'' | |||
|
23 | 23 | <td class="td-iprange"><div class="ip">${h.ip_range(ip.ip_addr)}</div></td> |
|
24 | 24 | <td class="td-description"><div class="ip">${ip.description}</div></td> |
|
25 | 25 | <td class="td-action"> |
|
26 |
${h.secure_form(h.route_path('edit_user_ips_delete', user_id=c.user.user_id), |
|
|
26 | ${h.secure_form(h.route_path('edit_user_ips_delete', user_id=c.user.user_id), request=request)} | |
|
27 | 27 | ${h.hidden('del_ip_id',ip.ip_id)} |
|
28 | 28 | ${h.hidden('default_user', 'True')} |
|
29 | 29 | ${h.submit('remove_',_('Delete'),id="remove_ip_%s" % ip.ip_id, |
@@ -43,7 +43,7 b'' | |||
|
43 | 43 | </table> |
|
44 | 44 | </div> |
|
45 | 45 | |
|
46 |
${h.secure_form(h.route_path('edit_user_ips_add', user_id=c.user.user_id), |
|
|
46 | ${h.secure_form(h.route_path('edit_user_ips_add', user_id=c.user.user_id), request=request)} | |
|
47 | 47 | <div class="form"> |
|
48 | 48 | <!-- fields --> |
|
49 | 49 | <div class="fields"> |
@@ -5,7 +5,7 b'' | |||
|
5 | 5 | <div class="panel-body"> |
|
6 | 6 | <p>${_('Default system permissions. Each permissions management entity will be created with the following default settings. Check the overwrite checkbox to force any permission changes on already existing settings.')} |
|
7 | 7 | </p> |
|
8 |
${h.secure_form(h.route_path('admin_permissions_object_update'), |
|
|
8 | ${h.secure_form(h.route_path('admin_permissions_object_update'), request=request)} | |
|
9 | 9 | <div class="form"> |
|
10 | 10 | <div class="fields"> |
|
11 | 11 | <div class="field"> |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | <div class="panel-heading"> |
|
4 | 4 | <h3 class="panel-title">${_('SSH Keys')} - <span id="ssh_keys_count"></span></h3> |
|
5 | 5 | |
|
6 |
${h.secure_form(h.route_path('admin_permissions_ssh_keys_update'), |
|
|
6 | ${h.secure_form(h.route_path('admin_permissions_ssh_keys_update'), request=request)} | |
|
7 | 7 | <button class="btn btn-link pull-right" type="submit">${_('Update SSH keys file')}</button> |
|
8 | 8 | ${h.end_form()} |
|
9 | 9 | </div> |
@@ -27,7 +27,7 b'' | |||
|
27 | 27 | ${self.breadcrumbs()} |
|
28 | 28 | </div> |
|
29 | 29 | <!-- end box / title --> |
|
30 |
${h.secure_form(h.url('repo_groups'), |
|
|
30 | ${h.secure_form(h.url('repo_groups'), request=request)} | |
|
31 | 31 | <div class="form"> |
|
32 | 32 | <!-- fields --> |
|
33 | 33 | <div class="fields"> |
@@ -28,7 +28,7 b'' | |||
|
28 | 28 | <h3 class="panel-title">${_('Delete repository group')}</h3> |
|
29 | 29 | </div> |
|
30 | 30 | <div class="panel-body"> |
|
31 | ${h.secure_form(h.url('delete_repo_group', group_name=c.repo_group.group_name),method='delete')} | |
|
31 | ${h.secure_form(h.url('delete_repo_group', group_name=c.repo_group.group_name),method='delete', request=request)} | |
|
32 | 32 | <table class="display"> |
|
33 | 33 | |
|
34 | 34 | <tr> |
@@ -5,7 +5,7 b'' | |||
|
5 | 5 | <h3 class="panel-title">${_('Repository Group Permissions')}</h3> |
|
6 | 6 | </div> |
|
7 | 7 | <div class="panel-body"> |
|
8 | ${h.secure_form(h.url('edit_repo_group_perms', group_name=c.repo_group.group_name),method='put')} | |
|
8 | ${h.secure_form(h.url('edit_repo_group_perms', group_name=c.repo_group.group_name),method='put', request=request)} | |
|
9 | 9 | <table id="permissions_manage" class="rctable permissions"> |
|
10 | 10 | <tr> |
|
11 | 11 | <th class="td-radio">${_('None')}</th> |
@@ -6,7 +6,7 b'' | |||
|
6 | 6 | <h3 class="panel-title">${_('Settings for Repository Group: %s') % c.repo_group.name}</h3> |
|
7 | 7 | </div> |
|
8 | 8 | <div class="panel-body"> |
|
9 | ${h.secure_form(h.url('update_repo_group',group_name=c.repo_group.group_name),method='put')} | |
|
9 | ${h.secure_form(h.url('update_repo_group',group_name=c.repo_group.group_name),method='put', request=request)} | |
|
10 | 10 | <div class="form"> |
|
11 | 11 | <!-- fields --> |
|
12 | 12 | <div class="fields"> |
@@ -1,6 +1,6 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | |
|
3 |
${h.secure_form(h.route_path('repo_create'), |
|
|
3 | ${h.secure_form(h.route_path('repo_create'), request=request)} | |
|
4 | 4 | <div class="form"> |
|
5 | 5 | <!-- fields --> |
|
6 | 6 | <div class="fields"> |
@@ -24,7 +24,7 b'' | |||
|
24 | 24 | <h3 class="panel-title">${_('Fork Reference')} <a class="permalink" href="#advanced-fork"> ¶</a></h3> |
|
25 | 25 | </div> |
|
26 | 26 | <div class="panel-body"> |
|
27 |
${h.secure_form(h.route_path('edit_repo_advanced_fork', repo_name=c.rhodecode_db_repo.repo_name), |
|
|
27 | ${h.secure_form(h.route_path('edit_repo_advanced_fork', repo_name=c.rhodecode_db_repo.repo_name), request=request)} | |
|
28 | 28 | |
|
29 | 29 | % if c.rhodecode_db_repo.fork: |
|
30 | 30 | <div class="panel-body-title-text">${h.literal(_('This repository is a fork of %(repo_link)s') % {'repo_link': h.link_to_if(c.has_origin_repo_read_perm,c.rhodecode_db_repo.fork.repo_name, h.route_path('repo_summary', repo_name=c.rhodecode_db_repo.fork.repo_name))})} |
@@ -48,7 +48,7 b'' | |||
|
48 | 48 | <h3 class="panel-title">${_('Public Journal Visibility')} <a class="permalink" href="#advanced-journal"> ¶</a></h3> |
|
49 | 49 | </div> |
|
50 | 50 | <div class="panel-body"> |
|
51 |
${h.secure_form(h.route_path('edit_repo_advanced_journal', repo_name=c.rhodecode_db_repo.repo_name), |
|
|
51 | ${h.secure_form(h.route_path('edit_repo_advanced_journal', repo_name=c.rhodecode_db_repo.repo_name), request=request)} | |
|
52 | 52 | <div class="field"> |
|
53 | 53 | %if c.in_public_journal: |
|
54 | 54 | <button class="btn btn-small" type="submit"> |
@@ -73,7 +73,7 b'' | |||
|
73 | 73 | <h3 class="panel-title">${_('Locking state')} <a class="permalink" href="#advanced-locking"> ¶</a></h3> |
|
74 | 74 | </div> |
|
75 | 75 | <div class="panel-body"> |
|
76 |
${h.secure_form(h.route_path('edit_repo_advanced_locking', repo_name=c.rhodecode_db_repo.repo_name), |
|
|
76 | ${h.secure_form(h.route_path('edit_repo_advanced_locking', repo_name=c.rhodecode_db_repo.repo_name), request=request)} | |
|
77 | 77 | |
|
78 | 78 | %if c.rhodecode_db_repo.locked[0]: |
|
79 | 79 | <div class="panel-body-title-text">${'Locked by %s on %s. Lock reason: %s' % (h.person_by_id(c.rhodecode_db_repo.locked[0]), |
@@ -113,7 +113,7 b'' | |||
|
113 | 113 | <h3 class="panel-title">${_('Delete repository')} <a class="permalink" href="#advanced-delete"> ¶</a></h3> |
|
114 | 114 | </div> |
|
115 | 115 | <div class="panel-body"> |
|
116 |
${h.secure_form(h.route_path('edit_repo_advanced_delete', repo_name=c.repo_name), |
|
|
116 | ${h.secure_form(h.route_path('edit_repo_advanced_delete', repo_name=c.repo_name), request=request)} | |
|
117 | 117 | <table class="display"> |
|
118 | 118 | <tr> |
|
119 | 119 | <td> |
@@ -14,7 +14,7 b'' | |||
|
14 | 14 | </code> |
|
15 | 15 | </p> |
|
16 | 16 | |
|
17 |
${h.secure_form(h.route_path('edit_repo_caches', repo_name=c.repo_name), |
|
|
17 | ${h.secure_form(h.route_path('edit_repo_caches', repo_name=c.repo_name), request=request)} | |
|
18 | 18 | <div class="form"> |
|
19 | 19 | <div class="fields"> |
|
20 | 20 | ${h.submit('reset_cache_%s' % c.rhodecode_db_repo.repo_name,_('Invalidate repository cache'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")} |
@@ -18,7 +18,7 b'' | |||
|
18 | 18 | <td class="td-hash">${field.field_key}</td> |
|
19 | 19 | <td class="td-type">${field.field_type}</td> |
|
20 | 20 | <td class="td-action"> |
|
21 |
${h.secure_form(h.route_path('edit_repo_fields_delete', repo_name=c.rhodecode_db_repo.repo_name, field_id=field.repo_field_id), |
|
|
21 | ${h.secure_form(h.route_path('edit_repo_fields_delete', repo_name=c.rhodecode_db_repo.repo_name, field_id=field.repo_field_id), request=request)} | |
|
22 | 22 | ${h.hidden('del_repo_field',field.repo_field_id)} |
|
23 | 23 | <button class="btn btn-link btn-danger" type="submit" |
|
24 | 24 | onclick="return confirm('${_('Confirm to delete this field: %s') % field.field_key}');"> |
@@ -31,7 +31,7 b'' | |||
|
31 | 31 | </table> |
|
32 | 32 | </div> |
|
33 | 33 | %endif |
|
34 |
${h.secure_form(h.route_path('edit_repo_fields_create', repo_name=c.repo_name), |
|
|
34 | ${h.secure_form(h.route_path('edit_repo_fields_create', repo_name=c.repo_name), request=request)} | |
|
35 | 35 | <div class="form"> |
|
36 | 36 | <!-- fields --> |
|
37 | 37 | <div class="fields"> |
@@ -1,7 +1,7 b'' | |||
|
1 | 1 | <%namespace name="its" file="/base/issue_tracker_settings.mako"/> |
|
2 | 2 | |
|
3 | 3 | <div id="repo_issue_tracker" class="${'inherited' if c.settings_model.inherit_global_settings else ''}"> |
|
4 |
${h.secure_form(h.route_path('edit_repo_issuetracker_update', repo_name=c.repo_name), id="inherit-form", |
|
|
4 | ${h.secure_form(h.route_path('edit_repo_issuetracker_update', repo_name=c.repo_name), id="inherit-form", request=request)} | |
|
5 | 5 | <div class="panel panel-default panel-body"> |
|
6 | 6 | <div class="fields"> |
|
7 | 7 | <div class="field"> |
@@ -5,7 +5,7 b'' | |||
|
5 | 5 | <h3 class="panel-title">${_('Repository Permissions')}</h3> |
|
6 | 6 | </div> |
|
7 | 7 | <div class="panel-body"> |
|
8 |
${h.secure_form(h.route_path('edit_repo_perms', repo_name=c.repo_name), |
|
|
8 | ${h.secure_form(h.route_path('edit_repo_perms', repo_name=c.repo_name), request=request)} | |
|
9 | 9 | <table id="permissions_manage" class="rctable permissions"> |
|
10 | 10 | <tr> |
|
11 | 11 | <th class="td-radio">${_('None')}</th> |
@@ -19,7 +19,7 b'' | |||
|
19 | 19 | </code> |
|
20 | 20 | </p> |
|
21 | 21 | |
|
22 |
${h.secure_form(h.route_path('edit_repo_remote_pull', repo_name=c.repo_name), |
|
|
22 | ${h.secure_form(h.route_path('edit_repo_remote_pull', repo_name=c.repo_name), request=request)} | |
|
23 | 23 | <div class="form"> |
|
24 | 24 | <div class="fields"> |
|
25 | 25 | ${h.submit('remote_pull_%s' % c.rhodecode_db_repo.repo_name,_('Pull changes from remote location'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")} |
@@ -6,7 +6,7 b'' | |||
|
6 | 6 | <h3 class="panel-title">${_('Settings for Repository: %s') % c.rhodecode_db_repo.repo_name}</h3> |
|
7 | 7 | </div> |
|
8 | 8 | <div class="panel-body"> |
|
9 |
${h.secure_form(h.route_path('edit_repo', repo_name=c.rhodecode_db_repo.repo_name), |
|
|
9 | ${h.secure_form(h.route_path('edit_repo', repo_name=c.rhodecode_db_repo.repo_name), request=request)} | |
|
10 | 10 | <div class="form"> |
|
11 | 11 | <!-- fields --> |
|
12 | 12 | <div class="fields"> |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | <h3 class="panel-title">${_('Repository statistics')}</h3> |
|
4 | 4 | </div> |
|
5 | 5 | <div class="panel-body"> |
|
6 |
${h.secure_form(h.route_path('edit_repo_statistics_reset', repo_name=c.rhodecode_db_repo.repo_name), |
|
|
6 | ${h.secure_form(h.route_path('edit_repo_statistics_reset', repo_name=c.rhodecode_db_repo.repo_name), request=request)} | |
|
7 | 7 | <div class="form"> |
|
8 | 8 | <div class="fields"> |
|
9 | 9 | <div class="field" > |
@@ -9,7 +9,7 b'' | |||
|
9 | 9 | ${_('In the first step commits will be verified for existance in the repository')}. </br> |
|
10 | 10 | ${_('In the second step, correct commits will be available for stripping')}. |
|
11 | 11 | </p> |
|
12 |
${h.secure_form(h.route_path('strip_check', repo_name=c.rhodecode_db_repo.repo_name), |
|
|
12 | ${h.secure_form(h.route_path('strip_check', repo_name=c.rhodecode_db_repo.repo_name), request=request)} | |
|
13 | 13 | <div id="change_body" class="field"> |
|
14 | 14 | <div id="box-1" class="inputx locked_input"> |
|
15 | 15 | <input class="text" id="changeset_id-1" name="changeset_id-1" size="59" |
@@ -1,7 +1,7 b'' | |||
|
1 | 1 | <%namespace name="vcss" file="/base/vcs_settings.mako"/> |
|
2 | 2 | |
|
3 | 3 | <div id="repo_vcs_settings" class="${'inherited' if c.inherit_global_settings else ''}"> |
|
4 |
${h.secure_form(h.route_path('edit_repo_vcs_update', repo_name=c.rhodecode_db_repo.repo_name), |
|
|
4 | ${h.secure_form(h.route_path('edit_repo_vcs_update', repo_name=c.rhodecode_db_repo.repo_name), request=request)} | |
|
5 | 5 | <div class="form panel panel-default"> |
|
6 | 6 | <div class="fields panel-body"> |
|
7 | 7 | <div class="field"> |
@@ -34,7 +34,7 b'' | |||
|
34 | 34 | <h3 class="panel-title">${_('Test Email')}</h3> |
|
35 | 35 | </div> |
|
36 | 36 | <div class="panel-body"> |
|
37 |
${h.secure_form(h.url('admin_settings_email'), |
|
|
37 | ${h.secure_form(h.url('admin_settings_email'), request=request)} | |
|
38 | 38 | |
|
39 | 39 | <div class="field input"> |
|
40 | 40 | ${h.text('test_email', size=60, placeholder=_('enter valid email'))} |
@@ -1,4 +1,4 b'' | |||
|
1 |
${h.secure_form(h.url('admin_settings_global'), |
|
|
1 | ${h.secure_form(h.url('admin_settings_global'), request=request)} | |
|
2 | 2 | |
|
3 | 3 | <div class="panel panel-default"> |
|
4 | 4 | <div class="panel-heading" id="branding-options"> |
@@ -28,7 +28,7 b'' | |||
|
28 | 28 | </div> |
|
29 | 29 | <div class="panel-body"> |
|
30 | 30 | % if c.visual.allow_custom_hooks_settings: |
|
31 |
${h.secure_form(h.url('admin_settings_hooks'), |
|
|
31 | ${h.secure_form(h.url('admin_settings_hooks'), request=request)} | |
|
32 | 32 | <div class="form"> |
|
33 | 33 | <div class="fields"> |
|
34 | 34 |
@@ -5,7 +5,7 b'' | |||
|
5 | 5 | <h3 class="panel-title">${_('Issue Tracker / Wiki Patterns')}</h3> |
|
6 | 6 | </div> |
|
7 | 7 | <div class="panel-body"> |
|
8 |
${h.secure_form(h.url('admin_settings_issuetracker_save'), |
|
|
8 | ${h.secure_form(h.url('admin_settings_issuetracker_save'), request=request)} | |
|
9 | 9 | ${its.issue_tracker_settings_table( |
|
10 | 10 | patterns=c.issuetracker_entries.items(), |
|
11 | 11 | form_url=h.url('admin_settings_issuetracker'), |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | <h3 class="panel-title">${_('Labs Settings')}</h3> |
|
4 | 4 | </div> |
|
5 | 5 | <div class="panel-body"> |
|
6 |
${h.secure_form(h.url('admin_settings_labs'), |
|
|
6 | ${h.secure_form(h.url('admin_settings_labs'), request=request)} | |
|
7 | 7 | <div class="form"> |
|
8 | 8 | <div class="fields"> |
|
9 | 9 | % if not c.lab_settings: |
@@ -1,4 +1,4 b'' | |||
|
1 |
${h.secure_form(h.url('admin_settings_mapping'), |
|
|
1 | ${h.secure_form(h.url('admin_settings_mapping'), request=request)} | |
|
2 | 2 | |
|
3 | 3 | <div class="panel panel-default"> |
|
4 | 4 | <div class="panel-heading"> |
@@ -28,7 +28,7 b'' | |||
|
28 | 28 | <h3 class="panel-title">${_('Cleanup Old Sessions')}</h3> |
|
29 | 29 | </div> |
|
30 | 30 | <div class="panel-body"> |
|
31 |
${h.secure_form(h.route_path('admin_settings_sessions_cleanup'), |
|
|
31 | ${h.secure_form(h.route_path('admin_settings_sessions_cleanup'), request=request)} | |
|
32 | 32 | |
|
33 | 33 | <p> |
|
34 | 34 | ${_('Cleanup user sessions that were not active during chosen time frame.')} <br/> |
@@ -1,6 +1,6 b'' | |||
|
1 | 1 | <%namespace name="vcss" file="/base/vcs_settings.mako"/> |
|
2 | 2 | |
|
3 |
${h.secure_form(h.url('admin_settings_vcs'), |
|
|
3 | ${h.secure_form(h.url('admin_settings_vcs'), request=request)} | |
|
4 | 4 | <div> |
|
5 | 5 | ${vcss.vcs_settings_fields( |
|
6 | 6 | suffix='', |
@@ -1,4 +1,4 b'' | |||
|
1 |
${h.secure_form(h.url('admin_settings_visual'), |
|
|
1 | ${h.secure_form(h.url('admin_settings_visual'), request=request)} | |
|
2 | 2 | |
|
3 | 3 | <div class="panel panel-default"> |
|
4 | 4 | <div class="panel-heading" id="general"> |
@@ -26,7 +26,7 b'' | |||
|
26 | 26 | ${self.breadcrumbs()} |
|
27 | 27 | </div> |
|
28 | 28 | <!-- end box / title --> |
|
29 |
${h.secure_form(h.route_path('user_groups_create'), |
|
|
29 | ${h.secure_form(h.route_path('user_groups_create'), request=request)} | |
|
30 | 30 | <div class="form"> |
|
31 | 31 | <!-- fields --> |
|
32 | 32 | <div class="fields"> |
@@ -44,7 +44,7 b'' | |||
|
44 | 44 | % endif |
|
45 | 45 | |
|
46 | 46 | <div> |
|
47 |
${h.secure_form(h.route_path('edit_user_group_advanced_sync', user_group_id=c.user_group.users_group_id), |
|
|
47 | ${h.secure_form(h.route_path('edit_user_group_advanced_sync', user_group_id=c.user_group.users_group_id), request=request)} | |
|
48 | 48 | <div class="field"> |
|
49 | 49 | <button class="btn btn-default" type="submit"> |
|
50 | 50 | %if sync_type: |
@@ -72,7 +72,7 b'' | |||
|
72 | 72 | <h3 class="panel-title">${_('Delete User Group')}</h3> |
|
73 | 73 | </div> |
|
74 | 74 | <div class="panel-body"> |
|
75 |
${h.secure_form(h.route_path('user_groups_delete', user_group_id=c.user_group.users_group_id), |
|
|
75 | ${h.secure_form(h.route_path('user_groups_delete', user_group_id=c.user_group.users_group_id), request=request)} | |
|
76 | 76 | ${h.hidden('force', 1)} |
|
77 | 77 | <button class="btn btn-small btn-danger" type="submit" |
|
78 | 78 | onclick="return confirm('${_('Confirm to delete user group `%(ugroup)s` with all permission assignments') % {'ugroup': c.user_group.users_group_name}}');"> |
@@ -5,7 +5,7 b'' | |||
|
5 | 5 | <h3 class="panel-title">${_('User Group Permissions')}</h3> |
|
6 | 6 | </div> |
|
7 | 7 | <div class="panel-body"> |
|
8 |
${h.secure_form(h.route_path('edit_user_group_perms_update', user_group_id=c.user_group.users_group_id), |
|
|
8 | ${h.secure_form(h.route_path('edit_user_group_perms_update', user_group_id=c.user_group.users_group_id), request=request)} | |
|
9 | 9 | <table id="permissions_manage" class="rctable permissions"> |
|
10 | 10 | <tr> |
|
11 | 11 | <th class="td-radio">${_('None')}</th> |
@@ -6,7 +6,7 b'' | |||
|
6 | 6 | <h3 class="panel-title">${_('User Group: %s') % c.user_group.users_group_name}</h3> |
|
7 | 7 | </div> |
|
8 | 8 | <div class="panel-body"> |
|
9 |
${h.secure_form(h.route_path('user_groups_update', user_group_id=c.user_group.users_group_id), id='edit_user_group', |
|
|
9 | ${h.secure_form(h.route_path('user_groups_update', user_group_id=c.user_group.users_group_id), id='edit_user_group', request=request)} | |
|
10 | 10 | <div class="form"> |
|
11 | 11 | <!-- fields --> |
|
12 | 12 | <div class="fields"> |
@@ -38,7 +38,7 b'' | |||
|
38 | 38 | %endif |
|
39 | 39 | </td> |
|
40 | 40 | <td class="td-action"> |
|
41 |
${h.secure_form(h.route_path('edit_user_auth_tokens_delete', user_id=c.user.user_id), |
|
|
41 | ${h.secure_form(h.route_path('edit_user_auth_tokens_delete', user_id=c.user.user_id), request=request)} | |
|
42 | 42 | ${h.hidden('del_auth_token', auth_token.user_api_key_id)} |
|
43 | 43 | <button class="btn btn-link btn-danger" type="submit" |
|
44 | 44 | onclick="return confirm('${_('Confirm to remove this auth token: %s') % auth_token.token_obfuscated}');"> |
@@ -55,7 +55,7 b'' | |||
|
55 | 55 | </div> |
|
56 | 56 | |
|
57 | 57 | <div class="user_auth_tokens"> |
|
58 |
${h.secure_form(h.route_path('edit_user_auth_tokens_add', user_id=c.user.user_id), |
|
|
58 | ${h.secure_form(h.route_path('edit_user_auth_tokens_add', user_id=c.user.user_id), request=request)} | |
|
59 | 59 | <div class="form form-vertical"> |
|
60 | 60 | <!-- fields --> |
|
61 | 61 | <div class="fields"> |
@@ -24,7 +24,7 b'' | |||
|
24 | 24 | <span class="user email">${em.email}</span> |
|
25 | 25 | </td> |
|
26 | 26 | <td class="td-action"> |
|
27 |
${h.secure_form(h.route_path('edit_user_emails_delete', user_id=c.user.user_id), |
|
|
27 | ${h.secure_form(h.route_path('edit_user_emails_delete', user_id=c.user.user_id), request=request)} | |
|
28 | 28 | ${h.hidden('del_email_id', em.email_id)} |
|
29 | 29 | <button class="btn btn-link btn-danger" type="submit" |
|
30 | 30 | onclick="return confirm('${_('Confirm to delete this email: %s') % em.email}');"> |
@@ -46,7 +46,7 b'' | |||
|
46 | 46 | </table> |
|
47 | 47 | </div> |
|
48 | 48 | |
|
49 |
${h.secure_form(h.route_path('edit_user_emails_add', user_id=c.user.user_id), |
|
|
49 | ${h.secure_form(h.route_path('edit_user_emails_add', user_id=c.user.user_id), request=request)} | |
|
50 | 50 | <div class="form"> |
|
51 | 51 | <!-- fields --> |
|
52 | 52 | <div class="fields"> |
@@ -19,7 +19,7 b'' | |||
|
19 | 19 | </div> |
|
20 | 20 | |
|
21 | 21 | <div class="groups_management"> |
|
22 |
${h.secure_form(h.route_path('edit_user_groups_management_updates', user_id=c.user.user_id), |
|
|
22 | ${h.secure_form(h.route_path('edit_user_groups_management_updates', user_id=c.user.user_id), request=request)} | |
|
23 | 23 | <div id="repos_list_wrap"> |
|
24 | 24 | <table id="user_group_list_table" class="display"></table> |
|
25 | 25 | </div> |
@@ -30,7 +30,7 b'' | |||
|
30 | 30 | <td class="td-iprange"><div class="ip">${h.ip_range(ip.ip_addr)}</div></td> |
|
31 | 31 | <td class="td-description"><div class="ip">${ip.description}</div></td> |
|
32 | 32 | <td class="td-action"> |
|
33 |
${h.secure_form(h.route_path('edit_user_ips_delete', user_id=c.user.user_id), |
|
|
33 | ${h.secure_form(h.route_path('edit_user_ips_delete', user_id=c.user.user_id), request=request)} | |
|
34 | 34 | ${h.hidden('del_ip_id', ip.ip_id)} |
|
35 | 35 | ${h.submit('remove_', _('Delete'),id="remove_ip_%s" % ip.ip_id, |
|
36 | 36 | class_="btn btn-link btn-danger", onclick="return confirm('"+_('Confirm to delete this ip: %s') % ip.ip_addr+"');")} |
@@ -51,7 +51,7 b'' | |||
|
51 | 51 | </div> |
|
52 | 52 | |
|
53 | 53 | <div> |
|
54 |
${h.secure_form(h.route_path('edit_user_ips_add', user_id=c.user.user_id), |
|
|
54 | ${h.secure_form(h.route_path('edit_user_ips_add', user_id=c.user.user_id), request=request)} | |
|
55 | 55 | <div class="form"> |
|
56 | 56 | <!-- fields --> |
|
57 | 57 | <div class="fields"> |
@@ -21,7 +21,7 b'' | |||
|
21 | 21 | <td class="td-tags">${h.format_date(ssh_key.created_on)}</td> |
|
22 | 22 | |
|
23 | 23 | <td class="td-action"> |
|
24 |
${h.secure_form(h.route_path('edit_user_ssh_keys_delete', user_id=c.user.user_id), |
|
|
24 | ${h.secure_form(h.route_path('edit_user_ssh_keys_delete', user_id=c.user.user_id), request=request)} | |
|
25 | 25 | ${h.hidden('del_ssh_key', ssh_key.ssh_key_id)} |
|
26 | 26 | <button class="btn btn-link btn-danger" type="submit" |
|
27 | 27 | onclick="return confirm('${_('Confirm to remove ssh key %s') % ssh_key.ssh_key_fingerprint}');"> |
@@ -38,7 +38,7 b'' | |||
|
38 | 38 | </div> |
|
39 | 39 | |
|
40 | 40 | <div class="user_ssh_keys"> |
|
41 |
${h.secure_form(h.route_path('edit_user_ssh_keys_add', user_id=c.user.user_id), |
|
|
41 | ${h.secure_form(h.route_path('edit_user_ssh_keys_add', user_id=c.user.user_id), request=request)} | |
|
42 | 42 | <div class="form form-vertical"> |
|
43 | 43 | <!-- fields --> |
|
44 | 44 | <div class="fields"> |
@@ -94,7 +94,7 b'' | |||
|
94 | 94 | </%def> |
|
95 | 95 | |
|
96 | 96 | <%def name="default_perms_box(form_url)"> |
|
97 |
${h.secure_form(form_url, |
|
|
97 | ${h.secure_form(form_url, request=request)} | |
|
98 | 98 | <div class="form"> |
|
99 | 99 | <div class="fields"> |
|
100 | 100 | <div class="field panel panel-default panel-body"> |
@@ -167,7 +167,7 b'' | |||
|
167 | 167 | <i class="icon-pencil"></i>Edit</a> |
|
168 | 168 | </div> |
|
169 | 169 | <div class="grid_delete"> |
|
170 |
${h.secure_form(h.route_path('edit_repo_advanced_delete', repo_name=repo_name), |
|
|
170 | ${h.secure_form(h.route_path('edit_repo_advanced_delete', repo_name=repo_name), request=request)} | |
|
171 | 171 | ${h.submit('remove_%s' % repo_name,_('Delete'),class_="btn btn-link btn-danger", |
|
172 | 172 | onclick="return confirm('"+_('Confirm to delete this repository: %s') % repo_name+"');")} |
|
173 | 173 | ${h.end_form()} |
@@ -240,7 +240,7 b'' | |||
|
240 | 240 | <a href="${h.url('edit_repo_group',group_name=repo_group_name)}" title="${_('Edit')}">Edit</a> |
|
241 | 241 | </div> |
|
242 | 242 | <div class="grid_delete"> |
|
243 | ${h.secure_form(h.url('delete_repo_group', group_name=repo_group_name),method='delete')} | |
|
243 | ${h.secure_form(h.url('delete_repo_group', group_name=repo_group_name),method='delete', request=request)} | |
|
244 | 244 | ${h.submit('remove_%s' % repo_group_name,_('Delete'),class_="btn btn-link btn-danger", |
|
245 | 245 | onclick="return confirm('"+_ungettext('Confirm to delete this group: %s with %s repository','Confirm to delete this group: %s with %s repositories',gr_count) % (repo_group_name, gr_count)+"');")} |
|
246 | 246 | ${h.end_form()} |
@@ -266,7 +266,7 b'' | |||
|
266 | 266 | <a href="${h.route_path('edit_user_group', user_group_id=user_group_id)}" title="${_('Edit')}">Edit</a> |
|
267 | 267 | </div> |
|
268 | 268 | <div class="grid_delete"> |
|
269 |
${h.secure_form(h.route_path('user_groups_delete', user_group_id=user_group_id), |
|
|
269 | ${h.secure_form(h.route_path('user_groups_delete', user_group_id=user_group_id), request=request)} | |
|
270 | 270 | ${h.submit('remove_',_('Delete'),id="remove_group_%s" % user_group_id, class_="btn btn-link btn-danger", |
|
271 | 271 | onclick="return confirm('"+_('Confirm to delete this user group: %s') % user_group_name+"');")} |
|
272 | 272 | ${h.end_form()} |
@@ -27,7 +27,7 b'' | |||
|
27 | 27 | <div class="edit-file-title"> |
|
28 | 28 | ${self.breadcrumbs()} |
|
29 | 29 | </div> |
|
30 |
${h.secure_form(h.route_path('repo_files_create_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', |
|
|
30 | ${h.secure_form(h.route_path('repo_files_create_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', enctype="multipart/form-data", class_="form-horizontal", request=request)} | |
|
31 | 31 | <div class="edit-file-fieldset"> |
|
32 | 32 | <div class="fieldset"> |
|
33 | 33 | <div id="destination-label" class="left-label"> |
@@ -121,7 +121,7 b'' | |||
|
121 | 121 | button.addClass('clicked'); |
|
122 | 122 | } |
|
123 | 123 | }); |
|
124 | ||
|
124 | ||
|
125 | 125 | $('#specify-custom-path').on('click', function(e){ |
|
126 | 126 | e.preventDefault(); |
|
127 | 127 | $('#specify-custom-path-container').hide(); |
@@ -27,7 +27,7 b'' | |||
|
27 | 27 | <div class="edit-file-title"> |
|
28 | 28 | ${self.breadcrumbs()} |
|
29 | 29 | </div> |
|
30 |
${h.secure_form(h.route_path('repo_files_delete_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', |
|
|
30 | ${h.secure_form(h.route_path('repo_files_delete_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', class_="form-horizontal", request=request)} | |
|
31 | 31 | <div class="edit-file-fieldset"> |
|
32 | 32 | <div class="fieldset"> |
|
33 | 33 | <div id="destination-label" class="left-label"> |
@@ -42,7 +42,7 b'' | |||
|
42 | 42 | </div> |
|
43 | 43 | |
|
44 | 44 | <div class="table"> |
|
45 |
${h.secure_form(h.route_path('repo_files_update_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', |
|
|
45 | ${h.secure_form(h.route_path('repo_files_update_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', request=request)} | |
|
46 | 46 | <div id="codeblock" class="codeblock" > |
|
47 | 47 | <div class="code-header"> |
|
48 | 48 | <div class="stats"> |
@@ -27,7 +27,7 b'' | |||
|
27 | 27 | ${self.breadcrumbs()} |
|
28 | 28 | </div> |
|
29 | 29 | |
|
30 |
${h.secure_form(h.route_path('repo_fork_create',repo_name=c.rhodecode_db_repo.repo_name), |
|
|
30 | ${h.secure_form(h.route_path('repo_fork_create',repo_name=c.rhodecode_db_repo.repo_name), request=request)} | |
|
31 | 31 | <div class="form"> |
|
32 | 32 | <!-- fields --> |
|
33 | 33 | <div class="fields"> |
@@ -22,7 +22,7 b'' | |||
|
22 | 22 | ${self.repo_page_title(c.rhodecode_db_repo)} |
|
23 | 23 | </div> |
|
24 | 24 | |
|
25 |
${h.secure_form(h.route_path('pullrequest_create', repo_name=c.repo_name, _query=request.GET.mixed()), id='pull_request_form', |
|
|
25 | ${h.secure_form(h.route_path('pullrequest_create', repo_name=c.repo_name, _query=request.GET.mixed()), id='pull_request_form', request=request)} | |
|
26 | 26 | |
|
27 | 27 | ${self.breadcrumbs()} |
|
28 | 28 |
@@ -47,7 +47,7 b'' | |||
|
47 | 47 | % endif |
|
48 | 48 | |
|
49 | 49 | <div> |
|
50 |
${h.secure_form(h.route_path('pullrequest_merge', repo_name=c.repo_name, pull_request_id=c.pull_request.pull_request_id), id='merge_pull_request_form', |
|
|
50 | ${h.secure_form(h.route_path('pullrequest_merge', repo_name=c.repo_name, pull_request_id=c.pull_request.pull_request_id), id='merge_pull_request_form', request=request)} | |
|
51 | 51 | <% merge_disabled = ' disabled' if c.pr_merge_possible is False else '' %> |
|
52 | 52 | <a class="btn" href="#" onclick="refreshMergeChecks(); return false;">${_('refresh checks')}</a> |
|
53 | 53 | <input type="submit" id="merge_pull_request" value="${_('Merge Pull Request')}" class="btn${merge_disabled}"${merge_disabled}> |
@@ -52,7 +52,7 b'' | |||
|
52 | 52 | %if c.allowed_to_update: |
|
53 | 53 | <div id="delete_pullrequest" class="pull-right action_button ${'' if c.allowed_to_delete else 'disabled' }" style="clear:inherit;padding: 0"> |
|
54 | 54 | % if c.allowed_to_delete: |
|
55 |
${h.secure_form(h.route_path('pullrequest_delete', repo_name=c.pull_request.target_repo.repo_name, pull_request_id=c.pull_request.pull_request_id), |
|
|
55 | ${h.secure_form(h.route_path('pullrequest_delete', repo_name=c.pull_request.target_repo.repo_name, pull_request_id=c.pull_request.pull_request_id), request=request)} | |
|
56 | 56 | ${h.submit('remove_%s' % c.pull_request.pull_request_id, _('Delete'), |
|
57 | 57 | class_="btn btn-link btn-danger no-margin",onclick="return confirm('"+_('Confirm to delete this pull request')+"');")} |
|
58 | 58 | ${h.end_form()} |
General Comments 0
You need to be logged in to leave comments.
Login now