queue and crm view updated
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
json.extract! crm_dining_queue, :id, :name, :contact, :queue_no, :created_at, :updated_at
|
||||
json.url crm_dining_queue_url(crm_dining_queue, format: :json)
|
||||
16
app/views/crm/dining_queues/_form.html.erb
Normal file
16
app/views/crm/dining_queues/_form.html.erb
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
<%= simple_form_for([:crm,@dining_queue]) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
<%= f.input :name %>
|
||||
<%= f.input :contact_no %>
|
||||
<%= f.input :queue_no %>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
11
app/views/crm/dining_queues/edit.html.erb
Normal file
11
app/views/crm/dining_queues/edit.html.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
<div class="span12">
|
||||
<div class="page-header">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="<%= root_path %>">Home</a></li>
|
||||
<li><a href="<%= crm_dining_queues_path %>">Queue</a></li>
|
||||
<li>Edit</li>
|
||||
</ul>
|
||||
</div>
|
||||
<%= render 'form', dining_queue: @dining_queue %>
|
||||
</div>
|
||||
38
app/views/crm/dining_queues/index.html.erb
Normal file
38
app/views/crm/dining_queues/index.html.erb
Normal file
@@ -0,0 +1,38 @@
|
||||
|
||||
|
||||
<div class="page-header">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="<%= %>">Home</a></li>
|
||||
<li>Queue</li>
|
||||
<span style="float: right">
|
||||
<%= link_to t('.new', :default => t("helpers.links.new")),new_crm_dining_queue_path,:class => 'btn btn-primary btn-sm' %>
|
||||
</span>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<div class="card">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:25%">Name</th>
|
||||
<th style="width:25%">Contact No</th>
|
||||
<th style="width:25%">Queue No</th>
|
||||
<th style="width:25%">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @dining_queues.each do |dining_queue| %>
|
||||
<tr>
|
||||
<td><%= dining_queue.name %></td>
|
||||
<td><%= dining_queue.contact_no %></td>
|
||||
<td><%= dining_queue.queue_no %></td>
|
||||
<td>
|
||||
<%= link_to 'Edit', edit_crm_dining_queue_path(dining_queue) %> | <%= link_to 'Destroy', crm_dining_queue_path(dining_queue), method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
1
app/views/crm/dining_queues/index.json.jbuilder
Normal file
1
app/views/crm/dining_queues/index.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.array! @crm_dining_queues, partial: 'crm_dining_queues/crm_dining_queue', as: :crm_dining_queue
|
||||
11
app/views/crm/dining_queues/new.html.erb
Normal file
11
app/views/crm/dining_queues/new.html.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
<div class="span12">
|
||||
<div class="page-header">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="<%= root_path %>">Home</a></li>
|
||||
<li><a href="<%= crm_dining_queues_path %>">Queue</a></li>
|
||||
<li>New</li>
|
||||
</ul>
|
||||
</div>
|
||||
<%= render 'form', dining_queue: @dining_queue %>
|
||||
</div>
|
||||
19
app/views/crm/dining_queues/show.html.erb
Normal file
19
app/views/crm/dining_queues/show.html.erb
Normal file
@@ -0,0 +1,19 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<strong>Name:</strong>
|
||||
<%= @crm_dining_queue.name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Contact:</strong>
|
||||
<%= @crm_dining_queue.contact %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Queue no:</strong>
|
||||
<%= @crm_dining_queue.queue_no %>
|
||||
</p>
|
||||
|
||||
<%= link_to 'Edit', edit_crm_dining_queue_path(@crm_dining_queue) %> |
|
||||
<%= link_to 'Back', crm_dining_queues_path %>
|
||||
1
app/views/crm/dining_queues/show.json.jbuilder
Normal file
1
app/views/crm/dining_queues/show.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "crm_dining_queues/crm_dining_queue", crm_dining_queue: @crm_dining_queue
|
||||
Reference in New Issue
Block a user