From 14aad65c0c8413459f49d160a1c4672f32306790 Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Mon, 3 Jun 2013 17:01:59 +0200 Subject: [PATCH] Hide/show entry list filters, sorting etc. Needs more styling. --- templates/2k11/admin/entries.inc.tpl | 39 +++++++++++-------- .../2k11/admin/serendipity_editor.js.tpl | 9 +++-- templates/2k11/admin/style.css | 8 +++- 3 files changed, 34 insertions(+), 22 deletions(-) diff --git a/templates/2k11/admin/entries.inc.tpl b/templates/2k11/admin/entries.inc.tpl index e3710f97..90131c91 100644 --- a/templates/2k11/admin/entries.inc.tpl +++ b/templates/2k11/admin/entries.inc.tpl @@ -1,4 +1,5 @@ {if $drawList} +

{$CONST.FIND_ENTRIES}

@@ -6,8 +7,20 @@ -
- {$CONST.FILTERS} + + +
+ + + +
+ +
+ {$CONST.FILTERS}
@@ -49,8 +62,8 @@
-
- {$CONST.SORT_ORDER} +
+ {$CONST.SORT_ORDER}
@@ -79,12 +92,13 @@
-
-
- -
+
+ +
+
+
{if $is_entries}
{$formtoken} @@ -157,15 +171,6 @@ - -
- - -
- -
- -
{/if} {if $no_entries} diff --git a/templates/2k11/admin/serendipity_editor.js.tpl b/templates/2k11/admin/serendipity_editor.js.tpl index 2f3d2418..2493784c 100644 --- a/templates/2k11/admin/serendipity_editor.js.tpl +++ b/templates/2k11/admin/serendipity_editor.js.tpl @@ -719,13 +719,16 @@ function highlightComment(id, checkvalue) { addUploadField(); }); - // Show media file info - $('.media_show_info, .template_show_info').click(function(e) { + // Show media file info, template info or filters + $('.media_show_info, .template_show_info, .filters_toolbar li > a').click(function(e) { $($(this).attr('href')).toggleClass('additional_info'); e.preventDefault(); }); - // Clone media library + // Clone form submit buttons + $('#sort_entries > .form_buttons').clone().appendTo('#filter_entries'); + + // Clone pagination $('.media_pane .pagination').clone().prependTo('.media_pane'); $('.comments_pane .pagination').clone().insertAfter('.comments_pane > h3'); $('.entries_pane .pagination').clone().prependTo('.entries_pane'); diff --git a/templates/2k11/admin/style.css b/templates/2k11/admin/style.css index 8da6c9df..ac802adb 100644 --- a/templates/2k11/admin/style.css +++ b/templates/2k11/admin/style.css @@ -455,7 +455,8 @@ form > a, #mediaPropertyForm footer b, #entries_list .entry_info span, .folder_name, -#serendipityScaleForm .form_field label { +#serendipityScaleForm .form_field label, +.filters_toolbar li { display: inline-block; } @@ -845,7 +846,9 @@ input[type=checkbox] { margin-right: .4em; } .form_check, .form_radio, .form_select, -.form_multiselect { +.form_multiselect, +#filter_entries, +#sort_entries { margin-top: .75em; margin-bottom: .75em; } @@ -1157,6 +1160,7 @@ main { .plugin_info { margin: 0 0 1em;} +.filters_toolbar, fieldset p, .media_file_meta > ul, .image_resize_hint p { margin: 0; }