|
@@ -18,27 +18,29 @@ SELECT 'form' AS component
|
|
|
;
|
|
|
SELECT 'Paste' AS value
|
|
|
, '' AS label
|
|
|
-, 1 AS width
|
|
|
, 'hidden' type
|
|
|
, 'action' AS name
|
|
|
WHERE NOT :view
|
|
|
;
|
|
|
SELECT 'Edit as New' AS value
|
|
|
, '' AS label
|
|
|
-, 2 AS width
|
|
|
-, 'hidden' type
|
|
|
+, 'hidden' AS type
|
|
|
, 'action' AS name
|
|
|
WHERE :view
|
|
|
;
|
|
|
+SELECT :hash AS value
|
|
|
+, '' AS label
|
|
|
+, 'hidden' AS type
|
|
|
+, 'hash' AS name
|
|
|
+WHERE :view
|
|
|
+;
|
|
|
SELECT 'Paste something here...' AS placeholder
|
|
|
, 'content' AS name
|
|
|
-, CASE :view WHEN FALSE THEN 'textarea' ELSE 'hidden' END AS type
|
|
|
+, 'textarea' AS type
|
|
|
, '' AS label
|
|
|
---, :view AS disabled
|
|
|
+, :view AS disabled
|
|
|
, CASE COALESCE(:action, '')
|
|
|
WHEN 'New' THEN NULL
|
|
|
ELSE :content
|
|
|
END AS value
|
|
|
-;
|
|
|
-SELECT 'code' AS component;
|
|
|
-SELECT :content AS contents WHERE :content IS NOT NULL AND COALESCE(:action, '') NOT IN ('Edit as New', 'New');
|
|
|
+;
|