2018-10-30 15:59:27 +01:00
|
|
|
<% if @availability == Procedure::PATH_AVAILABLE %>
|
2018-09-04 14:53:18 +02:00
|
|
|
<%= remove_element('.unavailable-path-message', inner: true) %>
|
2018-10-30 15:59:27 +01:00
|
|
|
<% else %>
|
|
|
|
<%= render_to_element('.unavailable-path-message', partial: 'unavailable', locals: { availability: @availability }) %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if @availability.in?(Procedure::PATH_CAN_PUBLISH) %>
|
2018-09-04 14:53:18 +02:00
|
|
|
<%= enable_element('button[type=submit]') %>
|
|
|
|
<% else %>
|
2018-10-30 15:59:27 +01:00
|
|
|
<%= disable_element('button[type=submit]') %>
|
2018-09-04 14:53:18 +02:00
|
|
|
<% end %>
|