fixes in browser
This commit is contained in:
parent
6f718e786b
commit
8badf77922
2 changed files with 7 additions and 11 deletions
|
@ -1,8 +1,4 @@
|
||||||
<<<<<<< HEAD
|
|
||||||
(defproject org.domaindrivenarchitecture/c4k-common-clj "0.2.11"
|
|
||||||
=======
|
|
||||||
(defproject org.domaindrivenarchitecture/c4k-common-clj "0.3.1-SNAPSHOT"
|
(defproject org.domaindrivenarchitecture/c4k-common-clj "0.3.1-SNAPSHOT"
|
||||||
>>>>>>> 8b5c33183cbe8e324b69ee5150f5cc40add9a2b4
|
|
||||||
:description "Contains predicates and tools for c4k"
|
:description "Contains predicates and tools for c4k"
|
||||||
:url "https://domaindrivenarchitecture.org"
|
:url "https://domaindrivenarchitecture.org"
|
||||||
:license {:name "Apache License, Version 2.0"
|
:license {:name "Apache License, Version 2.0"
|
||||||
|
|
|
@ -87,18 +87,18 @@
|
||||||
[id
|
[id
|
||||||
label
|
label
|
||||||
default-value]
|
default-value]
|
||||||
(str (generate-label id label)
|
[(generate-label id label)
|
||||||
{:type :element :attrs {:class "form-control" :type "text" :name id :value default-value} :tag :input :content nil}
|
{:type :element :attrs {:class "form-control" :type "text" :name id :value default-value} :tag :input :content nil}
|
||||||
(generate-feedback-tag id)))
|
(generate-feedback-tag id)])
|
||||||
|
|
||||||
(defn generate-text-area
|
(defn generate-text-area
|
||||||
[id
|
[id
|
||||||
label
|
label
|
||||||
default-value
|
default-value
|
||||||
rows]
|
rows]
|
||||||
(str (generate-label id label)
|
[(generate-label id label)
|
||||||
{:type :element :attrs {:name id :id id :class "form-control" :rows rows} :tag :textarea :content [default-value]}
|
{:type :element :attrs {:name id :id id :class "form-control" :rows rows} :tag :textarea :content [default-value]}
|
||||||
(generate-feedback-tag id)))
|
(generate-feedback-tag id)])
|
||||||
|
|
||||||
(defn generate-button
|
(defn generate-button
|
||||||
[id
|
[id
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
label
|
label
|
||||||
rows]
|
rows]
|
||||||
{:type :element, :attrs {:id id}, :tag :div, :content [{:type :element, :attrs {:for "output", :class "form-label"}, :tag :label, :content [label]}
|
{:type :element, :attrs {:id id}, :tag :div, :content [{:type :element, :attrs {:for "output", :class "form-label"}, :tag :label, :content [label]}
|
||||||
{:type :element, :attrs {:name "output", :id "output", :class "form-control", :rows rows}, :tag :textarea, :content []}]})
|
{:type :element, :attrs {:name "output", :id "output", :class "form-control", :rows rows}, :tag :textarea, :content []}]})
|
||||||
|
|
||||||
(defn generate-needs-validation
|
(defn generate-needs-validation
|
||||||
[]
|
[]
|
||||||
|
|
Loading…
Reference in a new issue