scaffold models
This commit is contained in:
2
app/views/crm/customers/_crm_customer.json.jbuilder
Normal file
2
app/views/crm/customers/_crm_customer.json.jbuilder
Normal file
@@ -0,0 +1,2 @@
|
||||
json.extract! crm_customer, :id, :name, :company, :contact_no, :email, :date_of_birth, :membership_id, :membership_type, :membership_authentication_code, :created_at, :updated_at
|
||||
json.url crm_customer_url(crm_customer, format: :json)
|
||||
18
app/views/crm/customers/_form.html.erb
Normal file
18
app/views/crm/customers/_form.html.erb
Normal file
@@ -0,0 +1,18 @@
|
||||
<%= simple_form_for(@crm_customer) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
<%= f.input :name %>
|
||||
<%= f.input :company %>
|
||||
<%= f.input :contact_no %>
|
||||
<%= f.input :email %>
|
||||
<%= f.input :date_of_birth %>
|
||||
<%= f.association :membership %>
|
||||
<%= f.input :membership_type %>
|
||||
<%= f.input :membership_authentication_code %>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
6
app/views/crm/customers/edit.html.erb
Normal file
6
app/views/crm/customers/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing Crm Customer</h1>
|
||||
|
||||
<%= render 'form', crm_customer: @crm_customer %>
|
||||
|
||||
<%= link_to 'Show', @crm_customer %> |
|
||||
<%= link_to 'Back', crm_customers_path %>
|
||||
41
app/views/crm/customers/index.html.erb
Normal file
41
app/views/crm/customers/index.html.erb
Normal file
@@ -0,0 +1,41 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>Crm Customers</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Company</th>
|
||||
<th>Contact no</th>
|
||||
<th>Email</th>
|
||||
<th>Date of birth</th>
|
||||
<th>Membership</th>
|
||||
<th>Membership type</th>
|
||||
<th>Membership authentication code</th>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @crm_customers.each do |crm_customer| %>
|
||||
<tr>
|
||||
<td><%= crm_customer.name %></td>
|
||||
<td><%= crm_customer.company %></td>
|
||||
<td><%= crm_customer.contact_no %></td>
|
||||
<td><%= crm_customer.email %></td>
|
||||
<td><%= crm_customer.date_of_birth %></td>
|
||||
<td><%= crm_customer.membership %></td>
|
||||
<td><%= crm_customer.membership_type %></td>
|
||||
<td><%= crm_customer.membership_authentication_code %></td>
|
||||
<td><%= link_to 'Show', crm_customer %></td>
|
||||
<td><%= link_to 'Edit', edit_crm_customer_path(crm_customer) %></td>
|
||||
<td><%= link_to 'Destroy', crm_customer, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Crm Customer', new_crm_customer_path %>
|
||||
1
app/views/crm/customers/index.json.jbuilder
Normal file
1
app/views/crm/customers/index.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.array! @crm_customers, partial: 'crm_customers/crm_customer', as: :crm_customer
|
||||
5
app/views/crm/customers/new.html.erb
Normal file
5
app/views/crm/customers/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New Crm Customer</h1>
|
||||
|
||||
<%= render 'form', crm_customer: @crm_customer %>
|
||||
|
||||
<%= link_to 'Back', crm_customers_path %>
|
||||
44
app/views/crm/customers/show.html.erb
Normal file
44
app/views/crm/customers/show.html.erb
Normal file
@@ -0,0 +1,44 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<strong>Name:</strong>
|
||||
<%= @crm_customer.name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Company:</strong>
|
||||
<%= @crm_customer.company %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Contact no:</strong>
|
||||
<%= @crm_customer.contact_no %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Email:</strong>
|
||||
<%= @crm_customer.email %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Date of birth:</strong>
|
||||
<%= @crm_customer.date_of_birth %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Membership:</strong>
|
||||
<%= @crm_customer.membership %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Membership type:</strong>
|
||||
<%= @crm_customer.membership_type %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Membership authentication code:</strong>
|
||||
<%= @crm_customer.membership_authentication_code %>
|
||||
</p>
|
||||
|
||||
<%= link_to 'Edit', edit_crm_customer_path(@crm_customer) %> |
|
||||
<%= link_to 'Back', crm_customers_path %>
|
||||
1
app/views/crm/customers/show.json.jbuilder
Normal file
1
app/views/crm/customers/show.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "crm_customers/crm_customer", crm_customer: @crm_customer
|
||||
22
app/views/settings/cashier_terminals/_form.html.erb
Normal file
22
app/views/settings/cashier_terminals/_form.html.erb
Normal file
@@ -0,0 +1,22 @@
|
||||
<%= simple_form_for(@settings_cashier_terminal) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
<%= f.input :name %>
|
||||
<%= f.input :is_active %>
|
||||
<%= f.input :is_currently_login %>
|
||||
<%= f.input :auto_print_receipt %>
|
||||
<%= f.input :printer_name %>
|
||||
<%= f.input :header %>
|
||||
<%= f.input :footer %>
|
||||
<%= f.input :font %>
|
||||
<%= f.input :font_size %>
|
||||
<%= f.input :show_tax %>
|
||||
<%= f.input :show_cashier %>
|
||||
<%= f.input :show_guest_info %>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -0,0 +1,2 @@
|
||||
json.extract! settings_cashier_terminal, :id, :name, :is_active, :is_currently_login, :auto_print_receipt, :printer_name, :header, :footer, :font, :font_size, :show_tax, :show_cashier, :show_guest_info, :created_at, :updated_at
|
||||
json.url settings_cashier_terminal_url(settings_cashier_terminal, format: :json)
|
||||
6
app/views/settings/cashier_terminals/edit.html.erb
Normal file
6
app/views/settings/cashier_terminals/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing Settings Cashier Terminal</h1>
|
||||
|
||||
<%= render 'form', settings_cashier_terminal: @settings_cashier_terminal %>
|
||||
|
||||
<%= link_to 'Show', @settings_cashier_terminal %> |
|
||||
<%= link_to 'Back', settings_cashier_terminals_path %>
|
||||
49
app/views/settings/cashier_terminals/index.html.erb
Normal file
49
app/views/settings/cashier_terminals/index.html.erb
Normal file
@@ -0,0 +1,49 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>Settings Cashier Terminals</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Is active</th>
|
||||
<th>Is currently login</th>
|
||||
<th>Auto print receipt</th>
|
||||
<th>Printer name</th>
|
||||
<th>Header</th>
|
||||
<th>Footer</th>
|
||||
<th>Font</th>
|
||||
<th>Font size</th>
|
||||
<th>Show tax</th>
|
||||
<th>Show cashier</th>
|
||||
<th>Show guest info</th>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @settings_cashier_terminals.each do |settings_cashier_terminal| %>
|
||||
<tr>
|
||||
<td><%= settings_cashier_terminal.name %></td>
|
||||
<td><%= settings_cashier_terminal.is_active %></td>
|
||||
<td><%= settings_cashier_terminal.is_currently_login %></td>
|
||||
<td><%= settings_cashier_terminal.auto_print_receipt %></td>
|
||||
<td><%= settings_cashier_terminal.printer_name %></td>
|
||||
<td><%= settings_cashier_terminal.header %></td>
|
||||
<td><%= settings_cashier_terminal.footer %></td>
|
||||
<td><%= settings_cashier_terminal.font %></td>
|
||||
<td><%= settings_cashier_terminal.font_size %></td>
|
||||
<td><%= settings_cashier_terminal.show_tax %></td>
|
||||
<td><%= settings_cashier_terminal.show_cashier %></td>
|
||||
<td><%= settings_cashier_terminal.show_guest_info %></td>
|
||||
<td><%= link_to 'Show', settings_cashier_terminal %></td>
|
||||
<td><%= link_to 'Edit', edit_settings_cashier_terminal_path(settings_cashier_terminal) %></td>
|
||||
<td><%= link_to 'Destroy', settings_cashier_terminal, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Settings Cashier Terminal', new_settings_cashier_terminal_path %>
|
||||
1
app/views/settings/cashier_terminals/index.json.jbuilder
Normal file
1
app/views/settings/cashier_terminals/index.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.array! @settings_cashier_terminals, partial: 'settings_cashier_terminals/settings_cashier_terminal', as: :settings_cashier_terminal
|
||||
5
app/views/settings/cashier_terminals/new.html.erb
Normal file
5
app/views/settings/cashier_terminals/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New Settings Cashier Terminal</h1>
|
||||
|
||||
<%= render 'form', settings_cashier_terminal: @settings_cashier_terminal %>
|
||||
|
||||
<%= link_to 'Back', settings_cashier_terminals_path %>
|
||||
64
app/views/settings/cashier_terminals/show.html.erb
Normal file
64
app/views/settings/cashier_terminals/show.html.erb
Normal file
@@ -0,0 +1,64 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<strong>Name:</strong>
|
||||
<%= @settings_cashier_terminal.name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Is active:</strong>
|
||||
<%= @settings_cashier_terminal.is_active %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Is currently login:</strong>
|
||||
<%= @settings_cashier_terminal.is_currently_login %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Auto print receipt:</strong>
|
||||
<%= @settings_cashier_terminal.auto_print_receipt %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Printer name:</strong>
|
||||
<%= @settings_cashier_terminal.printer_name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Header:</strong>
|
||||
<%= @settings_cashier_terminal.header %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Footer:</strong>
|
||||
<%= @settings_cashier_terminal.footer %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Font:</strong>
|
||||
<%= @settings_cashier_terminal.font %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Font size:</strong>
|
||||
<%= @settings_cashier_terminal.font_size %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Show tax:</strong>
|
||||
<%= @settings_cashier_terminal.show_tax %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Show cashier:</strong>
|
||||
<%= @settings_cashier_terminal.show_cashier %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Show guest info:</strong>
|
||||
<%= @settings_cashier_terminal.show_guest_info %>
|
||||
</p>
|
||||
|
||||
<%= link_to 'Edit', edit_settings_cashier_terminal_path(@settings_cashier_terminal) %> |
|
||||
<%= link_to 'Back', settings_cashier_terminals_path %>
|
||||
1
app/views/settings/cashier_terminals/show.json.jbuilder
Normal file
1
app/views/settings/cashier_terminals/show.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "settings_cashier_terminals/settings_cashier_terminal", settings_cashier_terminal: @settings_cashier_terminal
|
||||
13
app/views/settings/lookups/_form.html.erb
Normal file
13
app/views/settings/lookups/_form.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<%= simple_form_for(@settings_lookup) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
<%= f.input :lookup_type %>
|
||||
<%= f.input :name %>
|
||||
<%= f.input :value %>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -0,0 +1,2 @@
|
||||
json.extract! settings_lookup, :id, :lookup_type, :name, :value, :created_at, :updated_at
|
||||
json.url settings_lookup_url(settings_lookup, format: :json)
|
||||
6
app/views/settings/lookups/edit.html.erb
Normal file
6
app/views/settings/lookups/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing Settings Lookup</h1>
|
||||
|
||||
<%= render 'form', settings_lookup: @settings_lookup %>
|
||||
|
||||
<%= link_to 'Show', @settings_lookup %> |
|
||||
<%= link_to 'Back', settings_lookups_path %>
|
||||
31
app/views/settings/lookups/index.html.erb
Normal file
31
app/views/settings/lookups/index.html.erb
Normal file
@@ -0,0 +1,31 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>Settings Lookups</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Lookup type</th>
|
||||
<th>Name</th>
|
||||
<th>Value</th>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @settings_lookups.each do |settings_lookup| %>
|
||||
<tr>
|
||||
<td><%= settings_lookup.lookup_type %></td>
|
||||
<td><%= settings_lookup.name %></td>
|
||||
<td><%= settings_lookup.value %></td>
|
||||
<td><%= link_to 'Show', settings_lookup %></td>
|
||||
<td><%= link_to 'Edit', edit_settings_lookup_path(settings_lookup) %></td>
|
||||
<td><%= link_to 'Destroy', settings_lookup, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Settings Lookup', new_settings_lookup_path %>
|
||||
1
app/views/settings/lookups/index.json.jbuilder
Normal file
1
app/views/settings/lookups/index.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.array! @settings_lookups, partial: 'settings_lookups/settings_lookup', as: :settings_lookup
|
||||
5
app/views/settings/lookups/new.html.erb
Normal file
5
app/views/settings/lookups/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New Settings Lookup</h1>
|
||||
|
||||
<%= render 'form', settings_lookup: @settings_lookup %>
|
||||
|
||||
<%= link_to 'Back', settings_lookups_path %>
|
||||
19
app/views/settings/lookups/show.html.erb
Normal file
19
app/views/settings/lookups/show.html.erb
Normal file
@@ -0,0 +1,19 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<strong>Lookup type:</strong>
|
||||
<%= @settings_lookup.lookup_type %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Name:</strong>
|
||||
<%= @settings_lookup.name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Value:</strong>
|
||||
<%= @settings_lookup.value %>
|
||||
</p>
|
||||
|
||||
<%= link_to 'Edit', edit_settings_lookup_path(@settings_lookup) %> |
|
||||
<%= link_to 'Back', settings_lookups_path %>
|
||||
1
app/views/settings/lookups/show.json.jbuilder
Normal file
1
app/views/settings/lookups/show.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "settings_lookups/settings_lookup", settings_lookup: @settings_lookup
|
||||
17
app/views/settings/membership_settings/_form.html.erb
Normal file
17
app/views/settings/membership_settings/_form.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<%= simple_form_for(@settings_membership_setting) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
<%= f.input :membership_type %>
|
||||
<%= f.input :is_active %>
|
||||
<%= f.input :gateway_communication_type %>
|
||||
<%= f.input :gateway_url %>
|
||||
<%= f.input :auth_token %>
|
||||
<%= f.association :merchant_account %>
|
||||
<%= f.input :created_by %>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -0,0 +1,2 @@
|
||||
json.extract! settings_membership_setting, :id, :membership_type, :is_active, :gateway_communication_type, :gateway_url, :auth_token, :merchant_account_id, :created_by, :created_at, :updated_at
|
||||
json.url settings_membership_setting_url(settings_membership_setting, format: :json)
|
||||
6
app/views/settings/membership_settings/edit.html.erb
Normal file
6
app/views/settings/membership_settings/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing Settings Membership Setting</h1>
|
||||
|
||||
<%= render 'form', settings_membership_setting: @settings_membership_setting %>
|
||||
|
||||
<%= link_to 'Show', @settings_membership_setting %> |
|
||||
<%= link_to 'Back', settings_membership_settings_path %>
|
||||
39
app/views/settings/membership_settings/index.html.erb
Normal file
39
app/views/settings/membership_settings/index.html.erb
Normal file
@@ -0,0 +1,39 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>Settings Membership Settings</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Membership type</th>
|
||||
<th>Is active</th>
|
||||
<th>Gateway communication type</th>
|
||||
<th>Gateway url</th>
|
||||
<th>Auth token</th>
|
||||
<th>Merchant account</th>
|
||||
<th>Created by</th>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @settings_membership_settings.each do |settings_membership_setting| %>
|
||||
<tr>
|
||||
<td><%= settings_membership_setting.membership_type %></td>
|
||||
<td><%= settings_membership_setting.is_active %></td>
|
||||
<td><%= settings_membership_setting.gateway_communication_type %></td>
|
||||
<td><%= settings_membership_setting.gateway_url %></td>
|
||||
<td><%= settings_membership_setting.auth_token %></td>
|
||||
<td><%= settings_membership_setting.merchant_account %></td>
|
||||
<td><%= settings_membership_setting.created_by %></td>
|
||||
<td><%= link_to 'Show', settings_membership_setting %></td>
|
||||
<td><%= link_to 'Edit', edit_settings_membership_setting_path(settings_membership_setting) %></td>
|
||||
<td><%= link_to 'Destroy', settings_membership_setting, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Settings Membership Setting', new_settings_membership_setting_path %>
|
||||
@@ -0,0 +1 @@
|
||||
json.array! @settings_membership_settings, partial: 'settings_membership_settings/settings_membership_setting', as: :settings_membership_setting
|
||||
5
app/views/settings/membership_settings/new.html.erb
Normal file
5
app/views/settings/membership_settings/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New Settings Membership Setting</h1>
|
||||
|
||||
<%= render 'form', settings_membership_setting: @settings_membership_setting %>
|
||||
|
||||
<%= link_to 'Back', settings_membership_settings_path %>
|
||||
39
app/views/settings/membership_settings/show.html.erb
Normal file
39
app/views/settings/membership_settings/show.html.erb
Normal file
@@ -0,0 +1,39 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<strong>Membership type:</strong>
|
||||
<%= @settings_membership_setting.membership_type %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Is active:</strong>
|
||||
<%= @settings_membership_setting.is_active %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Gateway communication type:</strong>
|
||||
<%= @settings_membership_setting.gateway_communication_type %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Gateway url:</strong>
|
||||
<%= @settings_membership_setting.gateway_url %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Auth token:</strong>
|
||||
<%= @settings_membership_setting.auth_token %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Merchant account:</strong>
|
||||
<%= @settings_membership_setting.merchant_account %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Created by:</strong>
|
||||
<%= @settings_membership_setting.created_by %>
|
||||
</p>
|
||||
|
||||
<%= link_to 'Edit', edit_settings_membership_setting_path(@settings_membership_setting) %> |
|
||||
<%= link_to 'Back', settings_membership_settings_path %>
|
||||
@@ -0,0 +1 @@
|
||||
json.partial! "settings_membership_settings/settings_membership_setting", settings_membership_setting: @settings_membership_setting
|
||||
13
app/views/settings/menu_item_attributes/_form.html.erb
Normal file
13
app/views/settings/menu_item_attributes/_form.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<%= simple_form_for(@settings_menu_item_attribute) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
<%= f.input :attribute_type %>
|
||||
<%= f.input :name %>
|
||||
<%= f.input :value %>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -0,0 +1,2 @@
|
||||
json.extract! settings_menu_item_attribute, :id, :attribute_type, :name, :value, :created_at, :updated_at
|
||||
json.url settings_menu_item_attribute_url(settings_menu_item_attribute, format: :json)
|
||||
6
app/views/settings/menu_item_attributes/edit.html.erb
Normal file
6
app/views/settings/menu_item_attributes/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing Settings Menu Item Attribute</h1>
|
||||
|
||||
<%= render 'form', settings_menu_item_attribute: @settings_menu_item_attribute %>
|
||||
|
||||
<%= link_to 'Show', @settings_menu_item_attribute %> |
|
||||
<%= link_to 'Back', settings_menu_item_attributes_path %>
|
||||
31
app/views/settings/menu_item_attributes/index.html.erb
Normal file
31
app/views/settings/menu_item_attributes/index.html.erb
Normal file
@@ -0,0 +1,31 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>Settings Menu Item Attributes</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Attribute type</th>
|
||||
<th>Name</th>
|
||||
<th>Value</th>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @settings_menu_item_attributes.each do |settings_menu_item_attribute| %>
|
||||
<tr>
|
||||
<td><%= settings_menu_item_attribute.attribute_type %></td>
|
||||
<td><%= settings_menu_item_attribute.name %></td>
|
||||
<td><%= settings_menu_item_attribute.value %></td>
|
||||
<td><%= link_to 'Show', settings_menu_item_attribute %></td>
|
||||
<td><%= link_to 'Edit', edit_settings_menu_item_attribute_path(settings_menu_item_attribute) %></td>
|
||||
<td><%= link_to 'Destroy', settings_menu_item_attribute, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Settings Menu Item Attribute', new_settings_menu_item_attribute_path %>
|
||||
@@ -0,0 +1 @@
|
||||
json.array! @settings_menu_item_attributes, partial: 'settings_menu_item_attributes/settings_menu_item_attribute', as: :settings_menu_item_attribute
|
||||
5
app/views/settings/menu_item_attributes/new.html.erb
Normal file
5
app/views/settings/menu_item_attributes/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New Settings Menu Item Attribute</h1>
|
||||
|
||||
<%= render 'form', settings_menu_item_attribute: @settings_menu_item_attribute %>
|
||||
|
||||
<%= link_to 'Back', settings_menu_item_attributes_path %>
|
||||
19
app/views/settings/menu_item_attributes/show.html.erb
Normal file
19
app/views/settings/menu_item_attributes/show.html.erb
Normal file
@@ -0,0 +1,19 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<strong>Attribute type:</strong>
|
||||
<%= @settings_menu_item_attribute.attribute_type %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Name:</strong>
|
||||
<%= @settings_menu_item_attribute.name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Value:</strong>
|
||||
<%= @settings_menu_item_attribute.value %>
|
||||
</p>
|
||||
|
||||
<%= link_to 'Edit', edit_settings_menu_item_attribute_path(@settings_menu_item_attribute) %> |
|
||||
<%= link_to 'Back', settings_menu_item_attributes_path %>
|
||||
@@ -0,0 +1 @@
|
||||
json.partial! "settings_menu_item_attributes/settings_menu_item_attribute", settings_menu_item_attribute: @settings_menu_item_attribute
|
||||
12
app/views/settings/menu_item_options/_form.html.erb
Normal file
12
app/views/settings/menu_item_options/_form.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<%= simple_form_for(@settings_menu_item_option) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
<%= f.input :name %>
|
||||
<%= f.input :value %>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -0,0 +1,2 @@
|
||||
json.extract! settings_menu_item_option, :id, :name, :value, :created_at, :updated_at
|
||||
json.url settings_menu_item_option_url(settings_menu_item_option, format: :json)
|
||||
6
app/views/settings/menu_item_options/edit.html.erb
Normal file
6
app/views/settings/menu_item_options/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing Settings Menu Item Option</h1>
|
||||
|
||||
<%= render 'form', settings_menu_item_option: @settings_menu_item_option %>
|
||||
|
||||
<%= link_to 'Show', @settings_menu_item_option %> |
|
||||
<%= link_to 'Back', settings_menu_item_options_path %>
|
||||
29
app/views/settings/menu_item_options/index.html.erb
Normal file
29
app/views/settings/menu_item_options/index.html.erb
Normal file
@@ -0,0 +1,29 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>Settings Menu Item Options</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Value</th>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @settings_menu_item_options.each do |settings_menu_item_option| %>
|
||||
<tr>
|
||||
<td><%= settings_menu_item_option.name %></td>
|
||||
<td><%= settings_menu_item_option.value %></td>
|
||||
<td><%= link_to 'Show', settings_menu_item_option %></td>
|
||||
<td><%= link_to 'Edit', edit_settings_menu_item_option_path(settings_menu_item_option) %></td>
|
||||
<td><%= link_to 'Destroy', settings_menu_item_option, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Settings Menu Item Option', new_settings_menu_item_option_path %>
|
||||
1
app/views/settings/menu_item_options/index.json.jbuilder
Normal file
1
app/views/settings/menu_item_options/index.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.array! @settings_menu_item_options, partial: 'settings_menu_item_options/settings_menu_item_option', as: :settings_menu_item_option
|
||||
5
app/views/settings/menu_item_options/new.html.erb
Normal file
5
app/views/settings/menu_item_options/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New Settings Menu Item Option</h1>
|
||||
|
||||
<%= render 'form', settings_menu_item_option: @settings_menu_item_option %>
|
||||
|
||||
<%= link_to 'Back', settings_menu_item_options_path %>
|
||||
14
app/views/settings/menu_item_options/show.html.erb
Normal file
14
app/views/settings/menu_item_options/show.html.erb
Normal file
@@ -0,0 +1,14 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<strong>Name:</strong>
|
||||
<%= @settings_menu_item_option.name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Value:</strong>
|
||||
<%= @settings_menu_item_option.value %>
|
||||
</p>
|
||||
|
||||
<%= link_to 'Edit', edit_settings_menu_item_option_path(@settings_menu_item_option) %> |
|
||||
<%= link_to 'Back', settings_menu_item_options_path %>
|
||||
1
app/views/settings/menu_item_options/show.json.jbuilder
Normal file
1
app/views/settings/menu_item_options/show.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "settings_menu_item_options/settings_menu_item_option", settings_menu_item_option: @settings_menu_item_option
|
||||
16
app/views/settings/payment_method_settings/_form.html.erb
Normal file
16
app/views/settings/payment_method_settings/_form.html.erb
Normal file
@@ -0,0 +1,16 @@
|
||||
<%= simple_form_for(@settings_payment_method_setting) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
<%= f.input :payment_method %>
|
||||
<%= f.input :is_active %>
|
||||
<%= f.input :gateway_communication_type %>
|
||||
<%= f.input :gateway_url %>
|
||||
<%= f.input :auth_token %>
|
||||
<%= f.association :merchant_account %>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -0,0 +1,2 @@
|
||||
json.extract! settings_payment_method_setting, :id, :payment_method, :is_active, :gateway_communication_type, :gateway_url, :auth_token, :merchant_account_id, :created_at, :updated_at
|
||||
json.url settings_payment_method_setting_url(settings_payment_method_setting, format: :json)
|
||||
6
app/views/settings/payment_method_settings/edit.html.erb
Normal file
6
app/views/settings/payment_method_settings/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing Settings Payment Method Setting</h1>
|
||||
|
||||
<%= render 'form', settings_payment_method_setting: @settings_payment_method_setting %>
|
||||
|
||||
<%= link_to 'Show', @settings_payment_method_setting %> |
|
||||
<%= link_to 'Back', settings_payment_method_settings_path %>
|
||||
37
app/views/settings/payment_method_settings/index.html.erb
Normal file
37
app/views/settings/payment_method_settings/index.html.erb
Normal file
@@ -0,0 +1,37 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>Settings Payment Method Settings</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Payment method</th>
|
||||
<th>Is active</th>
|
||||
<th>Gateway communication type</th>
|
||||
<th>Gateway url</th>
|
||||
<th>Auth token</th>
|
||||
<th>Merchant account</th>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @settings_payment_method_settings.each do |settings_payment_method_setting| %>
|
||||
<tr>
|
||||
<td><%= settings_payment_method_setting.payment_method %></td>
|
||||
<td><%= settings_payment_method_setting.is_active %></td>
|
||||
<td><%= settings_payment_method_setting.gateway_communication_type %></td>
|
||||
<td><%= settings_payment_method_setting.gateway_url %></td>
|
||||
<td><%= settings_payment_method_setting.auth_token %></td>
|
||||
<td><%= settings_payment_method_setting.merchant_account %></td>
|
||||
<td><%= link_to 'Show', settings_payment_method_setting %></td>
|
||||
<td><%= link_to 'Edit', edit_settings_payment_method_setting_path(settings_payment_method_setting) %></td>
|
||||
<td><%= link_to 'Destroy', settings_payment_method_setting, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Settings Payment Method Setting', new_settings_payment_method_setting_path %>
|
||||
@@ -0,0 +1 @@
|
||||
json.array! @settings_payment_method_settings, partial: 'settings_payment_method_settings/settings_payment_method_setting', as: :settings_payment_method_setting
|
||||
5
app/views/settings/payment_method_settings/new.html.erb
Normal file
5
app/views/settings/payment_method_settings/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New Settings Payment Method Setting</h1>
|
||||
|
||||
<%= render 'form', settings_payment_method_setting: @settings_payment_method_setting %>
|
||||
|
||||
<%= link_to 'Back', settings_payment_method_settings_path %>
|
||||
34
app/views/settings/payment_method_settings/show.html.erb
Normal file
34
app/views/settings/payment_method_settings/show.html.erb
Normal file
@@ -0,0 +1,34 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<strong>Payment method:</strong>
|
||||
<%= @settings_payment_method_setting.payment_method %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Is active:</strong>
|
||||
<%= @settings_payment_method_setting.is_active %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Gateway communication type:</strong>
|
||||
<%= @settings_payment_method_setting.gateway_communication_type %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Gateway url:</strong>
|
||||
<%= @settings_payment_method_setting.gateway_url %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Auth token:</strong>
|
||||
<%= @settings_payment_method_setting.auth_token %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Merchant account:</strong>
|
||||
<%= @settings_payment_method_setting.merchant_account %>
|
||||
</p>
|
||||
|
||||
<%= link_to 'Edit', edit_settings_payment_method_setting_path(@settings_payment_method_setting) %> |
|
||||
<%= link_to 'Back', settings_payment_method_settings_path %>
|
||||
@@ -0,0 +1 @@
|
||||
json.partial! "settings_payment_method_settings/settings_payment_method_setting", settings_payment_method_setting: @settings_payment_method_setting
|
||||
13
app/views/settings/zones/_form.html.erb
Normal file
13
app/views/settings/zones/_form.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<%= simple_form_for(@settings_zone) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
<%= f.input :name %>
|
||||
<%= f.input :is_active %>
|
||||
<%= f.input :created_by %>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
2
app/views/settings/zones/_settings_zone.json.jbuilder
Normal file
2
app/views/settings/zones/_settings_zone.json.jbuilder
Normal file
@@ -0,0 +1,2 @@
|
||||
json.extract! settings_zone, :id, :name, :is_active, :created_by, :created_at, :updated_at
|
||||
json.url settings_zone_url(settings_zone, format: :json)
|
||||
6
app/views/settings/zones/edit.html.erb
Normal file
6
app/views/settings/zones/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing Settings Zone</h1>
|
||||
|
||||
<%= render 'form', settings_zone: @settings_zone %>
|
||||
|
||||
<%= link_to 'Show', @settings_zone %> |
|
||||
<%= link_to 'Back', settings_zones_path %>
|
||||
31
app/views/settings/zones/index.html.erb
Normal file
31
app/views/settings/zones/index.html.erb
Normal file
@@ -0,0 +1,31 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>Settings Zones</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Is active</th>
|
||||
<th>Created by</th>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @settings_zones.each do |settings_zone| %>
|
||||
<tr>
|
||||
<td><%= settings_zone.name %></td>
|
||||
<td><%= settings_zone.is_active %></td>
|
||||
<td><%= settings_zone.created_by %></td>
|
||||
<td><%= link_to 'Show', settings_zone %></td>
|
||||
<td><%= link_to 'Edit', edit_settings_zone_path(settings_zone) %></td>
|
||||
<td><%= link_to 'Destroy', settings_zone, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Settings Zone', new_settings_zone_path %>
|
||||
1
app/views/settings/zones/index.json.jbuilder
Normal file
1
app/views/settings/zones/index.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.array! @settings_zones, partial: 'settings_zones/settings_zone', as: :settings_zone
|
||||
5
app/views/settings/zones/new.html.erb
Normal file
5
app/views/settings/zones/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New Settings Zone</h1>
|
||||
|
||||
<%= render 'form', settings_zone: @settings_zone %>
|
||||
|
||||
<%= link_to 'Back', settings_zones_path %>
|
||||
19
app/views/settings/zones/show.html.erb
Normal file
19
app/views/settings/zones/show.html.erb
Normal file
@@ -0,0 +1,19 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<strong>Name:</strong>
|
||||
<%= @settings_zone.name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Is active:</strong>
|
||||
<%= @settings_zone.is_active %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Created by:</strong>
|
||||
<%= @settings_zone.created_by %>
|
||||
</p>
|
||||
|
||||
<%= link_to 'Edit', edit_settings_zone_path(@settings_zone) %> |
|
||||
<%= link_to 'Back', settings_zones_path %>
|
||||
1
app/views/settings/zones/show.json.jbuilder
Normal file
1
app/views/settings/zones/show.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "settings_zones/settings_zone", settings_zone: @settings_zone
|
||||
Reference in New Issue
Block a user