Use icons instead of text in several places
This commit is contained in:
parent
29547e12be
commit
d05b5ebdd5
2 changed files with 5 additions and 4 deletions
|
@ -46,7 +46,7 @@
|
||||||
{:id "add-grub-btn"
|
{:id "add-grub-btn"
|
||||||
:type "button"
|
:type "button"
|
||||||
:on-click #(add-grub add new-grub owner)}
|
:on-click #(add-grub add new-grub owner)}
|
||||||
"Add"]]
|
[:span.glyphicon.glyphicon-plus]]]
|
||||||
[:ul#grub-list.list-group
|
[:ul#grub-list.list-group
|
||||||
(for [grub (sort-grubs props)]
|
(for [grub (sort-grubs props)]
|
||||||
(om/build grub-view/view grub {:key :id}))]
|
(om/build grub-view/view grub {:key :id}))]
|
||||||
|
|
|
@ -93,7 +93,8 @@
|
||||||
:class (when (= edit-state :editing) "hidden")
|
:class (when (= edit-state :editing) "hidden")
|
||||||
:ref :add-grubs-btn
|
:ref :add-grubs-btn
|
||||||
:on-click #(add-grubs add-grubs-ch grubs)}
|
:on-click #(add-grubs add-grubs-ch grubs)}
|
||||||
"Add grubs"]]
|
[:span.glyphicon.glyphicon-plus]
|
||||||
|
" Grubs"]]
|
||||||
[:div.panel-body.recipe-grubs
|
[:div.panel-body.recipe-grubs
|
||||||
{:class (when (= edit-state :waiting) "hidden")}
|
{:class (when (= edit-state :waiting) "hidden")}
|
||||||
[:textarea.form-control.recipe-grubs-input
|
[:textarea.form-control.recipe-grubs-input
|
||||||
|
@ -105,12 +106,12 @@
|
||||||
[:button.btn.btn-danger.pull-left.recipe-remove-btn
|
[:button.btn.btn-danger.pull-left.recipe-remove-btn
|
||||||
{:type "button"
|
{:type "button"
|
||||||
:on-click #(put! (om/get-shared owner :recipe-remove) (remove-event id))}
|
:on-click #(put! (om/get-shared owner :recipe-remove) (remove-event id))}
|
||||||
"Delete"]
|
[:span.glyphicon.glyphicon-trash]]
|
||||||
[:button.btn.btn-primary.pull-right.recipe-done-btn
|
[:button.btn.btn-primary.pull-right.recipe-done-btn
|
||||||
{:type "button"
|
{:type "button"
|
||||||
:ref :save-btn
|
:ref :save-btn
|
||||||
:on-click #(transition-state owner :save)}
|
:on-click #(transition-state owner :save)}
|
||||||
"Save"]]])))
|
[:span.glyphicon.glyphicon-ok]]]])))
|
||||||
|
|
||||||
om/IDidMount
|
om/IDidMount
|
||||||
(did-mount [_]
|
(did-mount [_]
|
||||||
|
|
Loading…
Reference in a new issue