i18n simple_form move of tasks
This commit is contained in:
parent
762292ef8e
commit
552af7925d
2 changed files with 15 additions and 15 deletions
|
|
@ -3,22 +3,22 @@
|
|||
|
||||
%section
|
||||
%dl.dl-horizontal
|
||||
%dt= t 'simple_form.labels.task.name'
|
||||
%dt= Task.human_attribute_name(:name)
|
||||
%dd= @task.name
|
||||
- if @task.description.present?
|
||||
%dt= t 'simple_form.labels.defaults.description'
|
||||
%dt= Task.human_attribute_name(:description)
|
||||
%dd= simple_format(@task.description)
|
||||
- if @task.due_date.present?
|
||||
%dt= t '.due_date'
|
||||
%dt= Task.human_attribute_name(:due_date)
|
||||
%dd
|
||||
= format_date(@task.due_date)
|
||||
- if @task.periodic?
|
||||
%i.icon-repeat{title: t('tasks.repeated')}
|
||||
%dt= t 'simple_form.labels.task.duration'
|
||||
%dt= Task.human_attribute_name(:duration)
|
||||
%dd= t('.hours', count: @task.duration)
|
||||
%dt= t 'simple_form.labels.task.user_list'
|
||||
%dt= Task.human_attribute_name(:user_list)
|
||||
%dd= task_assignments(@task)
|
||||
%dt= t 'simple_form.labels.task.workgroup'
|
||||
%dt= Task.human_attribute_name(:workgroup)
|
||||
%dd
|
||||
- if @task.workgroup
|
||||
= link_to @task.workgroup.name, workgroup_tasks_path(workgroup_id: @task.workgroup_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue