Created
October 26, 2012 14:29
-
-
Save brandon-beacher/3959146 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= form_tag material_rating_path(@material) do | |
.btn-group | |
= button_tag class: "btn btn-rating", name: "rating", value: -2 do | |
= image_tag "negative_two_rating.png" | |
span.badge.badge-important -- | |
= button_tag class: "btn btn-rating", name: "rating", value: -1 do | |
= image_tag "negative_one_rating.png" | |
span.badge.badge-warning - | |
= button_tag class: "btn btn-rating", name: "rating", value: 0 do | |
= image_tag "zero_rating.png" | |
span.badge | |
= button_tag class: "btn btn-rating", name: "rating", value: 1 do | |
= image_tag "positive_one_rating.png" | |
span.badge.badge-info + | |
= button_tag class: "btn btn-rating", name: "rating", value: 2 do | |
= image_tag "positive_two_rating.png" | |
span.badge.badge-success ++ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment