MorningPeak/app/views/client_bills/show.html.slim
2015-06-18 01:56:36 +02:00

29 lines
695 B
Plaintext

p#notice = notice
p
strong Title:
= @bill.title
p
strong Description:
= @bill.description
p
strong Amount:
= @bill.amount
p
strong Paid:
= @bill.paid
p
strong Emission date:
= @bill.emission_date
p
strong Due date:
- if @bill.due_date < Date.today
- if @bill.paid
.bg-success = distance_of_time_in_words_to_now(@bill.due_date) + " - " + @bill.due_date.to_s(:long)
- else
.bg-danger = distance_of_time_in_words_to_now(@bill.due_date) + " - " + @bill.due_date.to_s(:long)
- else
.bg-info = distance_of_time_in_words_to_now(@bill.due_date) + " - " + @bill.due_date.to_s(:long)
= link_to 'Back', client_bills_path, class: 'btn btn-sm btn-default'