From ee27e91c436d0c1afbc8e8260c34196d6245f333 Mon Sep 17 00:00:00 2001 From: Sam Georges Date: Wed, 11 Jun 2014 18:48:16 +1000 Subject: [PATCH] Begin to move editor settings to its own controller --- .../backend/controllers/EditorSettings.php | 42 +++++++++++++++++++ .../editorsettings/config_form.yaml | 12 ++++++ .../controllers/editorsettings/index.htm | 37 ++++++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 modules/backend/controllers/EditorSettings.php create mode 100644 modules/backend/controllers/editorsettings/config_form.yaml create mode 100644 modules/backend/controllers/editorsettings/index.htm diff --git a/modules/backend/controllers/EditorSettings.php b/modules/backend/controllers/EditorSettings.php new file mode 100644 index 000000000..c482aef9f --- /dev/null +++ b/modules/backend/controllers/EditorSettings.php @@ -0,0 +1,42 @@ +getClassExtension('Backend.Behaviors.FormController')->update(); + } + + public function formFindModelObject() + { + return EditorSettingsModel::instance(); + } +} \ No newline at end of file diff --git a/modules/backend/controllers/editorsettings/config_form.yaml b/modules/backend/controllers/editorsettings/config_form.yaml new file mode 100644 index 000000000..e3c74cf30 --- /dev/null +++ b/modules/backend/controllers/editorsettings/config_form.yaml @@ -0,0 +1,12 @@ +# =================================== +# Form Behavior Config +# =================================== + +name: system::lang.email_templates.template +form: @/modules/backend/models/editorsettings/fields.yaml +modelClass: Backend\Models\EditorSettings +defaultRedirect: system/emailtemplates + +update: + redirect: system/emailtemplates + redirectClose: system/emailtemplates diff --git a/modules/backend/controllers/editorsettings/index.htm b/modules/backend/controllers/editorsettings/index.htm new file mode 100644 index 000000000..e6781bcef --- /dev/null +++ b/modules/backend/controllers/editorsettings/index.htm @@ -0,0 +1,37 @@ + + + + +fatalError): ?> + + 'layout-item stretch layout-column']) ?> + + formRender() ?> + +
+
+ + + + + +
+
+ + + +

fatalError) ?>

+

+ \ No newline at end of file