demarches-normaliennes/app/views/admin/procedures/check_availability.js.erb
2018-09-12 12:37:15 +02:00

11 lines
400 B
Text

<% 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 %>