Added new template hook for application settings page
This commit is contained in:
@@ -30,6 +30,8 @@
|
|||||||
<?= $this->form->label(t('Custom Stylesheet'), 'application_stylesheet') ?>
|
<?= $this->form->label(t('Custom Stylesheet'), 'application_stylesheet') ?>
|
||||||
<?= $this->form->textarea('application_stylesheet', $values, $errors) ?>
|
<?= $this->form->textarea('application_stylesheet', $values, $errors) ?>
|
||||||
|
|
||||||
|
<?= $this->hook->render('template:config:application', array('values' => $values, 'errors' => $errors)) ?>
|
||||||
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue">
|
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue">
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -17,10 +17,10 @@ class UserValidator extends Base
|
|||||||
/**
|
/**
|
||||||
* Common validation rules
|
* Common validation rules
|
||||||
*
|
*
|
||||||
* @access private
|
* @access protected
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
private function commonValidationRules()
|
protected function commonValidationRules()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
new Validators\MaxLength('role', t('The maximum length is %d characters', 25), 25),
|
new Validators\MaxLength('role', t('The maximum length is %d characters', 25), 25),
|
||||||
|
|||||||
@@ -159,6 +159,7 @@ List of template hooks:
|
|||||||
| `template:auth:login-form:before` | Login page (top) |
|
| `template:auth:login-form:before` | Login page (top) |
|
||||||
| `template:auth:login-form:after` | Login page (bottom) |
|
| `template:auth:login-form:after` | Login page (bottom) |
|
||||||
| `template:config:sidebar` | Sidebar on settings page |
|
| `template:config:sidebar` | Sidebar on settings page |
|
||||||
|
| `template:config:application ` | Application settings form |
|
||||||
| `template:config:integrations` | Integration page in global settings |
|
| `template:config:integrations` | Integration page in global settings |
|
||||||
| `template:dashboard:sidebar` | Sidebar on dashboard page |
|
| `template:dashboard:sidebar` | Sidebar on dashboard page |
|
||||||
| `template:export:sidebar` | Sidebar on export pages |
|
| `template:export:sidebar` | Sidebar on export pages |
|
||||||
|
|||||||
Reference in New Issue
Block a user