Merge branch 'august_spring' of bitbucket.org:code2lab/sxrestaurant into august_spring
This commit is contained in:
10
app/views/origami/in_juties/_form.html.erb
Normal file
10
app/views/origami/in_juties/_form.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<%= simple_form_for(@in_juty) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
2
app/views/origami/in_juties/_in_juty.json.jbuilder
Normal file
2
app/views/origami/in_juties/_in_juty.json.jbuilder
Normal file
@@ -0,0 +1,2 @@
|
||||
json.extract! in_juty, :id, :created_at, :updated_at
|
||||
json.url in_juty_url(in_juty, format: :json)
|
||||
6
app/views/origami/in_juties/edit.html.erb
Normal file
6
app/views/origami/in_juties/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing In Juty</h1>
|
||||
|
||||
<%= render 'form', in_juty: @in_juty %>
|
||||
|
||||
<%= link_to 'Show', @in_juty %> |
|
||||
<%= link_to 'Back', in_juties_path %>
|
||||
25
app/views/origami/in_juties/index.html.erb
Normal file
25
app/views/origami/in_juties/index.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>In Juties</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @in_juties.each do |in_juty| %>
|
||||
<tr>
|
||||
<td><%= link_to 'Show', in_juty %></td>
|
||||
<td><%= link_to 'Edit', edit_in_juty_path(in_juty) %></td>
|
||||
<td><%= link_to 'Destroy', in_juty, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New In Juty', new_in_juty_path %>
|
||||
1
app/views/origami/in_juties/index.json.jbuilder
Normal file
1
app/views/origami/in_juties/index.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.array! @in_juties, partial: 'in_juties/in_juty', as: :in_juty
|
||||
5
app/views/origami/in_juties/new.html.erb
Normal file
5
app/views/origami/in_juties/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New In Juty</h1>
|
||||
|
||||
<%= render 'form', in_juty: @in_juty %>
|
||||
|
||||
<%= link_to 'Back', in_juties_path %>
|
||||
4
app/views/origami/in_juties/show.html.erb
Normal file
4
app/views/origami/in_juties/show.html.erb
Normal file
@@ -0,0 +1,4 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<%= link_to 'Edit', edit_in_juty_path(@in_juty) %> |
|
||||
<%= link_to 'Back', in_juties_path %>
|
||||
1
app/views/origami/in_juties/show.json.jbuilder
Normal file
1
app/views/origami/in_juties/show.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "in_juties/in_juty", in_juty: @in_juty
|
||||
Reference in New Issue
Block a user