Skip to content

Commit

Permalink
Simplify layout of menu edit page.
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed Jul 26, 2012
1 parent ce30dc2 commit de803dd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion modules/mod_admin/templates/_action_dialog_connect.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% with callback|default:q.callback|default:"window.zAdminConnectDone" as callback %}
{% with language|default:q.language|default:z_language as language %}
{% with actions|default:[] as actions %}
{% with stay|default:(not not callback) as stay %}
{% with stay or callback or subject_id as stay %}
<ul class="nav nav-pills">
{% if q.is_zmedia %}
<li class="active">
Expand Down
2 changes: 2 additions & 0 deletions modules/mod_admin/templates/admin_edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
<input type="hidden" name="id" value="{{ id }}" />

<div class="span8" id="poststuff">
{% block admin_edit_form_top %}{% endblock %}

{% all catinclude "_admin_edit_basics.tpl" id is_editable=is_editable languages=languages %}
{% include "_admin_edit_content_address.tpl" %}
{% all catinclude "_admin_edit_content.tpl" id is_editable=is_editable languages=languages %}
Expand Down
12 changes: 10 additions & 2 deletions modules/mod_menu/templates/_admin_menu_menu_view.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<div class="widget" id="{{ #menu }}">
<h3 class="widget-header">
{_ Current menu _}
</h3>
<div class="widget-content">

<span class="btn-group pull-right">
<a href="#" class="btn dropdown-toggle" data-toggle="dropdown">{_ Add menu item _} <span class="caret"></span></a>
<ul class="dropdown-menu">
Expand All @@ -9,8 +12,13 @@
<li><a href="#" data-where="bottom">&darr; {_ Add bottom _}</a></li>
</ul>
</span>
</h3>
<div class="widget-content">

<p>
{_ Click on <strong>Add menu item</strong> or <strong>Menu item</strong> to add pages. _}
<br/>{_ Drag menu items in the menu up, down, left or right to structure the menu. _}
</p>


<ul class="tree-list do_menuedit" id="menu-{{ id }}">
{% for mid, path, action in id.menu|menu_flat %}
{% with forloop.counter as c %}
Expand Down
15 changes: 1 addition & 14 deletions modules/mod_menu/templates/admin_edit.menu.tpl
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
{% extends "admin_edit.tpl" %}

{% block admin_edit_form_pre %}
{% block admin_edit_form_top %}
{# Edit the menu #}
<div class="row edit-header">

<div id="menu-editor" class="span8">
{% include "_admin_menu_menu_view.tpl" id=id %}
</div>

<div class="span4">
<div class="widget">
<h3 class="widget-header">{_ How does this work? _}</h3>
<div class="widget-content">
<p>
{_ Click on <strong>Add menu item</strong> or <strong>Menu item</strong> to add pages. _}
{_ Drag menu items in the menu up, down, left or right to structure the menu. _}
</p>
</div>
</div>
</div>
</div>
{% endblock %}

0 comments on commit de803dd

Please sign in to comment.