Put template ID on the single template page

Not necessary to have it on its own page – it’s one line of stuff. And
definitely not as frequent use as the ‘Upload recipients’ or ‘Send
yourself a test’ links.
This commit is contained in:
Chris Hill-Scott
2017-03-20 11:55:48 +00:00
parent 89bd03d9f0
commit 44a3a81305
5 changed files with 23 additions and 53 deletions
-20
View File
@@ -1,20 +0,0 @@
{% extends "withnav_template.html" %}
{% from "components/api-key.html" import api_key %}
{% block service_page_title %}
API info
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-large">
API info
</h1>
{{ template|string }}
<div class="bottom-gutter">
{{ api_key(template.id, name="Template ID", thing='template ID') }}
</div>
{% endblock %}
@@ -1,6 +1,7 @@
{% extends "withnav_template.html" %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/textbox.html" import textbox %}
{% from "components/api-key.html" import api_key %}
{% block service_page_title %}
{{ template.name }}
@@ -17,6 +18,10 @@
{% endwith %}
</div>
<div class="bottom-gutter-2">
{{ api_key(template.id, name="Template ID", thing='template ID') }}
</div>
{{ page_footer(
secondary_link=url_for('.choose_template', service_id=current_service.id),
secondary_link_text='All templates'