Changed Ruby syntax in views. Fixed #1326

This commit is contained in:
divyanshumehta 2017-03-11 13:25:39 +05:30
parent b0a84ad1c6
commit 1ca448df6f
74 changed files with 371 additions and 376 deletions

View file

@ -1,7 +1,7 @@
<div class="nested-fields">
<%= f.inputs do %>
<%= f.date_select :day %>
<%= f.input :description, :input_html => {:rows => "2", :class => "col-md-8"} %>
<%= f.input :description, input_html: {rows: '2', class: 'col-md-8'} %>
<%= remove_association_link :vday, f %>
<% end %>
</div>
</div>

View file

@ -24,4 +24,4 @@
$('#volunteerstable').dataTable({
"bPaginate": false
});
});
});

View file

@ -1,8 +1,8 @@
<div class="nested-fields">
<%= f.inputs do %>
<%= f.input :title %>
<%= f.input :description, :input_html => {:rows => "2", :class => "col-md-8"}%>
<%= f.input :vdays, :collection => @conference.vdays.map {|x| [x.day, x.id]}, :label => "Position is required for the following days:"%>
<%= f.input :description, input_html: {rows: '2', class: 'col-md-8'}%>
<%= f.input :vdays, collection: @conference.vdays.map {|x| [x.day, x.id]}, label: 'Position is required for the following days:'%>
<%= remove_association_link :vposition, f %>
<% end %>
</div>

View file

@ -1,14 +1,14 @@
.row
.col-md-8
= semantic_form_for(@conference, :url => admin_conference_volunteers_update_path(@conference.short_title)) do |f|
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
= semantic_form_for(@conference, url: admin_conference_volunteers_update_path(@conference.short_title)) do |f|
= f.action :submit, as: :button, button_html: {class: 'btn btn-primary'}
%br
%br
= f.input :use_volunteers, :label => "Enable Volunteering"
= f.input :use_volunteers, label: 'Enable Volunteering'
.row
.col-md-6
= f.input :use_vdays, :label => false
= f.input :use_vdays, label: false
= dynamic_association :vdays, "Volunteer Days", f
.col-md-6
= f.input :use_vpositions, :label => false
= f.input :use_vpositions, label: false
= dynamic_association :vpositions, "Volunteer positions", f

View file

@ -1,6 +1,6 @@
- if @volunteers.count > 0
%h3= "Volunteers (#{@volunteers.count})"
%br
= render :partial => "volunteers_table"
= render partial: 'volunteers_table'
- else
%h3 There are no volunteers yet!
%h3 There are no volunteers yet!