move action items to dropdown
This commit is contained in:
@@ -11,26 +11,27 @@
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<h2 id="h2_add" onclick="hidetoggle('disp_add')" class=pointer>Add items:</h2>
|
||||
<h2 id="h2_add" onclick="hidetoggle('disp_add')" class=pointer>Add items</h2>
|
||||
<form id="disp_add" name="area_add" action="{{ url_for('add_items') }}" method=post class=add-entry>
|
||||
<dl>
|
||||
<dt><textarea cols=40 rows=1 id=add_md name=add_md onkeyup="growTextarea('add_md')"></textarea><br><input type=hidden name=shopid value={{ shopid }}><input class=submit type=submit value=Add>
|
||||
</dl>
|
||||
</form>
|
||||
<h2 id="h2_remove_toggled" onclick="hidetoggle('disp_remove_toggled')" class=pointer>Remove ticked:</h2>
|
||||
<form id=disp_remove_toggled class=hidden action="{{ url_for('remove_toggled') }}" method=post class=add-entry>
|
||||
<h2 id="h2_remove_toggled" onclick="hidetoggle('disp_remove_toggled')" class=pointer>Remove ticked</h2>
|
||||
<form id=disp_remove_toggled action="{{ url_for('remove_toggled') }}" method=post class=add-entry>
|
||||
<dl><input type=hidden name=shopid value={{ shopid }}><input class=submit type=submit value=Remove>
|
||||
</dl></form>
|
||||
<h2 id="h2_edit" onclick="hidetoggle('disp_edit');growTextarea('edit_md');" class=pointer>Edit items:</h2>
|
||||
<hr>
|
||||
|
||||
<form id="disp_edit" class=hidden name="area_edit" action="{{ url_for('edit_md') }}" method=post class=add-entry>
|
||||
<dl>
|
||||
<dl>Edit content file:
|
||||
<dt><textarea cols=40 rows=5 id=edit_md name=edit_md onkeyup="growTextarea('edit_md')">{{ content }}</textarea><br>
|
||||
<input type=hidden name=shopid value={{ shopid }}><input class=submit type=submit value=Save onclick="return confirm('Do you really want to replace content?');" >
|
||||
</dl>
|
||||
</form>
|
||||
<h2 id="h2_share" onclick="hidetoggle('disp_share')" class=pointer>Share shop:</h2>
|
||||
<div class=hidden id=disp_share>
|
||||
<form action="{{ url_for('remove_share') }}" method=post class=toggle-item>
|
||||
<dl>Share the shop with other users:</dl>
|
||||
<input type=hidden name=shopid value="{{ shopid }}" >
|
||||
<ul>
|
||||
{% for user in shares %}
|
||||
@@ -44,13 +45,12 @@
|
||||
</dl>
|
||||
</form>
|
||||
</div>
|
||||
<h2 id="h2_restore" onclick="hidetoggle('disp_restore')" class=pointer>Restore backup:</h2>
|
||||
<form id="disp_restore" class=hidden action="{{ url_for('restore_md') }}" method=post class=add-entry>
|
||||
<dl>Shop state is backed up with "Edit items" and "Remove ticked" actions.</dl>
|
||||
<dl><input type=hidden name=shopid value={{ shopid }}><input class=submit type=submit value=Restore onclick="return confirm('Do you really want to restore previous version?');">
|
||||
</dl></form>
|
||||
<h2 id="h2_delete" onclick="hidetoggle('disp_delete')" class=pointer>Delete shop:</h2>
|
||||
<form id="disp_delete" class=hidden action="{{ url_for('remove_shop') }}" method=post class=add-entry>
|
||||
<dl>Delete shop permanently. Can not be restored.</dl>
|
||||
<dl><input type=hidden name=shopid value={{ shopid }}><input class=submit type=submit value=Remove onclick="return confirm('Do you really want to remove shop {{ shop }}?');">
|
||||
</dl></form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user