Commit ab13837b authored by Joachim Schunk's avatar Joachim Schunk

make assignment-config work and look nice

parent 9baf29b3
Pipeline #45494 passed with stages
in 2 minutes and 2 seconds
......@@ -114,14 +114,12 @@
assignment-id assignments steps)}
latex-str (build-units-latex-string (:units assignment))]
[:tr
[:td [:input {:type "text"
:value (:sign assignment)
:on-change
#(change-fn (conj path :sign) (-> % .-target .-value))}]]
[:td [:input {:type "text"
:value (:idx assignment)
:on-change
#(change-fn (conj path :idx) (-> % .-target .-value))}]]
[:td [ui/input-text
{:value (:sign assignment)
:on-change #(change-fn (conj path :sign) (-> % .-target .-value))}]]
[:td [ui/input-text
{:value (:idx assignment)
:on-change #(change-fn (conj path :idx) (-> % .-target .-value))}]]
[:td
[ui/select
{:label ""
......@@ -136,13 +134,13 @@
(when (> (count ass-cat-options) 1)
[:td
[ui/select
{:label ""
{:node-type :dropdown
:value (or (:category-id assignment) :$-§)
:options ass-cat-options
:on-change #(change-fn (conj path :category-id) (if (= % :$-§) nil %))}]])
[:td {:style {:white-space "nowrap"}}
[:td.is-vcentered {:style {:white-space "nowrap"}}
(:formula assignment)]
[:td
[:td.is-vcentered
[latex-span latex-str]]
[:td
[:a.button.is-success
......@@ -171,7 +169,7 @@
[ui/card {:title (phrase-fn :assignments)}
#_[:h6 (phrase-fn :assignments)]
[:<>
[:table.table
[:table.table.is-narrow
[:thead
[:tr
[:th "Zeichen"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment