diff --git a/src/Foundation.hs b/src/Foundation.hs index ed02dcd74..b6741cf0d 100644 --- a/src/Foundation.hs +++ b/src/Foundation.hs @@ -344,6 +344,7 @@ defaultMenuLayout menu widget = do $(widgetFile "default-layout") $(widgetFile "standalone/showHide") $(widgetFile "standalone/sortable") + $(widgetFile "standalone/inputs") withUrlRenderer $(hamletFile "templates/default-layout-wrapper.hamlet") -- How to run database actions. diff --git a/src/Handler/Utils/Form.hs b/src/Handler/Utils/Form.hs index 93b32bb45..e3f25d52e 100644 --- a/src/Handler/Utils/Form.hs +++ b/src/Handler/Utils/Form.hs @@ -124,7 +124,7 @@ buttonField btn = Field {fieldParse, fieldView, fieldEnctype} fieldView fid name attrs _val _ = [whamlet| - + |] fieldParse [] _ = return $ Right Nothing diff --git a/templates/standalone/inputs.hamlet b/templates/standalone/inputs.hamlet new file mode 100644 index 000000000..d5383e417 --- /dev/null +++ b/templates/standalone/inputs.hamlet @@ -0,0 +1 @@ + diff --git a/templates/standalone/inputs.julius b/templates/standalone/inputs.julius new file mode 100644 index 000000000..8e392e6a0 --- /dev/null +++ b/templates/standalone/inputs.julius @@ -0,0 +1,188 @@ +(function() { + 'use strict'; + + window.utils = window.utils || {}; + + // makes