From 0bd9fe0b11013423a17ebaabb22482bee38d8f0f Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 21 Apr 2015 10:05:26 +0200 Subject: rework and hopefully improve webpage menu creation workflow --- view/css/mod_menu.css | 14 +++++++-- view/css/mod_mitem.css | 16 +++++----- view/theme/redbasic/css/style.css | 6 ++-- view/tpl/field_input.tpl | 4 +-- view/tpl/menuedit.tpl | 48 ++++++++++++++++-------------- view/tpl/menulist.tpl | 42 ++++++++++++++++++--------- view/tpl/mitemedit.tpl | 61 ++++++++++++++++++++------------------- view/tpl/mitemlist.tpl | 38 ++++++++++++++++-------- view/tpl/usermenu.tpl | 2 +- 9 files changed, 138 insertions(+), 93 deletions(-) (limited to 'view') diff --git a/view/css/mod_menu.css b/view/css/mod_menu.css index 6123ea56b..930bd834d 100644 --- a/view/css/mod_menu.css +++ b/view/css/mod_menu.css @@ -1,3 +1,11 @@ -#menulist > li { - margin-top: 15px; -} \ No newline at end of file +#menu-list-table { + width: 100%; +} + +#menu-list-table th:nth-child(2){ + white-space: nowrap; +} + +.menu-list-tool { + padding: 7px 10px; +} diff --git a/view/css/mod_mitem.css b/view/css/mod_mitem.css index 3a33ae955..0718096e9 100644 --- a/view/css/mod_mitem.css +++ b/view/css/mod_mitem.css @@ -1,11 +1,13 @@ -.menu-item-list { - list-style-type: none; +#mitem-list-table { + width: 100%; } -.mitem-edit { - margin-right: 15px; +#mitem-list-table th:nth-child(1), +#mitem-list-table td:nth-child(1){ + padding: 7px 3px 7px 10px; + white-space: nowrap; } -.menu-item-list li { - margin-bottom: 15px; -} \ No newline at end of file +.mitem-list-tool { + padding: 7px 10px; +} diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 8c9eddd3b..ece73d213 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1102,8 +1102,6 @@ nav .acpopup { .required { color: #ff0000; - font-size: 1.8rem; - margin-left: 5px; } @@ -1934,7 +1932,9 @@ nav .dropdown-menu { background-color: $item_colour; } -[id^="webpage-list-item-"]:hover td { +[id^="webpage-list-item-"]:hover td, +[id^="menu-list-item-"]:hover td, +[id^="mitem-list-item-"]:hover td { background-color: $item_colour; } diff --git a/view/tpl/field_input.tpl b/view/tpl/field_input.tpl index 4dfa83699..128bbfbe1 100755 --- a/view/tpl/field_input.tpl +++ b/view/tpl/field_input.tpl @@ -1,6 +1,6 @@
- - {{if $field.4}} {{$field.4}} {{/if}} + + {{$field.3}}
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 @@ - -

{{$header}}

- -{{if $menu_id}} -{{$editcontents}} -{{/if}} - -