]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added input submit to let the user to go back to site's default design
authorSarven Capadisli <csarven@controlyourself.ca>
Sat, 27 Jun 2009 03:21:18 +0000 (03:21 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Sat, 27 Jun 2009 03:21:18 +0000 (03:21 +0000)
settings

lib/designsettings.php
theme/base/css/display.css

index 9650679ac5b620c51f356c1d57d07e3235abfbac..5def5053fdc7fa17a834f67cfb33ccb4d2f63f2a 100644 (file)
@@ -212,18 +212,19 @@ class DesignSettingsAction extends AccountSettingsAction
                                          'maxlength' => '7',
                                          'size' => '7',
                                          'value' => '#' . $lcolor->hexValue()));
+            $this->elementEnd('li');
 
-           $this->elementEnd('li');
+        } catch (WebColorException $e) {
+            common_log(LOG_ERR, 'Bad color values in design ID: ' .$design->id);
+        }
 
-       } catch (WebColorException $e) {
-           common_log(LOG_ERR, 'Bad color values in design ID: ' .
-               $design->id);
-       }
+        $this->elementEnd('ul');
+        $this->elementEnd('fieldset');
 
-       $this->elementEnd('ul');
-       $this->elementEnd('fieldset');
+        $this->submit('defaults', _('Use defaults'), 'submit form_action-default',
+            'defaults', _('Restore default designs'));
 
-       $this->element('input', array('id' => 'settings_design_reset',
+        $this->element('input', array('id' => 'settings_design_reset',
                                      'type' => 'reset',
                                      'value' => 'Reset',
                                      'class' => 'submit form_action-primary',
index 78fcd7ecefcca0187e3a620f6dcd6eb8c4cf4d91..85b42cdd162e27f07a7e56078aeccd19ddf2a1db 100644 (file)
@@ -206,7 +206,10 @@ border-radius:4px;
 padding:0 7px;
 }
 
-
+.form_settings input.form_action-default {
+margin-right:11px;
+}
+.form_settings input.form_action-default,
 .form_settings input.form_action-primary {
 padding:0;
 }