Rework user-interface for editing recurring tasks
This commit is contained in:
parent
a8a434ef7b
commit
a00e7c94be
7 changed files with 79 additions and 58 deletions
|
|
@ -10,7 +10,7 @@
|
|||
%dd= simple_format(@task.description)
|
||||
- if @task.due_date.present?
|
||||
%dt= heading_helper Task, :due_date
|
||||
%dd
|
||||
%dd
|
||||
= format_date(@task.due_date)
|
||||
- if @task.periodic?
|
||||
%i.icon-repeat{title: t('tasks.repeated')}
|
||||
|
|
@ -30,8 +30,14 @@
|
|||
- unless @task.done?
|
||||
= link_to t('.mark_done'), set_done_task_path(@task), method: :post, class: 'btn'
|
||||
= link_to t('ui.edit'), edit_task_path(@task), class: 'btn'
|
||||
= link_to t('ui.delete'), task_path(@task), :method => :delete, :data => {:confirm => t('.confirm_delete_single')},
|
||||
class: 'btn btn-danger'
|
||||
- if @task.periodic?
|
||||
= link_to t('.delete_group'), task_path(@task, periodic: true), method: :delete,
|
||||
:data => {confirm: t('.confirm_delete_group')}, class: 'btn btn-danger'
|
||||
= link_to edit_task_path(@task, periodic: true), class: 'btn' do
|
||||
%i.icon.icon-repeat
|
||||
= t('.edit_group')
|
||||
= link_to t('ui.delete'), task_path(@task), method: :delete, class: 'btn btn-danger',
|
||||
data: {confirm: @task.periodic? ? t('.confirm_delete_single_from_group') : t('.confirm_delete_single')}
|
||||
- if @task.periodic?
|
||||
= link_to task_path(@task, periodic: true), method: :delete, class: 'btn btn-danger',
|
||||
data: {confirm: t('.confirm_delete_group')} do
|
||||
%i.icon.icon-repeat
|
||||
= t('.delete_group')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue