demarches-normaliennes/app/views/dossiers/_dossier_show.html.haml

75 lines
2.9 KiB
Text
Raw Normal View History

= render partial: 'dossiers/edit_avis', locals: { dossier_facade: @facade }
= render partial: 'dossiers/attestation', locals: { dossier: @facade.dossier }
= render partial: 'dossiers/messagerie', locals: { dossier_facade: @facade }
= render partial: 'dossiers/motivation', locals: { dossier_facade: @facade }
- if @facade.procedure.individual_with_siret
.default-data-block
2017-04-06 15:32:05 +02:00
.row.show-block.infos
.header
.col-xs-8.title-no-expanse
.carret-right
INFORMATIONS DU DEMANDEUR
2017-12-04 16:17:15 +01:00
- if !@current_gestionnaire && ["brouillon", "en_construction"].include?(@facade.dossier.state)
2017-04-06 19:10:25 +02:00
%a#add_siret.action{ href: users_dossier_add_siret_path(dossier_id: @facade.dossier.id) }
2017-04-06 15:32:05 +02:00
.col-lg-4.col-md-4.col-sm-4.col-xs-4.action
2017-04-06 16:33:53 +02:00
Renseigner un SIRET
- unless @facade.entreprise.nil?
.default-data-block
2017-04-06 15:32:05 +02:00
.row.show-block.infos#infos_entreprise
.header
.col-xs-12.title
.carret-right
.carret-down
INFORMATIONS DU DEMANDEUR
2017-04-06 15:32:05 +02:00
.body.display-block-on-print
= render partial: '/dossiers/infos_entreprise'
.default-data-block.default_visible
.row.show-block.infos#infos-dossiers
2017-04-06 15:32:05 +02:00
.header
.col-xs-10.title
.carret-right
.carret-down
CONSTRUCTION DU DOSSIER
= render partial: '/dossiers/edit_dossier'
2017-04-06 15:32:05 +02:00
.body.display-block-on-print
= render partial: '/dossiers/infos_dossier'
- if @facade.dossier.procedure.module_api_carto.use_api_carto
.default-data-block.default_visible.no-page-break-inside
2017-04-06 15:32:05 +02:00
.row.show-block#carto
.header
.col-xs-10.title
.carret-right
.carret-down
2016-12-20 14:48:09 +01:00
CARTOGRAPHIE
= render partial: '/dossiers/edit_carto'
2017-04-06 15:32:05 +02:00
.body.display-block-on-print
%input#json_latlngs{ type: 'hidden', value: "#{@facade.dossier.json_latlngs}", name: 'json_latlngs' }
%input#quartier_prioritaires{ type: 'hidden', value: "#{@facade.dossier.quartier_prioritaires.to_json}" }
%input#cadastres{ type: 'hidden', value: "#{@facade.dossier.cadastres.to_json}" }
2016-12-20 14:48:09 +01:00
2017-04-06 19:10:25 +02:00
= render partial: '/users/carte/map', locals: { dossier: @facade.dossier }
= render partial: 'users/carte/init_carto', locals: { dossier: @facade.dossier }
2016-12-20 14:48:09 +01:00
- if @current_gestionnaire && gestionnaire_signed_in? && current_gestionnaire.assigned_on_procedure?(@facade.dossier.procedure_id) && @champs_private.present?
.default-data-block.default_visible
2017-04-06 15:32:05 +02:00
.row.show-block#private-fields
.header
.col-xs-10.title
.carret-right
.carret-down
= "formulaire privé".upcase
2017-04-06 15:32:05 +02:00
.col-xs-2.count
- private_fields_count = @champs_private.count
2016-12-07 14:44:05 +01:00
= (private_fields_count == 1) ? "1 champ" : "#{private_fields_count} champs"
2017-04-06 15:32:05 +02:00
.body
= render partial: '/dossiers/infos_private_fields'
= render partial: 'dossiers/avis', locals: { dossier_facade: @facade }