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

68 lines
2.7 KiB
Text
Raw Normal View History

= render partial: 'dossiers/messagerie', locals: { dossier_facade: @facade }
- if @facade.procedure.individual_with_siret
.default_data_block
2016-12-19 16:31:18 +01:00
%div.row.show-block.infos
%div.header
%div.col-xs-8.title-no-expanse
%div.carret-right
INFORMATIONS DU DEMANDEUR
- if !@current_gestionnaire && ["draft", "updated", "replied", "initiated"].include?(@facade.dossier.state)
%a#add_siret.action{href: users_dossier_add_siret_path(dossier_id: @facade.dossier.id)}
%div.col-lg-4.col-md-4.col-sm-4.col-xs-4.action
= "Renseigner un SIRET"
- unless @facade.entreprise.nil?
.default_data_block
2016-12-19 16:31:18 +01:00
%div.row.show-block.infos#infos_entreprise
%div.header
%div.col-xs-12.title
%div.carret-right
%div.carret-down
INFORMATIONS DU DEMANDEUR
%div.body.display-block-on-print
= render partial: '/dossiers/infos_entreprise'
2016-12-19 16:31:18 +01:00
.default_data_block.default_visible
%div.row.show-block.infos#infos_dossier
%div.header
%div.col-xs-10.title
%div.carret-right
%div.carret-down
CONSTRUCTION DU DOSSIER
= render partial: '/dossiers/edit_dossier'
%div.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
2016-12-20 14:48:09 +01:00
%div.row.show-block#carto
%div.header
%div.col-xs-10.title
2016-12-20 14:48:09 +01:00
%div.carret-right
%div.carret-down
CARTOGRAPHIE
= render partial: '/dossiers/edit_carto'
%div.body.display-block-on-print
2016-12-20 14:48:09 +01:00
%input{id: 'json_latlngs', type: 'hidden', value: "#{@facade.dossier.json_latlngs}", name: 'json_latlngs'}
%input{id: 'quartier_prioritaires', type: 'hidden', value: "#{@facade.dossier.quartier_prioritaires.to_json}"}
%input{id: 'cadastres', type: 'hidden', value: "#{@facade.dossier.cadastres.to_json}"}
= render partial: '/users/carte/map', locals: {dossier: @facade.dossier}
= render partial: 'users/carte/init_carto', locals: {dossier: @facade.dossier}
- if @current_gestionnaire && gestionnaire_signed_in? && @champs_private.count > 0
.default_data_block.default_visible
%div.row.show-block#private-fields
%div.header
%div.col-xs-10.title
%div.carret-right
%div.carret-down
= "formulaire privé".upcase
%div.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"
%div.body
= render partial: '/dossiers/infos_private_fields'