Don’t show new annotation/comment form if allegations phase is not open

This commit is contained in:
Amaia Castro
2017-01-16 17:42:32 +01:00
parent 819c9efcc3
commit 65fcd83ee5
6 changed files with 24 additions and 19 deletions

View File

@@ -54,6 +54,7 @@
<section class="legislation-annotatable"
data-legislation-draft-version-id="<%= @draft_version.id %>"
data-legislation-annotatable-base-url="<%= legislation_process_draft_version_path(@process, @draft_version) %>"
data-legislation-open-phase="<%= @process.open_phase?(:allegations) %>"
>
<% end %>
<%= @draft_version.body_html.html_safe %>