Cleaned up QBO index

This commit is contained in:
2016-01-09 23:23:51 -05:00
parent fa2a6a2021
commit 8f86220fef

View File

@@ -12,25 +12,25 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
<body> <body>
<h1> Redmine Quickbooks</h1> <h1> Redmine Quickbooks</h1>
<p>Customer Count: <%= @qbo_customer_count %></p>
<p>Item Count: <%= @qbo_item_count %></p>
<p>Employee Count: <%= @qbo_employee_count %></P>
<%= form_for @qbo do |f|%> <%= form_for @qbo do |f|%>
<div> <div>
<%= f.label "Customers" %> <%= f.label "Customer Count:"+@qbo_customer_count.to_s%>
<br/> <br/>
<%= f.select :qbo_customer_id, QboCustomers.all.pluck(:name, :id), :selected => @selected_customer, include_blank: true %> <%= f.select :qbo_customer_id, QboCustomers.all.pluck(:name, :id), :selected => @selected_customer, include_blank: true %>
</div> </div>
<br/>
<div> <div>
<%= f.label "Items" %> <%= f.label "Item Count: "+@qbo_item_count.to_s %>
<br/> <br/>
<%= f.select :qbo_item_id, QboItem.all.pluck(:name, :id).reverse, :selected => @selected_item, include_blank: true %> <%= f.select :qbo_item_id, QboItem.all.pluck(:name, :id).reverse, :selected => @selected_item, include_blank: true %>
</div> </div>
<br/>
<div> <div>
<%= f.label "Employees" %> <%= f.label "Employee Count: "+@qbo_employee_count.to_s %>
<br/> <br/>
<%= f.select :qbo_employee_id, QboEmployee.all.pluck(:name, :id), :selected => @selected_employee, include_blank: true %> <%= f.select :qbo_employee_id, QboEmployee.all.pluck(:name, :id), :selected => @selected_employee, include_blank: true %>
</div> </div>
@@ -40,3 +40,4 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
<br/> <br/>
<%= link_to "Sync", qbo_sync_path %> <%= link_to "Sync", qbo_sync_path %>
</body> </body>
t