diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-13 14:24:16 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-13 14:24:16 -0700 |
commit | 404f6ff6d542dc6dc61395cdb25646e3a69eb061 (patch) | |
tree | c70a5421be53f935674f64f0d519a31e32fba4d4 /python/fatcat_web/templates/file_edit.html | |
parent | 95286700bbe06c8c0676e08acc0b6dc4a8f8504d (diff) | |
download | fatcat-404f6ff6d542dc6dc61395cdb25646e3a69eb061.tar.gz fatcat-404f6ff6d542dc6dc61395cdb25646e3a69eb061.zip |
implement major refactor for other entity types
Diffstat (limited to 'python/fatcat_web/templates/file_edit.html')
-rw-r--r-- | python/fatcat_web/templates/file_edit.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/fatcat_web/templates/file_edit.html b/python/fatcat_web/templates/file_edit.html index bef80ee3..74a5682a 100644 --- a/python/fatcat_web/templates/file_edit.html +++ b/python/fatcat_web/templates/file_edit.html @@ -6,12 +6,12 @@ <div class="ui segment"> <h1 class="ui header">Edit File Entity</h1> -<form class="ui form" id="edit_file_form" method="POST" action="/file/{{ entity.ident }}/edit"> +<form class="ui form" id="edit_file_form" method="POST" action="{% if editgroup %}/editgroup/{{ editgroup.editgroup_id }}{% endif %}/file/{{ existing_ident }}/edit"> {% endblock %} {{ form.hidden_tag() }} - <br> - {{ edit_macros.editgroup_dropdown(form) }} + <h3 class="ui dividing header">Editgroup Metadata</h3> + {{ edit_macros.editgroup_dropdown(form, editgroup, potential_editgroups) }} <br> <h3 class="ui dividing header">File Metadata</h3> @@ -103,7 +103,7 @@ <!-- Form code --> $(document).ready(function() { - $('.ui.accordion').accordion(); + $('.ui.dropdown') .dropdown(); var fixup_url_numbering = function(group_item) { items = Array.from(group_item.querySelectorAll(".list-group-item")) |