Add routing and pages for managing templates

So that users can see what it the flow is like to:
- add new templates
- edit existing templates
This commit is contained in:
Chris Hill-Scott
2015-12-20 00:00:01 +00:00
parent 5e0777b696
commit ba48707371
10 changed files with 124 additions and 69 deletions

View File

@@ -0,0 +1,10 @@
{% macro textbox(name, label, value='', small=True) %}
<div class="form-group">
<label class="form-label" for="{{ name }}">{{ label }}</label>
{% if small %}
<input class="form-control" id="{{ name }}" name="{{ name }}" type="text" value="{{ value }}">
{% else %}
<textarea class="form-control" id="{{ name }}" name="{{ name }}" cols="30" rows="10">{{ value }}</textarea>
{% endif %}
</div>
{% endmacro %}