Updated README database section; reformat of electors

Electors page is STILL rendering an obsolete version which is
nowhere in the code, and I cannot see how it possibly can.
This commit is contained in:
Simon Brooke 2018-07-02 17:42:15 +01:00
parent 8cf28e9ca9
commit 13f454afb5
2 changed files with 18 additions and 11 deletions

View file

@ -62,11 +62,12 @@
(defn name-cell
[elector]
[:td {:key (str "name-" (:id elector))
:on-click #(dispatch
[:set-elector-and-page {:elector-id (:id elector)
:page "gdpr"}])}
(:name elector)])
[:td {:key (str "name-" (:id elector))
:on-click #(dispatch
[:set-elector-and-page
{:elector-id (:id elector)
:page "gdpr"}])}
(:name elector)])
(defn names-row
@ -92,9 +93,7 @@
[:div.container {:id "main-container"}
[:table
[:tbody
;; genders row
(genders-row electors)
;; names row
(names-row electors)]]
(ui/back-link)]]
(ui/error-panel "No address selected"))))