update lookup

This commit is contained in:
Aung Myo
2017-07-31 17:33:06 +06:30
parent bc5a7d01f7
commit b3c77fc28c
6 changed files with 32 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
<%= simple_form_for(@settings_lookup) do |f| %>
<%= simple_form_for([:settings,@settings_lookup]) do |f| %>
<%= f.error_notification %>
<div class="form-inputs">

View File

@@ -2,5 +2,5 @@
<%= render 'form', settings_lookup: @settings_lookup %>
<%= link_to 'Show', @settings_lookup %> |
<%= link_to 'Show', settings_lookup_path(@settings_lookup) %> |
<%= link_to 'Back', settings_lookups_path %>

View File

@@ -1,14 +1,23 @@
<p id="notice"><%= notice %></p>
<h1>Settings Lookups</h1>
<div class="page-header">
<ul class="breadcrumb">
<li><a href="<%= %>">Home</a></li>
<li>Account</li>
<span style="float: right">
<%= link_to t('.new', :default => t("helpers.links.new")),new_settings_lookup_path,:class => 'btn btn-primary btn-sm' %>
</span>
</ul>
</div>
<table>
<thead>
<br>
<div class="card">
<table class="table table-striped">
<thead>
<tr>
<th>Lookup type</th>
<th>Name</th>
<th>Value</th>
<th colspan="3"></th>
<th colspan="">Action</th>
</tr>
</thead>
@@ -24,8 +33,6 @@
</tr>
<% end %>
</tbody>
</table>
</table>
</div>
<br>
<%= link_to 'New Settings Lookup', new_settings_lookup_path %>