demarches-normaliennes/app/views/admin/procedures/check_availability.js.erb

12 lines
400 B
Text
Raw Normal View History

2018-09-04 14:53:18 +02:00
<% if @available %>
<%= remove_element('.unavailable-path-message', inner: true) %>
<%= enable_element('button[type=submit]') %>
<% else %>
<%= render_to_element('.unavailable-path-message', partial: 'unavailable', locals: { mine: @mine }) %>
<% if @mine %>
<%= enable_element('button[type=submit]') %>
<% else %>
<%= disable_element('button[type=submit]') %>
<% end %>
<% end %>