Mercurial > piecrust2
diff piecrust/admin/templates/create_page.html @ 1184:386744f74c4b
admin: Allow selecting a scaffolding template.
Templates available to the prepare command are now also available in the
admin panel.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 21 May 2020 22:11:28 -0700 |
parents | 5e91bc0e3b4d |
children |
line wrap: on
line diff
--- a/piecrust/admin/templates/create_page.html Thu May 21 22:10:04 2020 -0700 +++ b/piecrust/admin/templates/create_page.html Thu May 21 22:11:28 2020 -0700 @@ -18,6 +18,15 @@ {% endfor %} + {% if content_templates %} + <label for="content-template">Content Template:</label> + <select name="content-template" id="content-template"> + {% for ctpl in content_templates %} + <option value="{{ctpl}}">{{ctpl}}</option> + {% endfor %} + </select> + {% endif %} + <input type="hidden" name="source_name" value="{{source_name}}" /> <div class="row">