- content_for :context do .task-context: .context = context_icon :check_square_o - if @task.persisted? = context_title "Modifier #{@task.title}" - if can?(:delete, @task) = delete_button task_path(@task) - else = context_title "Nouvelle tâche" = render "flyboy/goals/context", goal: @task.goal - content_for :main do .well = horizontal_form_for @task do |f| = f.input :title = f.input :description = f.input :reminder, html5: true = f.input :term, html5: true = f.hidden_field :goal_id = form_buttons = render_contextual