diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-04-21 10:05:26 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-04-21 10:05:26 +0200 |
commit | 0bd9fe0b11013423a17ebaabb22482bee38d8f0f (patch) | |
tree | 07f801f228971898d27ba10068f8482deaaef1cd /view/tpl/menuedit.tpl | |
parent | 6bc2766d79388ce6f813c429348cbc50d9afadaa (diff) | |
download | volse-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/menuedit.tpl')
-rw-r--r-- | view/tpl/menuedit.tpl | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/view/tpl/menuedit.tpl b/view/tpl/menuedit.tpl index 9ea184269..b3704e86e 100644 --- a/view/tpl/menuedit.tpl +++ b/view/tpl/menuedit.tpl @@ -1,24 +1,28 @@ - -<h2>{{$header}}</h2> - -{{if $menu_id}} -<a href="mitem/{{$menu_id}}" title="{{$hintedit}}">{{$editcontents}}</a> -{{/if}} - -<form id="menuedit" action="menu{{if $menu_id}}/{{$menu_id}}{{/if}}{{if $sys}}?f=&sys=1{{/if}}" method="post" > - -{{if $menu_id}} -<input type="hidden" name="menu_id" value="{{$menu_id}}" /> -{{/if}} -{{if $menu_system}} -<input type="hidden" name="menu_system" value="{{$menu_system}}" /> +{{if $header}} +<div class="section-title-wrapper"> + {{if $menu_id}} + <div class="pull-right"> + <a href="mitem/{{$menu_id}}" title="{{$hintedit}}" class="btn btn-xs btn-success"><i class="icon-edit"></i> {{$editcontents}}</a> + </div> + {{/if}} + <h2>{{$header}}</h2> + <div class="clear"></div> +</div> {{/if}} - -{{include file="field_input.tpl" field=$menu_name}} -{{include file="field_input.tpl" field=$menu_desc}} -{{include file="field_checkbox.tpl" field=$menu_bookmark}} -<div class="menuedit-submit-wrapper" > -<input type="submit" name="submit" class="menuedit-submit" value="{{$submit}}" /> +<div id="menu-creator" class="section-content-tools-wrapper" style="display: {{$display}};"> + <form id="menuedit" action="menu{{if $menu_id}}/{{$menu_id}}{{/if}}{{if $sys}}?f=&sys=1{{/if}}" method="post" > + {{if $menu_id}} + <input type="hidden" name="menu_id" value="{{$menu_id}}" /> + {{/if}} + {{if $menu_system}} + <input type="hidden" name="menu_system" value="{{$menu_system}}" /> + {{/if}} + {{include file="field_input.tpl" field=$menu_name}} + {{include file="field_input.tpl" field=$menu_desc}} + {{include file="field_checkbox.tpl" field=$menu_bookmark}} + <div class="menuedit-submit-wrapper form-group pull-right" > + <button type="submit" name="submit" class="btn btn-primary">{{$submit}}</button> + </div> + <div class="clear"></div> + </form> </div> - -</form> |