From c74e3b0685a0badbe7930b69327d29baf78e81d3 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Thu, 21 May 2020 23:10:47 -0500 Subject: [PATCH] Add cobalt JSON field type --- TODO.text | 1 - app/assets/app/cobalt/Form.component.js | 55 ++++++++++++++++++++- app/assets/app/resource/CRUDBase.js | 4 +- app/assets/app/resource/Setting.resource.js | 4 ++ 4 files changed, 59 insertions(+), 5 deletions(-) diff --git a/TODO.text b/TODO.text index fda9c1d..2b6b711 100644 --- a/TODO.text +++ b/TODO.text @@ -1,4 +1,3 @@ -- Cobalt form JSON field type - Setting resource - MFA recovery codes handling - Forgot password handling - Admin password reset mechanism -> flag users as needing PW resets diff --git a/app/assets/app/cobalt/Form.component.js b/app/assets/app/cobalt/Form.component.js index 90caeb0..295a80c 100644 --- a/app/assets/app/cobalt/Form.component.js +++ b/app/assets/app/cobalt/Form.component.js @@ -74,6 +74,20 @@ const template = ` > {{ field.error }} + + + + {{ field.error }} + These are advanced settings that allow you to tweak the way ${session.get('app.name')} behaves. Tweak them at your own risk.

+ `, columns: [ { name: 'Setting Key',