|
@ -18,7 +18,7 @@ |
|
|
- @user_time_entries.each do |entry| |
|
|
- @user_time_entries.each do |entry| |
|
|
-# data: {start_date: ..} gets transformed to data-start-date instead of data-start_date, we don't want this |
|
|
-# data: {start_date: ..} gets transformed to data-start-date instead of data-start_date, we don't want this |
|
|
%tr{data: {id: entry.id, description: entry.description, duration: entry.duration_in_hours}, |
|
|
%tr{data: {id: entry.id, description: entry.description, duration: entry.duration_in_hours}, |
|
|
"data-start_date": entry.start_date.to_date.to_formatted_s(:rfc822)} |
|
|
"data-start_date" => entry.start_date.to_date.to_formatted_s(:rfc822)} |
|
|
%td= entry.start_date.to_date.to_formatted_s(:rfc822) |
|
|
%td= entry.start_date.to_date.to_formatted_s(:rfc822) |
|
|
%td= entry.duration_in_hours |
|
|
%td= entry.duration_in_hours |
|
|
%td= entry.type |
|
|
%td= entry.type |
|
@ -29,19 +29,19 @@ |
|
|
|
|
|
|
|
|
= link_to 'Add Time Entry', new_time_entry_path, class: 'btn btn-primary' |
|
|
= link_to 'Add Time Entry', new_time_entry_path, class: 'btn btn-primary' |
|
|
|
|
|
|
|
|
.modal#confirmation{role: 'dialog', "aria-labelledby": 'confirmation_title', "aria-hidden": 'true', tabindex: -1} |
|
|
.modal#confirmation(role="dialog" aria-labelledby="confirmation_title" aria-hidden="true" tabindex="-1") |
|
|
.modal-dialog |
|
|
.modal-dialog |
|
|
.modal-content |
|
|
.modal-content |
|
|
.modal-header |
|
|
.modal-header |
|
|
%button.close{"data-dismiss": 'modal', "aria-hidden": 'true'} × |
|
|
%button.close(data-dismiss="modal" aria-hidden="true") × |
|
|
%h4#confirmation_title Are you sure you want to delete? |
|
|
%h4#confirmation_title Are you sure you want to delete? |
|
|
.modal-body |
|
|
.modal-body |
|
|
#work_entry_start_date Start Date |
|
|
#work_entry_start_date Start Date |
|
|
#work_entry_duration Duration |
|
|
#work_entry_duration Duration |
|
|
#work_entry_description Description |
|
|
#work_entry_description Description |
|
|
.modal-footer |
|
|
.modal-footer |
|
|
%button.btn.btn-default{"data-dismiss": 'modal', "aria-hidden": 'true'} Cancel |
|
|
%button.btn.btn-default(data-dismiss="modal" aria-hidden="true") Cancel |
|
|
%button.btn.btn-danger#confirmation_delete{"data-url": "api/v1/time_entries/"} Delete |
|
|
%button.btn.btn-danger#confirmation_delete(data-url="api/v1/time_entries/") Delete |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|