form.mako
69 lines
| 2.4 KiB
| application/x-mako
|
MakoHtmlLexer
r1282 | ## -*- coding: utf-8 -*- | |||
<%inherit file="base.mako"/> | ||||
<%def name="breadcrumbs_links()"> | ||||
%if c.repo: | ||||
r1716 | ${h.link_to('Settings',h.route_path('edit_repo', repo_name=c.repo.repo_name))} | |||
r1282 | » | |||
${h.link_to(_('Integrations'),request.route_url(route_name='repo_integrations_home', repo_name=c.repo.repo_name))} | ||||
» | ||||
r1990 | ${h.link_to(c.current_IntegrationType.display_name, | |||
r1282 | request.route_url(route_name='repo_integrations_list', | |||
repo_name=c.repo.repo_name, | ||||
r1990 | integration=c.current_IntegrationType.key))} | |||
r1282 | %elif c.repo_group: | |||
r1758 | ${h.link_to(_('Admin'),h.route_path('admin_home'))} | |||
r1282 | » | |||
r2175 | ${h.link_to(_('Repository Groups'),h.route_path('repo_groups'))} | |||
r1282 | » | |||
r2175 | ${h.link_to(c.repo_group.group_name,h.route_path('edit_repo_group', repo_group_name=c.repo_group.group_name))} | |||
r1282 | » | |||
${h.link_to(_('Integrations'),request.route_url(route_name='repo_group_integrations_home', repo_group_name=c.repo_group.group_name))} | ||||
» | ||||
r1990 | ${h.link_to(c.current_IntegrationType.display_name, | |||
r1282 | request.route_url(route_name='repo_group_integrations_list', | |||
repo_group_name=c.repo_group.group_name, | ||||
r1990 | integration=c.current_IntegrationType.key))} | |||
r1282 | %else: | |||
r1758 | ${h.link_to(_('Admin'),h.route_path('admin_home'))} | |||
r1282 | » | |||
${h.link_to(_('Settings'),h.url('admin_settings'))} | ||||
» | ||||
${h.link_to(_('Integrations'),request.route_url(route_name='global_integrations_home'))} | ||||
» | ||||
r1990 | ${h.link_to(c.current_IntegrationType.display_name, | |||
r1282 | request.route_url(route_name='global_integrations_list', | |||
r1990 | integration=c.current_IntegrationType.key))} | |||
r1282 | %endif | |||
r1990 | %if c.integration: | |||
r1282 | » | |||
r1990 | ${c.integration.name} | |||
%elif c.current_IntegrationType: | ||||
r1282 | » | |||
r1990 | ${c.current_IntegrationType.display_name} | |||
r1282 | %endif | |||
</%def> | ||||
<style> | ||||
.control-inputs.item-options, .control-inputs.item-settings { | ||||
float: left; | ||||
width: 100%; | ||||
} | ||||
</style> | ||||
<div class="panel panel-default"> | ||||
<div class="panel-heading"> | ||||
<h2 class="panel-title"> | ||||
r1990 | %if c.integration: | |||
${c.current_IntegrationType.display_name} - ${c.integration.name} | ||||
r1282 | %else: | |||
${_('Create New %(integration_type)s Integration') % { | ||||
r1990 | 'integration_type': c.current_IntegrationType.display_name | |||
r1282 | }} | |||
%endif | ||||
</h2> | ||||
</div> | ||||
<div class="panel-body"> | ||||
r1990 | ${c.form.render() | n} | |||
r1282 | </div> | |||
</div> | ||||