demarches-normaliennes/app/views/champs/siret/index.js.erb

9 lines
517 B
Text
Raw Normal View History

2018-04-03 17:53:14 +02:00
(function() {
<% if @blank || @error %>
var html = "<%= escape_javascript(render partial: 'shared/champs/siret/delete_etablissement', locals: { message: @error, position: @champ.order_place, etablissement: @etablissement }) %>";
<% else %>
var html = "<%= escape_javascript(render partial: 'shared/champs/siret/etablissement', locals: { position: @champ.order_place, etablissement: @etablissement }) %>";
<% end %>
2018-08-01 11:22:12 +02:00
document.querySelector("#etablissement-for-<%= @champ.id %>").innerHTML = html;
2018-04-03 17:53:14 +02:00
})();