Show warning if phase is not open

This commit is contained in:
Fernando Blat
2017-01-05 13:08:06 +01:00
parent ed714f7c7d
commit 8682e426ac
3 changed files with 6 additions and 0 deletions

View File

@@ -17,4 +17,8 @@
signin: link_to(t("legislation.questions.participation.signin"), new_user_session_path),
signup: link_to(t("legislation.questions.participation.signup"), new_user_registration_path)).html_safe %>
</div>
<% elsif !@process.open_phase?(:debate) %>
<div class="participation-not-allowed" style='display:none' aria-hidden="false">
<%= t("legislation.questions.participation.debate_phase_not_open") %>
</div>
<% end %>