some indentation

integration-tests
Josha von Gizycki 6 years ago
parent 554e69d914
commit 7c02b5b904

@ -50,11 +50,10 @@
[:td [:td
(prettify-dt (:created_at schema))]])]] (prettify-dt (:created_at schema))]])]]
[:h1 "Pali sin e jaki ijo"] [:h1 "Pali sin e jaki ijo"]
(hform/form-to (hform/form-to [:post (path :schema-new)]
[:post (path :schema-new)] (anti-forgery-field)
(form/field new-form :schema-name req) (form/field new-form :schema-name req)
(hform/submit-button "Pali") (hform/submit-button "Pali"))])))
(anti-forgery-field))])))
(defn show-schema! [schema attrs req] (defn show-schema! [schema attrs req]
(view/layout! (view/layout!
@ -62,24 +61,21 @@
:content :content
[[:h1 "Jaki ijo " [[:h1 "Jaki ijo "
[:span.schema-title__name (:name schema)]] [:span.schema-title__name (:name schema)]]
(hform/form-to (hform/form-to [:post "/schema/edit"])
[:post "/schema/edit"])
[:h2 "Lili wan e jaki ijo"] [:h2 "Lili wan e jaki ijo"]
[:ul [:ul
(for [attr attrs] (for [attr attrs]
[:li (:name attr)])] [:li (:name attr)])]
[:h3 "Pali lili wan"] [:h3 "Pali lili wan"]
(hform/form-to (hform/form-to [:post (path :attribute-new)]
[:post (path :attribute-new)] (anti-forgery-field)
(anti-forgery-field) (hform/hidden-field "schema" (:uuid schema))
(hform/hidden-field "schema" (:uuid schema)) (form/field new-attr-form :name req)
(form/field new-attr-form :name req) (form/drop-down new-attr-form :type req)
(form/drop-down new-attr-form :type req) (form/check-box new-attr-form :required req)
(form/check-box new-attr-form :required req) (hform/submit-button "Pali"))
(hform/submit-button "Pali"))
[:h2 "Mute pali"] [:h2 "Mute pali"]
(hform/form-to (hform/form-to {:class "inline"}
{:class "inline"} [:delete (path :schema-delete schema)]
[:delete (path :schema-delete schema)] (anti-forgery-field)
(anti-forgery-field) (hform/submit-button "Pakala!"))]))
(hform/submit-button "Pakala!"))]))

Loading…
Cancel
Save