|
|
|
@ -15,22 +15,30 @@
|
|
|
|
|
uuid (:uuid session)
|
|
|
|
|
schemas (domain/all-created-by! uuid)]
|
|
|
|
|
(view/layout!
|
|
|
|
|
:session session
|
|
|
|
|
:content
|
|
|
|
|
[[:h1 "Ali jaki ijo"]
|
|
|
|
|
[:table
|
|
|
|
|
[:thead
|
|
|
|
|
[:tr
|
|
|
|
|
[:th "Nimi"]
|
|
|
|
|
[:th "Tenpo kama"]]]
|
|
|
|
|
[:tbody
|
|
|
|
|
(for [schema schemas]
|
|
|
|
|
[:tr
|
|
|
|
|
[:td (:name schema)]
|
|
|
|
|
[:td (:created_at schema)]])]]
|
|
|
|
|
[:h1 "Pali sin e jaki ijo"]
|
|
|
|
|
(hform/form-to
|
|
|
|
|
[:post "/schema/new"]
|
|
|
|
|
(form/field new-form :schema-name req)
|
|
|
|
|
(hform/submit-button "Pali")
|
|
|
|
|
(anti-forgery-field))])))
|
|
|
|
|
:session session
|
|
|
|
|
:content
|
|
|
|
|
[[:h1 "Ali jaki ijo"]
|
|
|
|
|
[:table
|
|
|
|
|
[:thead
|
|
|
|
|
[:tr
|
|
|
|
|
[:th "Nimi"]
|
|
|
|
|
[:th "Tenpo kama"]]]
|
|
|
|
|
[:tbody
|
|
|
|
|
(for [schema schemas]
|
|
|
|
|
[:tr
|
|
|
|
|
[:td
|
|
|
|
|
[:a {:href (str "/schema/" (:uuid schema))}
|
|
|
|
|
(:name schema)]]
|
|
|
|
|
[:td (:created_at schema)]])]]
|
|
|
|
|
[:h1 "Pali sin e jaki ijo"]
|
|
|
|
|
(hform/form-to
|
|
|
|
|
[:post "/schema/new"]
|
|
|
|
|
(form/field new-form :schema-name req)
|
|
|
|
|
(hform/submit-button "Pali")
|
|
|
|
|
(anti-forgery-field))])))
|
|
|
|
|
|
|
|
|
|
(defn show-schema! [schema session]
|
|
|
|
|
(view/layout!
|
|
|
|
|
:session session
|
|
|
|
|
:content
|
|
|
|
|
[[:h1 "Jaki ijo " (:name schema)]]))
|
|
|
|
|