Pills are useful for showing statuses as an admin can get a better idea of the
state of the object by the color alone. These are most effective in a table,
as displayed below, but can also be used in other areas of the system where
appropriate.
<%- snippet = capture do %>
Complete
Active
Inactive
Pending
Warning
Error
<%- end %>
<%= snippet %>
<%= escape_once snippet %>
Promotions
Code |
Status |
Used |
Start |
End |
FALL2017 |
Inactive |
0 |
September 1, 2017 |
– |
SAVE_20 |
Active |
651 |
June 20, 2016 |
– |
NEWSLETTER |
Expired |
358 |
January 1, 2016 |
March 30, 2016 |