2015-05-08 17:39:20 +02:00
|
|
|
- title @periodic ? t('.title_periodic') : t('.title')
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2015-05-08 17:39:20 +02:00
|
|
|
- if @task.periodic? && !@periodic
|
|
|
|
.alert.alert-info= raw t('tasks.edit.warning_periodic')
|
|
|
|
|
|
|
|
= render 'form_sidebar'
|
|
|
|
|
|
|
|
= simple_form_for @task do |form|
|
|
|
|
= render 'form', form: form, periodic: @periodic
|
|
|
|
.form-actions
|
|
|
|
- if @periodic
|
|
|
|
= form.submit t('.submit_periodic'), name: 'periodic', class: 'btn btn-primary'
|
|
|
|
- else
|
|
|
|
= form.submit class: 'btn btn-primary'
|
|
|
|
= link_to t('ui.or_cancel'), :back
|