Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
21f6a2a
commit f1f5305
Showing
5 changed files
with
164 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
byceps/blueprints/admin/webhook/templates/admin/webhook/update_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{% extends 'layout/admin/base.html' %} | ||
{% from 'macros/admin.html' import render_backlink %} | ||
{% from 'macros/forms.html' import form_buttons, form_field, form_field_checkbox, form_fieldset, form_supplement %} | ||
{% from 'macros/icons.html' import render_icon %} | ||
{% set current_page = 'webhook_admin' %} | ||
{% set title = _('Update Webhook') %} | ||
|
||
{% block before_body %} | ||
{{ render_backlink(url_for('.index'), _('Webhooks')) }} | ||
{%- endblock %} | ||
|
||
{% block body %} | ||
|
||
<h1>{{ render_icon('edit') }} {{ title }}</h1> | ||
|
||
<form action="{{ url_for('.update', webhook_id=webhook.id) }}" method="post"> | ||
{% call form_fieldset() %} | ||
{{ form_field(form.description, autofocus='autofocus') }} | ||
{{ form_field(form.format) }} | ||
{{ form_field(form.url) }} | ||
{{ form_field(form.text_prefix) }} | ||
{{ form_field(form.enabled) }} | ||
<div class="form-row"> | ||
<label>{{ _('Selectors') }}</label> | ||
<fieldset> | ||
{%- for event_name in event_names|sort %} | ||
<div class="checkbox"> | ||
{%- with field = form.get_field_for_event_name(event_name) %} | ||
{{- field() }} {{ field.label(event_name) }} | ||
{%- endwith %} | ||
</div> | ||
{%- endfor %} | ||
<fieldset> | ||
</div> | ||
{% endcall %} | ||
|
||
{{ form_buttons(_('Update')) }} | ||
</form> | ||
|
||
{%- endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters