diff --git a/app/views/customers/_details.html.erb b/app/views/customers/_details.html.erb index 41a8738..5f76281 100644 --- a/app/views/customers/_details.html.erb +++ b/app/views/customers/_details.html.erb @@ -37,8 +37,11 @@ - <%=t(:field_notes)%> - +

<%=t(:field_notes)%> + + + +
           <%= customer.notes %>
         
diff --git a/app/views/customers/show.html.erb b/app/views/customers/show.html.erb index df16d65..c4ace1d 100644 --- a/app/views/customers/show.html.erb +++ b/app/views/customers/show.html.erb @@ -11,7 +11,7 @@
-

<%=t(:label_customer)%>:

+

<%=t(:field_customer)%>:

<%= render :partial => 'customers/details', locals: {customer: @customer} %>
diff --git a/app/views/invoices/_list.html.erb b/app/views/invoices/_list.html.erb index 6b58174..775514c 100644 --- a/app/views/invoices/_list.html.erb +++ b/app/views/invoices/_list.html.erb @@ -2,12 +2,14 @@ <%= form_with(url: invoice_path, method: :get) do |form| %> -
- <%= check_box_tag "select-all-invoices", "1", false, id: "select-all-invoices" %> - <%= label_tag "select-all-invoices", t(:label_select_all) %> -
+ <% if @customer.invoices.count > 1 %> +
+ <%= check_box_tag "select-all-invoices", "1", false, id: "select-all-invoices" %> + <%= label_tag "select-all-invoices", t(:label_select_all) %> +
-
+
+ <% end %> <% @customer.invoices.order(id: :desc).each do |invoice| %>
@@ -16,7 +18,9 @@
<% end %> - <%= form.submit t(:button_bulk_pdf) %> + <% if @customer.invoices.count > 1 %> + <%= form.submit t(:button_bulk_pdf) %> + <% end %> <% end %> <% else %>