Add checkbox to set published in process admin management

This commit is contained in:
Eduardo Martinez Echevarria
2017-06-28 20:53:20 +02:00
parent bf5dec2602
commit dfa9c988ad
2 changed files with 5 additions and 1 deletions

View File

@@ -49,7 +49,8 @@ class Admin::Legislation::ProcessesController < Admin::Legislation::BaseControll
:debate_phase_enabled,
:allegations_phase_enabled,
:draft_publication_enabled,
:result_publication_enabled
:result_publication_enabled,
:published
)
end
end

View File

@@ -39,6 +39,9 @@
class: "js-calendar-full",
id: "end_date" %>
</div>
<div class="small-12 medium-2 column">
<%= f.check_box :published, checked: @process.published?, label: t('admin.legislation.processes.form.enabled') %>
</div>
<div class="small-12 column">
<hr>