diff options
Diffstat (limited to 'view')
-rwxr-xr-x | view/tpl/field_input.tpl | 2 | ||||
-rw-r--r-- | view/tpl/menuedit.tpl | 21 | ||||
-rw-r--r-- | view/tpl/menulist.tpl | 2 |
3 files changed, 23 insertions, 2 deletions
diff --git a/view/tpl/field_input.tpl b/view/tpl/field_input.tpl index 2cb3cb91e..d5b3d6b4e 100755 --- a/view/tpl/field_input.tpl +++ b/view/tpl/field_input.tpl @@ -1,6 +1,6 @@ <div class='field input'> <label for='id_{{$field.0}}' id='label_{{$field.0}}'>{{$field.1}}</label> - <input name='{{$field.0}}' id='id_{{$field.0}}' value="{{$field.2}}"> + <input name='{{$field.0}}' id='id_{{$field.0}}' value="{{$field.2}}">{{if $field.4}} <span class="required">{{$field.4}}</span> {{/if}} <span id='help_{{$field.0}}' class='field_help'>{{$field.3}}</span> <div id='end_{{$field.0}}' class='field_end'></div> </div> diff --git a/view/tpl/menuedit.tpl b/view/tpl/menuedit.tpl new file mode 100644 index 000000000..a46727c55 --- /dev/null +++ b/view/tpl/menuedit.tpl @@ -0,0 +1,21 @@ + +<h2>{{$header}}</h2> + +{{if $menu_id}} +<a href="medit/{{$menu_id}}" title="{{$hintedit}}">{{$editcontents}}</a> +{{/if}} + +<form id="menuedit" action="menu{{if $menu_id}}/{{$menu_id}}{{/if}}" method="post" > + +{{if $menu_id}} +<input type="hidden" name="menu_id" value="{{$menu_id}}" /> +{{/if}} + +{{include file="field_input.tpl" field=$menu_name}} +{{include file="field_input.tpl" field=$menu_desc}} + +<div class="menuedit-submit-wrapper" > +<input type="submit" name="submit" class="menuedit-submit" value="{{$submit}}" /> +</div> + +</form> diff --git a/view/tpl/menulist.tpl b/view/tpl/menulist.tpl index 3ad92cb7e..0761322cd 100644 --- a/view/tpl/menulist.tpl +++ b/view/tpl/menulist.tpl @@ -7,7 +7,7 @@ {{if $menus }} <ul id="menulist"> {{foreach $menus as $m }} -<li>{{$m.menu_name}} <a href="menu/{{$m.menu_id}}" title="{{$hintedit}}">{{$edit}}</a>|<a href="menu/{{$m.menu.id}}/drop" title={{$hintdrop}}>{{$drop}}</a></li> +<li><a href="menu/{{$m.menu_id}}" title="{{$hintedit}}">{{$edit}}</a> | <a href="menu/{{$m.menu.id}}/drop" title={{$hintdrop}}>{{$drop}}</a> <a href="medit/{{$m.menu_id}}" title="{{$hintcontent}}">{{$m.menu_name}}</a></li> {{/foreach}} </ul> {{/if}} |