Added input submit to let the user to go back to site's default design

settings
This commit is contained in:
Sarven Capadisli 2009-06-27 03:21:18 +00:00
parent a68722c9c7
commit f65015b24a
2 changed files with 13 additions and 9 deletions

View File

@ -212,18 +212,19 @@ class DesignSettingsAction extends AccountSettingsAction
'maxlength' => '7', 'maxlength' => '7',
'size' => '7', 'size' => '7',
'value' => '#' . $lcolor->hexValue())); '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) { $this->elementEnd('ul');
common_log(LOG_ERR, 'Bad color values in design ID: ' . $this->elementEnd('fieldset');
$design->id);
}
$this->elementEnd('ul'); $this->submit('defaults', _('Use defaults'), 'submit form_action-default',
$this->elementEnd('fieldset'); 'defaults', _('Restore default designs'));
$this->element('input', array('id' => 'settings_design_reset', $this->element('input', array('id' => 'settings_design_reset',
'type' => 'reset', 'type' => 'reset',
'value' => 'Reset', 'value' => 'Reset',
'class' => 'submit form_action-primary', 'class' => 'submit form_action-primary',

View File

@ -206,7 +206,10 @@ border-radius:4px;
padding:0 7px; padding:0 7px;
} }
.form_settings input.form_action-default {
margin-right:11px;
}
.form_settings input.form_action-default,
.form_settings input.form_action-primary { .form_settings input.form_action-primary {
padding:0; padding:0;
} }