aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/mitemedit.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-04-21 10:05:26 +0200
committerMario Vavti <mario@mariovavti.com>2015-04-21 10:05:26 +0200
commit0bd9fe0b11013423a17ebaabb22482bee38d8f0f (patch)
tree07f801f228971898d27ba10068f8482deaaef1cd /view/tpl/mitemedit.tpl
parent6bc2766d79388ce6f813c429348cbc50d9afadaa (diff)
downloadvolse-hubzilla-0bd9fe0b11013423a17ebaabb22482bee38d8f0f.tar.gz
volse-hubzilla-0bd9fe0b11013423a17ebaabb22482bee38d8f0f.tar.bz2
volse-hubzilla-0bd9fe0b11013423a17ebaabb22482bee38d8f0f.zip
rework and hopefully improve webpage menu creation workflow
Diffstat (limited to 'view/tpl/mitemedit.tpl')
-rw-r--r--view/tpl/mitemedit.tpl61
1 files changed, 31 insertions, 30 deletions
diff --git a/view/tpl/mitemedit.tpl b/view/tpl/mitemedit.tpl
index a18fbb0ef..5fb8f0a9e 100644
--- a/view/tpl/mitemedit.tpl
+++ b/view/tpl/mitemedit.tpl
@@ -1,32 +1,33 @@
-
-<h2>{{$header}}</h2>
-
-<form id="mitemedit" action="mitem/{{$menu_id}}{{if $mitem_id}}/{{$mitem_id}}{{/if}}" method="post" >
-
-<input type="hidden" name="menu_id" value="{{$menu_id}}" />
-
-{{if $mitem_id}}
-<input type="hidden" name="mitem_id" value="{{$mitem_id}}" />
-{{/if}}
-
-{{include file="field_input.tpl" field=$mitem_desc}}
-{{include file="field_input.tpl" field=$mitem_link}}
-{{include file="field_input.tpl" field=$mitem_order}}
-{{include file="field_checkbox.tpl" field=$usezid}}
-{{include file="field_checkbox.tpl" field=$newwin}}
-
-<div id="settings-default-perms" class="settings-default-perms" >
- <button class="btn btn-default btn-xs" data-toggle="modal" data-target="#aclModal" onclick="return false;">{{$permissions}}</button>
- {{$aclselect}}
- <div id="settings-default-perms-menu-end"></div>
+{{if $header}}
+<div class="section-title-wrapper">
+ <h2>{{$header}}</h2>
</div>
-<br/>
-<div id="settings-default-perms-end"></div>
-
-
-
-<div class="mitemedit-submit-wrapper" >
-<input id="dbtn-submit" type="submit" name="submit" class="mitemedit-submit" value="{{$submit}}" />
+{{/if}}
+<div id="menu-element-creator" class="section-content-tools-wrapper" style="display: {{$display}};">
+ <form id="mitemedit" action="mitem/{{$menu_id}}{{if $mitem_id}}/{{$mitem_id}}{{/if}}" method="post" >
+
+ <input type="hidden" name="menu_id" value="{{$menu_id}}" />
+
+ {{if $mitem_id}}
+ <input type="hidden" name="mitem_id" value="{{$mitem_id}}" />
+ {{/if}}
+
+ {{include file="field_input.tpl" field=$mitem_desc}}
+ {{include file="field_input.tpl" field=$mitem_link}}
+ {{include file="field_input.tpl" field=$mitem_order}}
+ {{include file="field_checkbox.tpl" field=$usezid}}
+ {{include file="field_checkbox.tpl" field=$newwin}}
+
+ <div id="settings-default-perms" class="settings-default-perms form-group">
+ <button class="btn btn-default btn-xs" data-toggle="modal" data-target="#aclModal" onclick="return false;">{{$permissions}}</button>
+ {{$aclselect}}
+ </div>
+ <div class="mitemedit-submit-wrapper" >
+ {{if $submit_more}}
+ <input type="submit" name="submit-more" class="mitemedit-submit" value="{{$submit_more}}" />
+ {{/if}}
+ <input type="submit" name="submit" class="mitemedit-submit" value="{{$submit}}" />
+ </div>
+
+ </form>
</div>
-
-</form>