dining_charges
This commit is contained in:
2
app/views/dining_charges/_dining_charge.json.jbuilder
Normal file
2
app/views/dining_charges/_dining_charge.json.jbuilder
Normal file
@@ -0,0 +1,2 @@
|
||||
json.extract! dining_charge, :id, :created_at, :updated_at
|
||||
json.url dining_charge_url(dining_charge, format: :json)
|
||||
10
app/views/dining_charges/_form.html.erb
Normal file
10
app/views/dining_charges/_form.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<%= simple_form_for(@dining_charge) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
6
app/views/dining_charges/edit.html.erb
Normal file
6
app/views/dining_charges/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing Dining Charge</h1>
|
||||
|
||||
<%= render 'form', dining_charge: @dining_charge %>
|
||||
|
||||
<%= link_to 'Show', @dining_charge %> |
|
||||
<%= link_to 'Back', dining_charges_path %>
|
||||
25
app/views/dining_charges/index.html.erb
Normal file
25
app/views/dining_charges/index.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>Dining Charges</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @dining_charges.each do |dining_charge| %>
|
||||
<tr>
|
||||
<td><%= link_to 'Show', dining_charge %></td>
|
||||
<td><%= link_to 'Edit', edit_dining_charge_path(dining_charge) %></td>
|
||||
<td><%= link_to 'Destroy', dining_charge, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Dining Charge', new_dining_charge_path %>
|
||||
1
app/views/dining_charges/index.json.jbuilder
Normal file
1
app/views/dining_charges/index.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.array! @dining_charges, partial: 'dining_charges/dining_charge', as: :dining_charge
|
||||
5
app/views/dining_charges/new.html.erb
Normal file
5
app/views/dining_charges/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New Dining Charge</h1>
|
||||
|
||||
<%= render 'form', dining_charge: @dining_charge %>
|
||||
|
||||
<%= link_to 'Back', dining_charges_path %>
|
||||
4
app/views/dining_charges/show.html.erb
Normal file
4
app/views/dining_charges/show.html.erb
Normal file
@@ -0,0 +1,4 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<%= link_to 'Edit', edit_dining_charge_path(@dining_charge) %> |
|
||||
<%= link_to 'Back', dining_charges_path %>
|
||||
1
app/views/dining_charges/show.json.jbuilder
Normal file
1
app/views/dining_charges/show.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "dining_charges/dining_charge", dining_charge: @dining_charge
|
||||
Reference in New Issue
Block a user