diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-09-02 13:24:55 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-09-02 13:24:55 -0400 |
| commit | 8def9579f2a78e80652d1e5e6f1eda510ae9a5dd (patch) | |
| tree | c56d664f04d55f0d75c6d4f5e2d6fc567054498d /themes/okadmin/templates/resource.liquid | |
| parent | 4ed81fa59119cee66b0413c5662639ec81fea4dc (diff) | |
| parent | 5052d51aa4c55eabc736b3c76a783db2f5208289 (diff) | |
merge changes from twohustlers
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' %} |
