From f8638137d7f66ff80b3a251c6fcd4d7c6e1d976a Mon Sep 17 00:00:00 2001 From: bom Date: Tue, 2 Jul 2024 15:31:11 +0200 Subject: [PATCH] Use common generate-group --- src/main/cljs/dda/c4k_shynet/browser.cljs | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/src/main/cljs/dda/c4k_shynet/browser.cljs b/src/main/cljs/dda/c4k_shynet/browser.cljs index 790b13f..9328d34 100644 --- a/src/main/cljs/dda/c4k_shynet/browser.cljs +++ b/src/main/cljs/dda/c4k_shynet/browser.cljs @@ -8,35 +8,21 @@ [dda.c4k-common.postgres :as pgc] [dda.c4k-common.common :as cm])) -(defn generate-group - [name - content] - [{:type :element - :tag :div - :attrs {:class "rounded border border-3 m-3 p-2"} - :content [{:type :element - :tag :b - :attrs {:style "z-index: 1; position: relative; top: -1.3rem;"} - :content name} - {:type :element - :tag :fieldset - :content content}]}]) - (defn generate-content [] (cm/concat-vec [(assoc (br/generate-needs-validation) :content (cm/concat-vec - (generate-group + (br/generate-group "domain" (cm/concat-vec (br/generate-input-field "fqdn" "Your fqdn:" "shynet.prod.meissa-gmbh.de") (br/generate-input-field "issuer" "(Optional) Your issuer prod/staging:" ""))) - (generate-group + (br/generate-group "provider" (cm/concat-vec (br/generate-input-field "postgres-data-volume-path" "(Optional) Your postgres-data-volume-path if Persistent Volumes are not generated by an Operator:" ""))) - (generate-group + (br/generate-group "credentials" (br/generate-text-area "auth" "Your auth.edn:"