diff --git a/app/views/customer_appointments/_list.html.erb b/app/views/customer_appointments/_list.html.erb new file mode 100644 index 0000000..6bb1726 --- /dev/null +++ b/app/views/customer_appointments/_list.html.erb @@ -0,0 +1,73 @@ +
| <%= l(:label_customer) %> | + +<%= l(:label_vehicle) %> | + +<%= l(:label_appointment) %> | + +<%= l(:label_user) %> | + +<%= l(:label_date) %> | + +<%= l(:label_status) %> | + +
|---|---|---|---|---|---|
| + +<%= link_to appointment.customer unless appointment.customer.nil? %> + + | + ++ +<%= link_to appointment.vehicle unless appointment.vehicle.nil? %> + + | + ++ +<%= link_to appointment %> + + | + ++ +<%= link_to appointment.user unless appointment.user.nil? %> + + | + ++ +<%= format_date( + appointment.date + ) %> + + | + ++ +<%= appointment.status %> + + | + +
| <%= l(:label_appointment) %> | + +<%= l(:label_user) %> | + +<%= l(:label_date) %> | + +<%= l(:label_status) %> | + +
|---|---|---|---|
| + +<%= link_to appointment %> + + | + ++ +<%= link_to appointment.user unless appointment.user.nil? %> + + | + ++ +<%= format_date( + appointment.date + ) %> + + | + ++ +<%= appointment.status %> + + | + +
| <%= l(:label_customer) %> | - -<%= l(:label_vehicle) %> | - -<%= l(:label_appointment) %> | - -<%= l(:label_user) %> | - -<%= l(:label_date) %> | - -<%= l(:label_status) %> | - -
|---|---|---|---|---|---|
| - -<%= link_to appointment.customer unless appointment.customer.nil? %> - - | - -- -<%= link_to appointment.vehicle unless appointment.vehicle.nil? %> - - | - -- -<%= link_to appointment %> - - | - -- -<%= link_to appointment.user unless appointment.user.nil? %> - - | - -- -<%= format_date( - appointment.date - ) %> - - | - -- -<%= appointment.status %> - - | - -