Added partial customers/search & fixed formatting

This commit is contained in:
2018-09-19 09:45:36 -04:00
parent f99ef648b3
commit 558e2359f7
3 changed files with 3 additions and 14 deletions

View File

@@ -1,8 +1,6 @@
<br/>
<%= form_tag(customers_path, :method => "get", id: "search-form") do %> <%= form_tag(customers_path, :method => "get", id: "search-form") do %>
<%= text_field_tag :search, params[:search], placeholder: "Search Customers" %> <%= text_field_tag :search, params[:search], placeholder: "Search Customers" %>
<%= submit_tag "Search" %> <%= submit_tag "Search" %>
<% end %> <% end %>
<%= button_to "New Customer", new_customer_path, method: :get%> <%= button_to "New Customer", new_customer_path, method: :get%>
<%= button_to "Sync", qbo_sync_path, method: :get%> <%= button_to "Sync", qbo_sync_path, method: :get%>
<br/>

View File

@@ -1,12 +1,4 @@
<h1>Customers</h1> <h2>Customers <span style="float:right"> <%= render :partial => 'customers/search' %> </span> </h2>
<br/>
<%= form_tag(customers_path, :method => "get", id: "search-form") do %>
<%= text_field_tag :search, params[:search], placeholder: "Search Customers" %>
<%= submit_tag "Search" %>
<% end %>
<%= button_to "New Customer", new_customer_path, method: :get%>
<%= button_to "Sync", qbo_sync_path, method: :get%>
<br/>
<% if @customers.present? %> <% if @customers.present? %>
<br/> <br/>
<% @customers.each do |c| %> <% @customers.each do |c| %>

View File

@@ -1,16 +1,15 @@
<div id="content"> <div id="content">
<h2>Customer #<%= @customer.id %></h2> <h2>Customer #<%= @customer.id %> - <%= @customer.name %> <span style="float:right"> <%= render :partial => 'customers/search' %> </span> </h2>
<br/> <br/>
<div class="subject"> <div class="subject">
<div><h3><%= @customer.name %></h3></div> <div><h3>Details:</h3></div>
</div> </div>
<div class="attributes"> <div class="attributes">
<div class="splitcontent"> <div class="splitcontent">
<div class="splitcontentleft"> <div class="splitcontentleft">
<h4>Details:</h4>
<%= render :partial => 'customers/details', locals: {customer: @customer} %> <%= render :partial => 'customers/details', locals: {customer: @customer} %>
</div> </div>
<div class="splitcontentleft"> <div class="splitcontentleft">