2016-10-05 14:28:10 +02:00
|
|
|
<% if flash.empty? %>
|
2017-04-12 11:12:05 +02:00
|
|
|
$('.row.etape.etape-2').hide(300, render_new_siret);
|
2018-10-02 13:51:56 +02:00
|
|
|
$('.row.etape.etape-2').slideDown(400);
|
2016-10-05 14:28:10 +02:00
|
|
|
<% else %>
|
|
|
|
error_form_siret('<%= invalid_siret %>');
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% flash.clear %>
|
|
|
|
|
|
|
|
function render_new_siret(){
|
2017-04-12 11:12:05 +02:00
|
|
|
$('.row.etape.etape-2').html("<%= escape_javascript(render partial: '/dossiers/etapes/etape_2/entreprise', locals: { facade: @facade } ) %>");
|
2018-09-20 14:34:49 +02:00
|
|
|
}
|