fix: [userSettings] Added missing template

pull/72/head
Sami Mokaddem 2021-10-08 16:54:32 +02:00
parent 04cc693c0e
commit 4d85d70799
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
<?php
echo $this->element('genericElements/Form/genericForm', [
'data' => [
'description' => __('User settings are used to register setting tied to user profile.'),
'model' => 'UserSettings',
'fields' => [
sprintf(
'<div class="row mb-3"><div class="col-sm-2 form-label">%s</div><div class="col-sm-10 font-monospace">%s</div>',
__('Setting Name'),
h($settingName)
),
[
'field' => 'value',
'label' => __('Setting Value'),
'type' => 'codemirror',
'codemirror' => [
'height' => '10rem',
'mode' => [
'name' => 'text',
],
]
],
],
'submit' => [
'action' => $this->request->getParam('action')
]
]
]);
?>
</div>