]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Updates to Admin area UI.
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 15 Mar 2010 13:44:13 +0000 (13:44 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 15 Mar 2010 13:44:13 +0000 (13:44 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5402 36083f99-b078-4883-b0ff-0f9b5a30f544

12 files changed:
admin/plugins.php
mod/profile/defaultprofile.php
mod/profile/views/default/profile/css.php
mod/profile/views/default/profile/editdefaultprofile.php
mod/reportedcontent/views/default/reportedcontent/listing.php
mod/sitepages/views/default/sitepages/menu.php
views/default/admin/plugins.php
views/default/admin/plugins_opt/plugin.php
views/default/admin/site.php
views/default/admin/user.php
views/default/css.php
views/default/settings/system.php

index 358c42ec5a52ff87feeb20846cc6e0cbae73044e..55035830a2e9532f24540264c6d5d294390fb2e1 100644 (file)
@@ -20,9 +20,7 @@ regenerate_plugin_list();
 
 // Display main admin menu
 $vars = array('installed_plugins' => get_installed_plugins());
-
-$title = elgg_view_title(elgg_echo('admin:plugins'));
 $main_box = elgg_view("admin/plugins", $vars);
-$content = elgg_view_layout("one_column_with_sidebar", $title . $main_box);
+$content = elgg_view_layout("one_column_with_sidebar", $main_box);
 
 page_draw(elgg_echo('admin:plugins'), $content);
index 233214c1533bba594bb436b52b8c706ec9a2d834..daba723e3efe4aa6d7e1f5d02b608188c996f6c8 100644 (file)
@@ -39,7 +39,7 @@ while ($translation = get_plugin_setting("admin_defined_profile_$n", 'profile'))
 
 $listing .= "<div class='default_profile_reset'>" . elgg_view('input/form', 
        array(
-               'body' => elgg_view('input/submit', array('value' => elgg_echo('profile:resetdefault'))), 
+               'body' => elgg_view('input/submit', array('value' => elgg_echo('profile:resetdefault'),'class' => 'action_button disable')), 
                'action' => $CONFIG->wwwroot . 'action/profile/editdefault/reset'
        )
 ) . "</div>";
index cde028f12c4c4e2aeb6fec634b5038e0043edc03..254c9bed2ca185fb3aa9325cfdd08dc87dbc018a 100644 (file)
@@ -307,18 +307,9 @@ p.visit_twitter a {
        border-top: 1px solid #dedede;
        margin-top:30px;
 }
-.default_profile_reset input[type="submit"] {
-       background: #dedede;
-       border-color: #dedede;
-       color:#666666;
-       text-shadow: none;
+.default_profile_reset .action_button {
        float:right;
 }
-.default_profile_reset input[type="submit"]:hover {
-       background: red;
-       border-color: red;
-       color:white;
-}
 
 
 /* ***************************************
index 42680f4df3cbcb8de3c2c08dea3d1942ea8580ec..338204d36f17abfedfa15598d130e9cd0dd9fbcd 100644 (file)
@@ -29,5 +29,5 @@ $formbody = <<< END
                $submit_control</p>
 END;
 
-echo "<p>" . elgg_echo('profile:explainchangefields') . "</p>";
+echo "<p class='margin_top'>" . elgg_echo('profile:explainchangefields') . "</p>";
 echo elgg_view('input/form', array('body' => $formbody, 'action' => $vars['url'] . 'action/profile/editdefault'));
index 8bad802cedd66f35e246d743589727967a34d61d..54ebd6a277182cf1659aab90b52439dac23c4bdc 100644 (file)
@@ -42,5 +42,5 @@ if($vars['entity']){
     }
     
 } else {
-       echo elgg_echo('reportedcontent:none');
+       echo "<p class='margin_top'>".elgg_echo('reportedcontent:none')."</p>";
 }
\ No newline at end of file
index e676b6c96653f01291306def0ab2346323ba3bf6..5cffc610ae265c0c9bb4736202cd73ef64ee4c8d 100644 (file)
@@ -14,7 +14,7 @@ $url = $vars['url'] . 'pg/sitepages/edit/';
 
 ?>
 
-<div class="elgg_horizontal_tabbed_nav">
+<div class="elgg_horizontal_tabbed_nav margin_top">
 <ul>
        <li <?php if($page_type == 'front') echo "class = 'selected'"; ?>><a href="<?php echo $url; ?>front"><?php echo elgg_echo('sitepages:frontpage'); ?></a></li>
        <li <?php if($page_type == 'about') echo "class = 'selected'"; ?>><a href="<?php echo $url; ?>about"><?php echo elgg_echo('sitepages:about'); ?></a></li>
index 70e5d2683990c7a4af47b4317b5f979db16160ca..465b019f61e095d34ee1ce28014aabc9bf315b75 100644 (file)
@@ -13,9 +13,18 @@ global $CONFIG;
 $ts = time();
 $token = generate_action_token($ts);
 
-// Description of what's going on
-$buttons = " <a class='enableallplugins' href=\"{$CONFIG->url}action/admin/plugins/enableall?__elgg_token=$token&__elgg_ts=$ts\">".elgg_echo('enableall')."</a>  <a class='disableallplugins' href=\"{$CONFIG->url}action/admin/plugins/disableall?__elgg_token=$token&__elgg_ts=$ts\">".elgg_echo('disableall')."</a> ";
-echo $buttons . elgg_view('output/longtext', array('value' => elgg_echo("admin:plugins:description")));
+// Page Header elements
+$title = elgg_view_title(elgg_echo('admin:plugins'));
+$buttons = "<a class='action_button' href=\"{$CONFIG->url}action/admin/plugins/enableall?__elgg_token=$token&__elgg_ts=$ts\">".elgg_echo('enableall')."</a>  <a class='action_button disabled' href=\"{$CONFIG->url}action/admin/plugins/disableall?__elgg_token=$token&__elgg_ts=$ts\">".elgg_echo('disableall')."</a> ";
+
+// construct page header
+?>
+<div id="content_header" class="clearfloat">
+       <div class="content_header_title"><?php echo $title ?></div>
+       <div class="content_header_options"><?php echo $buttons ?></div>
+</div>
+<?php
+echo elgg_view('output/longtext', array('value' => elgg_echo("admin:plugins:description")));
 
 $limit = get_input('limit', 10);
 $offset = get_input('offset', 0);
index dabf25c55e1e28cfb569a62591cc79c00331db2a..0150e76d891b20e2e2818fbae3f771ae2e66982f 100644 (file)
@@ -47,13 +47,13 @@ $token = generate_action_token($ts);
        </div><div class="clearfloat"></div>
        <div class="admin_plugin_enable_disable">
                <?php if ($active) { ?>
-                       <a href="<?php echo $vars['url']; ?>action/admin/plugins/disable?plugin=<?php echo $plugin; ?>&__elgg_token=<?php echo $token; ?>&__elgg_ts=<?php echo $ts; ?>"><?php echo elgg_echo("disable"); ?></a>
+                       <a class="cancel_button" href="<?php echo $vars['url']; ?>action/admin/plugins/disable?plugin=<?php echo $plugin; ?>&__elgg_token=<?php echo $token; ?>&__elgg_ts=<?php echo $ts; ?>"><?php echo elgg_echo("disable"); ?></a>
                <?php } else { ?>
-                       <a href="<?php echo $vars['url']; ?>action/admin/plugins/enable?plugin=<?php echo $plugin; ?>&__elgg_token=<?php echo $token; ?>&__elgg_ts=<?php echo $ts; ?>"><?php echo elgg_echo("enable"); ?></a>
+                       <a class="submit_button" href="<?php echo $vars['url']; ?>action/admin/plugins/enable?plugin=<?php echo $plugin; ?>&__elgg_token=<?php echo $token; ?>&__elgg_ts=<?php echo $ts; ?>"><?php echo elgg_echo("enable"); ?></a>
                <?php } ?>
        </div>
 
-       <h3><?php echo $plugin; ?><?php if (elgg_view("settings/{$plugin}/edit")) { ?> <a class="pluginsettings_link" onclick="elgg_slide_toggle(this,'.plugin_details','.pluginsettings');">[<?php echo elgg_echo('settings'); ?>]</a><?php } ?></h3>
+       <h3><?php echo $plugin; ?><?php if (elgg_view("settings/{$plugin}/edit")) { ?> <a class="plugin_settings small link" onclick="elgg_slide_toggle(this,'.plugin_details','.pluginsettings');">[<?php echo elgg_echo('settings'); ?>]</a><?php } ?></h3>
 
        <?php if (elgg_view("settings/{$plugin}/edit")) { ?>
        <div class="pluginsettings hidden">
@@ -75,7 +75,7 @@ $token = generate_action_token($ts);
 
        ?>
 
-       <p><a class="manifest_details" onclick="elgg_slide_toggle(this,'.plugin_details','.manifest_file');"><?php echo elgg_echo("admin:plugins:label:moreinfo"); ?></a></p>
+       <p><a class="manifest_details small link" onclick="elgg_slide_toggle(this,'.plugin_details','.manifest_file');"><?php echo elgg_echo("admin:plugins:label:moreinfo"); ?></a></p>
 
        <div class="manifest_file hidden">
 
index 0893e497030797916b42b54656b32ba4638f6e8c..2c2775ad043cdc21a8e634bfb730253571a122b1 100644 (file)
@@ -11,6 +11,6 @@
 global $CONFIG;
 
 // Description of what's going on
-echo elgg_view('output/longtext', array('value' => elgg_echo("admin:site:description")));
+echo "<div class='margin_top'>".elgg_view('output/longtext', array('value' => elgg_echo("admin:site:description")))."</div>";
 
 echo elgg_view("settings/system",array("action" => $CONFIG->wwwroot."action/admin/site/update_basic")); // Always want to do this first.
\ No newline at end of file
index eb07d120e4056d642ebbd2dd63e9974b8d7025c9..ba7eb3d4abbce78b770d495a0e3f5758dcfbe5a5 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 // Intro
-echo elgg_view('output/longtext', array('value' => elgg_echo("admin:user:description")));
+echo "<div class='margin_top'>".elgg_view('output/longtext', array('value' => elgg_echo("admin:user:description")))."</div>";
 //echo elgg_view("admin/user_opt/adduser");
 // add a new user form
 echo elgg_view('account/forms/useradd', array('show_admin'=>true));
index 660b0ab53763cf1380f10812061bbdcc52a15464..0ce9d0dde2f6766fe1400688acdde1bad8f79ab4 100644 (file)
@@ -26,6 +26,7 @@
        USER SETTINGS & ADMIN AREA      styles for user settings and default admin area
        GENERAL FORM ELEMENTS           default styles for all elgg input/form elements
        FRIENDS PICKER
+       ADMIN AREA
        
 
 */
@@ -196,6 +197,9 @@ h2 {
 .link {
        cursor:pointer;
 }
+.small {
+       font-size: 90%;
+}
 .divider {
        border-top:1px solid #cccccc;
 }
@@ -758,7 +762,7 @@ h2 {
        display:block;
        float:left;
        background:#4690d6;
-       border:1px solid #cccccc;
+       border:1px solid #4690d6;
        text-align: center;
        color:white;
        font-size: 12px;
@@ -1091,33 +1095,6 @@ select.styled .select_option {
 .add_user form {
        width:300px;
 }
-/* PLUGINS MANAGEMENT (ADMIN) */
-.plugin_details {
-       margin:0 0 5px 0;
-       padding:0 7px 4px 10px;
-       -webkit-border-radius: 5px;
-       -moz-border-radius: 5px;
-}
-.plugin_details p {
-       margin:0;
-       padding:0;
-}
-.plugin_details a.pluginsettings_link {
-       cursor:pointer;
-       font-size:80%;
-}
-.plugin_details a.manifest_details {
-       cursor:pointer;
-       font-size:80%;
-}
-.active {
-       border:1px solid #999999;
-       background:white;
-}
-.not_active {
-       border:1px solid #999999;
-       background:#dedede;
-}
 
 
 /* ***************************************
@@ -1508,18 +1485,10 @@ a.action_button:focus {
 }
 
 
-/*  ////////////////////////////////////////////////////////////////////////////////////////// >>>End Verified */
-
-
-
-
-
-
-
-
-
-
-/* @todo OLD ADMIN AREA - will be replaced/updated with multi-admin */
+/* ***************************************
+       ADMIN AREA
+       @todo - replace with standalone admin area
+*************************************** */
 .admin_settings.users_online .profile_status {
        -webkit-border-radius: 4px;
        -moz-border-radius: 4px;
@@ -1534,15 +1503,6 @@ a.action_button:focus {
 .admin_settings.users_online  p.owner_timestamp {
        padding-left:3px;
 }
-/*
-.admin_users_online .search_listing {
-       margin:0 0 5px 0;
-       padding:5px;
-       border:1px solid #cccccc;
-       -webkit-border-radius: 5px;
-       -moz-border-radius: 5px;
-}
-*/
 .admin_plugin_reorder {
        float:right;
        width:200px;
@@ -1566,50 +1526,8 @@ a.action_button:focus {
        float:right;
        text-align: right;
 }
- .enableallplugins,
- .disableallplugins {
-       float:right;
-}
- .enableallplugins {
-       margin-left:10px;
-}
- .enableallplugins,
-.not_active .admin_plugin_enable_disable a {
-       font: 12px/100% Arial, Helvetica, sans-serif;
-       font-weight: bold;
-       color: #ffffff;
-       background:#4690d6;
-       border: 1px solid #4690d6;
-       -webkit-border-radius: 4px;
-       -moz-border-radius: 4px;
-       width: auto;
-       padding: 4px;
-       cursor: pointer;
-}
- .enableallplugins:hover,
-.not_active .admin_plugin_enable_disable a:hover {
-       background: #0054a7;
-       border: 1px solid #0054a7;
-       text-decoration: none;
-}
- .disableallplugins,
-.active .admin_plugin_enable_disable a {
-       font: 12px/100% Arial, Helvetica, sans-serif;
-       font-weight: bold;
-       color: #ffffff;
-       background:#999999;
-       border: 1px solid #999999;
-       -webkit-border-radius: 4px;
-       -moz-border-radius: 4px;
-       width: auto;
-       padding: 4px;
-       cursor: pointer;
-}
- .disableallplugins:hover,
-.active .admin_plugin_enable_disable a:hover {
-       background: #333333;
-       border: 1px solid #333333;
-       text-decoration: none;
+.admin_plugin_enable_disable a {
+       margin:0;
 }
 .pluginsettings {
        margin:15px 0 5px 0;
@@ -1628,6 +1546,26 @@ a.action_button:focus {
        margin:0;
        border:none;
 }
-
+.plugin_details {
+       margin:0 0 5px 0;
+       padding:0 7px 4px 10px;
+       -webkit-border-radius: 5px;
+       -moz-border-radius: 5px;
+}
+.plugin_details p {
+       margin:0;
+       padding:0;
+}
+.plugin_settings {
+       font-weight: normal;
+}
+.active {
+       border:1px solid #999999;
+       background:white;
+}
+.not_active {
+       border:1px solid #999999;
+       background:#dedede;
+}
 
 
index bcc5206f43422a2d3999dc75087487baeb4b24fd..500fa546f3ec1c6bb50c273cf795ba5662f7234d 100644 (file)
@@ -65,5 +65,5 @@ $form_body .= "</p>";
 $form_body .= elgg_view('input/hidden', array('internalname' => 'settings', 'value' => 'go'));
 
 $form_body .= "<div class='divider'></div>".elgg_view('input/submit', array('value' => elgg_echo("save")));
-$form_body = "<div class='admin_settings site_admin'>".$form_body."</div>";
+$form_body = "<div class='admin_settings site_admin margin_top'>".$form_body."</div>";
 echo elgg_view('input/form', array('action' => $action, 'body' => $form_body));
\ No newline at end of file