added id to input field, variable project

This commit is contained in:
bom 2021-09-22 11:26:25 +02:00
parent b5f4338506
commit 2625cb615c

View file

@ -90,9 +90,10 @@
(defn generate-input-field (defn generate-input-field
[id [id
label label
default-value] default-value
project-file-path]
[(generate-label id label) [(generate-label id label)
{:type :element :attrs {:class "form-control" :type "text" :name id :value default-value :onblur "dda.c4k_jira.browser.validate_all_BANG_ ()"} :tag :input :content nil} {:type :element :attrs {:class "form-control" :type "text" :name id :id id :value default-value :onblur (str project-file-path ".validate_all_BANG_()")} :tag :input :content nil}
(generate-feedback-tag id) (generate-feedback-tag id)
(generate-br)]) (generate-br)])
@ -100,9 +101,10 @@
[id [id
label label
default-value default-value
rows] rows
project-file-path]
[(generate-label id label) [(generate-label id label)
{:type :element :attrs {:name id :id id :class "form-control" :rows rows :onblur "dda.c4k_jira.browser.validate_all_BANG_ ()"} :tag :textarea :content [default-value]} {:type :element :attrs {:name id :id id :class "form-control" :rows rows :onblur (str project-file-path ".validate_all_BANG_()")} :tag :textarea :content [default-value]}
(generate-feedback-tag id) (generate-feedback-tag id)
(generate-br)]) (generate-br)])
@ -110,7 +112,7 @@
[id [id
label] label]
[{:type :element [{:type :element
:attrs {:type "button", :id id, :class "btn btn-primary" :onblur "dda.c4k_jira.browser.validate_all_BANG_ ()"} :attrs {:type "button", :id id, :class "btn btn-primary"}
:tag :button :tag :button
:content [label]} :content [label]}
(generate-br)]) (generate-br)])