Use icons instead of text in several places

This commit is contained in:
Nicholas Kariniemi 2014-08-09 00:19:31 +03:00
parent 29547e12be
commit d05b5ebdd5
2 changed files with 5 additions and 4 deletions

View file

@ -46,7 +46,7 @@
{:id "add-grub-btn"
:type "button"
:on-click #(add-grub add new-grub owner)}
"Add"]]
[:span.glyphicon.glyphicon-plus]]]
[:ul#grub-list.list-group
(for [grub (sort-grubs props)]
(om/build grub-view/view grub {:key :id}))]

View file

@ -93,7 +93,8 @@
:class (when (= edit-state :editing) "hidden")
:ref :add-grubs-btn
:on-click #(add-grubs add-grubs-ch grubs)}
"Add grubs"]]
[:span.glyphicon.glyphicon-plus]
" Grubs"]]
[:div.panel-body.recipe-grubs
{:class (when (= edit-state :waiting) "hidden")}
[:textarea.form-control.recipe-grubs-input
@ -105,12 +106,12 @@
[:button.btn.btn-danger.pull-left.recipe-remove-btn
{:type "button"
: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
{:type "button"
:ref :save-btn
:on-click #(transition-state owner :save)}
"Save"]]])))
[:span.glyphicon.glyphicon-ok]]]])))
om/IDidMount
(did-mount [_]