Show More
Commit Description:
add golden submit button...
Commit Description:
add golden submit button - When the user submit more than or equal to 100 times the submit button will turn gold - Add golden-btn tag in applications.css.scss
References:
File last commit:
Show/Diff file:
Action:
app/views/groups/_form.html.haml | 27 lines | 724 B | text/x-haml | HamlLexer |
add problem group
r672 = form_for @group do |f|
- if @group.errors.any?
#error_explanation
%h2= "#{pluralize(@group.errors.count, "error")} prohibited this group from being saved:"
%ul
- @group.errors.full_messages.each do |msg|
%li= msg
group enable
r795 .row
.col-md-6
.form-group.field
= f.label :name
= f.text_field :name, class: 'form-control'
.row
.col-md-6
.form-group.field
= f.label :description
= f.text_field :description, class: 'form-control'
.row
.col-md-6
.checkbox
= f.label :enabled do
= f.check_box :enabled
Enabled
.row
.col-md-6
.form-group.actions
= f.submit 'Save', class: 'btn btn-primary'