]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3672 added class for settings forms in admin area
authorcash <cash.costello@gmail.com>
Wed, 2 Nov 2011 01:34:31 +0000 (21:34 -0400)
committercash <cash.costello@gmail.com>
Wed, 2 Nov 2011 01:34:31 +0000 (21:34 -0400)
mod/developers/views/default/admin/developers/settings.php
mod/diagnostics/views/default/admin/develop_utilities/diagnostics.php
mod/externalpages/views/default/admin/appearance/expages.php
mod/externalpages/views/default/expages/menu.php
views/default/admin/appearance/menu_items.php
views/default/admin/appearance/profile_fields.php
views/default/admin/plugin_settings.php
views/default/admin/settings/advanced.php
views/default/admin/settings/basic.php
views/default/css/admin.php

index 287f4d99e8e5bb7518ac92b4a115725afc3b8b22..dcc0a3e4ff68a8cd7f894732c7092a695746c1a6 100644 (file)
@@ -58,6 +58,6 @@ $data = array(
        ),
 );
 
-$form_vars = array('id' => 'developer-settings-form');
+$form_vars = array('id' => 'developer-settings-form', 'class' => 'elgg-form-settings');
 $body_vars = array('data' => $data);
 echo elgg_view_form('developers/settings', $form_vars, $body_vars);
index 02151174c704bbee54bf10bf550fb339739b30c1..89e235279a30409e4a87afff1bf1ee4747515014 100644 (file)
@@ -34,5 +34,5 @@ if (elgg_get_config('debug')) {
 }
 
 // display admin body
-echo elgg_view_module('inline', $diagnostics_title, $diagnostics);
-echo elgg_view_module('inline', $unit_tests_title, $unit_tests);
+echo elgg_view_module('inline', $diagnostics_title, $diagnostics, array('class' => 'elgg-form-settings'));
+echo elgg_view_module('inline', $unit_tests_title, $unit_tests, array('class' => 'elgg-form-settings'));
index b3076508928d205684a480d28e639c28b48affa9..6a5a521a55a0ba65bfe91cf496db83fba3f6ea5c 100644 (file)
@@ -7,4 +7,4 @@ $type = get_input('type', 'about');
 
 echo elgg_view('expages/menu', array('type' => $type));
 
-echo elgg_view_form('expages/edit', array(), array('type' => $type));
+echo elgg_view_form('expages/edit', array('class' => 'elgg-form-settings'), array('type' => $type));
index 846db076f1a1568e21263e7e8f47261d02ddf98d..6ed521629edf8c18abdc62ec0c573c038069f95a 100644 (file)
@@ -20,33 +20,4 @@ foreach ($pages as $page) {
        );
 }
 
-echo elgg_view('navigation/tabs', array('tabs' => $tabs));
-
-return true;
-
-/**
- * Tab navigation
- *
- * @uses string $vars['type'] horizontal || vertical - Defaults to horizontal
- * @uses string $vars['class'] Additional class to add to ul
- * @uses array $vars['tabs'] A multi-dimensional array of tab entries in the format array(
- *     'title' => string, // Title of link
- *     'url' => string, // URL for the link
- *     'class' => string  // Class of the li element
- *     'id' => string, // ID of the li element
- *     'selected' => bool // if this li element is currently selected
- *     'url_class' => string, // Class to pass to the link
- *     'url_id' => string, // ID to pass to the link
- * )
- */
-
-?>
-
-<div id="elgg_horizontal_tabbed_nav">
-<ul>
-       <li <?php if($type == 'front') echo "class = 'selected'"; ?>><a href="<?php echo $url; ?>front"><?php echo elgg_echo('expages:frontpage'); ?></a></li>
-       <li <?php if($type == 'about') echo "class = 'selected'"; ?>><a href="<?php echo $url; ?>about"><?php echo elgg_echo('expages:about'); ?></a></li>
-       <li <?php if($type == 'terms') echo "class = 'selected'"; ?>><a href="<?php echo $url; ?>terms"><?php echo elgg_echo('expages:terms'); ?></a></li>
-       <li <?php if($type == 'privacy') echo "class = 'selected'"; ?>><a href="<?php echo $url; ?>privacy"><?php echo elgg_echo('expages:privacy'); ?></a></li>
-</ul>
-</div>
\ No newline at end of file
+echo elgg_view('navigation/tabs', array('tabs' => $tabs, 'class' => 'elgg-form-settings'));
index 4e35e032f05dee41574fc83e0c85868c777cf47b..1d5c95cf9de3ee825223af811bf3c66e7f9d99eb 100644 (file)
@@ -7,4 +7,4 @@
  */
 
 
-echo elgg_view_form('admin/menu/save');
+echo elgg_view_form('admin/menu/save', array('class' => 'elgg-form-settings'));
index 8371ce83c2e6d72c91ff4521033581fc0e2c556d..91d14b874991afd7a4195fda0fe955a73bf54d9d 100644 (file)
@@ -3,7 +3,7 @@
  * Admin area: edit default profile fields
  */
 
-$add = elgg_view_form('profile/fields/add', array(), array());
+$add = elgg_view_form('profile/fields/add', array('class' => 'elgg-form-settings'), array());
 $list = elgg_view('admin/appearance/profile_fields/list');
 $reset = elgg_view_form('profile/fields/reset', array(), array());
 
index c75492270c5370a2449c1eee07be45e31029bb0a..1c6e9e2067af78d155f54f895595c82014f78ae5 100644 (file)
@@ -19,7 +19,7 @@ $settings = false;
 if (elgg_view_exists("settings/$plugin_id/edit") || elgg_view_exists("plugins/$plugin_id/settings")) {
        $title = $plugin->getManifest()->getName();
 
-       $params = array('id' => "$plugin_id-settings");
+       $params = array('id' => "$plugin_id-settings", 'class' => 'elgg-form-settings');
        $body = elgg_view_form("plugins/settings/save", $params, $vars);
 
        echo elgg_view_module('info', $title, $body);
index 12e4303e7b62aba5268995a170d4aa100ae2bb69..a262740f222977ed927a2e44b8b2dec6f13ce78d 100644 (file)
@@ -6,4 +6,4 @@
  * @subpackage Core
  */
 
-echo elgg_view_form('admin/site/update_advanced');
+echo elgg_view_form('admin/site/update_advanced', array('class' => 'elgg-form-settings'));
index 3b8f4f183ce395988ed412d9813310c1888820c1..9334ba81bed62143fd6c90565419f7ba26259653 100644 (file)
@@ -6,4 +6,4 @@
  * @subpackage Core
  */
 
-echo elgg_view_form('admin/site/update_basic');
+echo elgg_view_form('admin/site/update_basic', array('class' => 'elgg-form-settings'));
index 73996a19998b16c1bba7b8ac90335ddbd44f9eaa..160a2a3e40fdcf11c12e36ec58bfe39a9bbcb1e7 100644 (file)
@@ -512,7 +512,7 @@ a.elgg-button {
 }
 
 .elgg-form-settings {
-       max-width: 600px;
+       max-width: 800px;
 }
 
 /* **************************************