diff options
Diffstat (limited to 'themes/okadmin/templates/resource.liquid')
| -rw-r--r-- | themes/okadmin/templates/resource.liquid | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/themes/okadmin/templates/resource.liquid b/themes/okadmin/templates/resource.liquid index c0d348d..88f93bd 100644 --- a/themes/okadmin/templates/resource.liquid +++ b/themes/okadmin/templates/resource.liquid @@ -1,19 +1,25 @@ {% include 'partials/head' %} -{% include 'partials/errors' %} +{% include 'partials/flash' %} -<nav> - <a href="../..">Back</a> +<nav class="resource-nav"> + <a href="../..">Back</a><br> + <br> + <a href="/admin/{{ resource.type }}/__new__/">ADD ANOTHER</a> </nav> -<section class="resource main"> - <h2>EDIT {{ resource.type }} '{{ resource.id }}'</h2> - <form action="." method="POST"> +<section class="resource main" data-type="{{ resource.type }}" data-id="{{ resource.id }}"> + <h2>EDIT {{ resource.type }} '{{ resource.spec.title.value }}'</h2> + <form action="." method="POST" id="resource_form"> <input type="hidden" name="_method" value="PUT"> {% include 'partials/inputs' %} <label> </label><button type="submit">Save</button> <div class="clear"></div> </form> + <form action="." method="POST" id="delete_form"> + <input type="hidden" name="_method" value="DELETE"> + <button type="submit">Delete Record</button> + </form> </section> {% include 'partials/tail' %} |
