% if @invoices.size == 0 && @invoice_templates.size == 0 && @receipts.size == 0 && @receipt_templates.size == 0 && @contacts.size == 0 %>
<%= t('attributes.invoice.contact_name') %> | <%= t('attributes.invoice.amount') %> | Stav |
---|---|---|
<%= invoice.contact_name %> | <%= invoice.amount %> | <% if invoice.paid %> <%= link_to 'Zaplaceno', invoice_path(invoice), class: 'btn-small btn-success btn-no-link' %> <% elsif invoice.due_date >= Date.today and invoice.issued? %> <% if invoice.sent? %> <%= link_to 'Posláno', invoice_path(invoice), class: 'btn-small btn-info btn-no-link' %> <% else %> <%= link_to 'Neposláno', invoice_path(invoice), class: 'btn-small btn-warning btn-no-link' %> <% end %> <% else %> <%= link_to 'Nezaplaceno', invoice_path(invoice), class: 'btn-small btn-danger btn-no-link' %> <% end %> |
<%= t('attributes.receipt.contact_name') %> | <%= t('attributes.receipt.amount') %> |
---|---|
<%= receipt.contact_name %> | <%= receipt.amount %> |
<%= t('attributes.invoice_template.name') %> | <%= t('attributes.invoice_template.contact_name') %> | <%= t('attributes.invoice_template.amount') %> |
---|---|---|
<%= link_to invoice do %><%= invoice.name %><% end %> | <%= invoice.contact_name %> | <%= invoice.amount %> |
<%= t('attributes.receipt_template.name') %> | <%= t('attributes.receipt_template.contact_name') %> | <%= t('attributes.receipt_template.amount') %> |
---|---|---|
<%= link_to receipt do %><%= receipt.name %><% end %> | <%= receipt.contact_name %> | <%= receipt.amount %> |
<%= t('attributes.contact.name') %> | <%= t('attributes.contact.ic') %> | <%= t('attributes.contact.email') %> |
---|---|---|
<%= link_to contact do %><%= contact.name %><% end %> | <%= contact.ic %> | <%= contact.email %> |