Renamed: column -> exposure
Moved toggle_column_options to body_trackers helper
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<% if @meals.any? { |m| m.persisted? } %>
|
||||
<%= render partial: 'meals/options' %>
|
||||
|
||||
<table id="meals" class="odd-even list">
|
||||
<tbody>
|
||||
<% @meals.group_by { |m| m.eaten_at ? m.eaten_at.to_date : Date.current }
|
||||
|
||||
17
app/views/meals/_options.html.erb
Normal file
17
app/views/meals/_options.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<fieldset id="options" class="collapsible">
|
||||
<legend onclick="toggleFieldset(this);"><%= l(:label_options) %></legend>
|
||||
<div>
|
||||
<%= form_tag toggle_exposure_project_meals_path(@project),
|
||||
id: 'toggle-exposure-form', name: 'toggle-exposure-form',
|
||||
method: :post, remote: true do %>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:100%"></td>
|
||||
<td><%= select_tag 'quantity_id', toggle_column_options %></td>
|
||||
<td><%= submit_tag l(:button_add) %></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% end %>
|
||||
</div>
|
||||
</fieldset>
|
||||
Reference in New Issue
Block a user