foodsoft/app/views/tasks/edit.haml

16 lines
476 B
Text
Raw Permalink Normal View History

- title @periodic ? t('.title_periodic') : t('.title')
2009-01-06 11:49:19 +01: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