From fbb8e92497a041561e6bea53cb3c6e7a9ab52cd7 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Tue, 20 Oct 2009 22:35:39 -0600 Subject: Added generic .g-message class to mark form validation messages. Minor form layout updates. --- modules/gallery/views/form.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gallery') diff --git a/modules/gallery/views/form.html.php b/modules/gallery/views/form.html.php index 6bc622fd..abc32164 100644 --- a/modules/gallery/views/form.html.php +++ b/modules/gallery/views/form.html.php @@ -58,7 +58,7 @@ if (!function_exists("DrawForm")) { } if ($input->error_messages()) { foreach ($input->error_messages() as $error_message) { - print "$prefix

\n"; + print "$prefix

\n"; print "$prefix $error_message\n"; print "$prefix

\n"; } -- cgit v1.2.3 From 055c410126d3ec56aac34dabf1cee5a57459afaf Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Tue, 20 Oct 2009 23:20:38 -0600 Subject: Fix block management UI. Block list height is now dynamically set based on the total number of available blocks which will grow without hardcoding CSS heights and setting the div to be scrollable. --- modules/gallery/views/admin_sidebar.html.php | 41 ++++++++++++++++------------ themes/admin_wind/css/screen.css | 25 ++++++++++++----- 2 files changed, 41 insertions(+), 25 deletions(-) (limited to 'modules/gallery') diff --git a/modules/gallery/views/admin_sidebar.html.php b/modules/gallery/views/admin_sidebar.html.php index 030dfdce..834429c3 100644 --- a/modules/gallery/views/admin_sidebar.html.php +++ b/modules/gallery/views/admin_sidebar.html.php @@ -1,11 +1,13 @@ -
+ +

-
"> -
-

-
-
    - -
+
+
"> +
+

+
+
    + +
+
-
-
-

-
-
    - -
+
+

+
+
    + +
+
diff --git a/themes/admin_wind/css/screen.css b/themes/admin_wind/css/screen.css index 31de58f8..a889545b 100644 --- a/themes/admin_wind/css/screen.css +++ b/themes/admin_wind/css/screen.css @@ -424,16 +424,27 @@ li.g-default-group h4, li.g-default-group .g-user { /* Block admin ~~~~~~~~~~~~~~~~~~~~~~~~~ */ -#g-admin-blocks .g-block { - clear: none; +.g-admin-blocks-list { + float: left; + margin: 0 2em 2em 0; width: 30%; } -#g-admin-blocks .g-block .g-draggable { - background: #e7e7e7; - /*border: 1px solid #fff;*/ - margin-bottom: 1em; - padding: .4em .8em; +.g-admin-blocks-list div:last-child { + border: .1em solid; + height: 100%; +} + +.g-admin-blocks-list ul { + height: 98%; + margin: .1em .1em; + padding: .1em; +} + +.g-admin-blocks-list ul li.g-draggable { + background-color: #e8e8e8; + margin: .5em; + padding: .3em .8em; } /** ******************************************************************* -- cgit v1.2.3 From e025abea4179bc059b8fef195bafe0c3f60f1220 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Tue, 20 Oct 2009 23:37:03 -0600 Subject: Added confirmation message for block admin actions. --- modules/gallery/views/admin_sidebar.html.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/gallery') diff --git a/modules/gallery/views/admin_sidebar.html.php b/modules/gallery/views/admin_sidebar.html.php index 834429c3..f784b1a5 100644 --- a/modules/gallery/views/admin_sidebar.html.php +++ b/modules/gallery/views/admin_sidebar.html.php @@ -21,6 +21,10 @@ if (data.result == "success") { $("ul#g-available-blocks").html(data.available); $("ul#g-active-blocks").html(data.active); + var message = "Updated blocks"; + $("#g-action-status").remove(); + $("#g-block-admin").before("
  • " + message + "
"); + $("#g-action-status").fadeTo(1000,1).fadeTo(2000,0); } }); } @@ -29,7 +33,7 @@ }); -
+

-- cgit v1.2.3