Bladeren bron

add missing dir

Daniel Sheffield 4 maanden geleden
bovenliggende
commit
963429ba08
1 gewijzigde bestanden met toevoegingen van 45 en 0 verwijderingen
  1. 45 0
      home-sqlpage/clip/form.sql

+ 45 - 0
home-sqlpage/clip/form.sql

@@ -0,0 +1,45 @@
+SELECT 'form' AS component
+, '/clip' AS action
+, '' AS validate
+, 'post' AS method
+;
+SELECT 'Paste' AS value
+, '' AS label
+, 1 AS width
+, 'submit' AS type
+, 'action' AS name
+;
+SELECT 'Edit as New' AS value
+, '' AS label
+, 2 AS width
+, 'submit' AS type
+, 'action' AS name
+;
+SELECT 'New' AS value
+, '' AS label
+, 1 AS width
+, 'submit' AS type
+, 'action' AS name
+, '/clip.sql' AS action
+;
+SELECT 'Open' AS value
+, '' AS label
+, 1 AS width
+, 'submit' AS type
+, 'action' AS name
+, '/clip/open.sql' AS action
+;
+SELECT 'Download' AS value
+, '' AS label
+, 2 AS width
+, 'submit' AS type
+, 'action' AS name
+;
+SELECT 'Paste something here...' AS placeholder
+, CASE $content IS NULL WHEN TRUE THEN 'textarea' ELSE 'hidden' END AS type
+, 'paste' AS name
+, '' AS label
+, $content AS value
+;
+SELECT 'code' AS component;
+SELECT $content AS contents WHERE $content IS NOT NULL;