2016-12-22 11:39:44 +01:00
|
|
|
.default_data_block{style:'margin-top: 40px'}
|
2016-12-07 13:57:55 +01:00
|
|
|
.row.show-block#messages
|
|
|
|
%div.header
|
2016-12-23 16:58:06 +01:00
|
|
|
%div.col-lg-10.col-md-10.col-sm-10.col-xs-10.title
|
2016-12-07 13:57:55 +01:00
|
|
|
.carret-right
|
|
|
|
.carret-down
|
2017-01-02 15:23:05 +01:00
|
|
|
MESSAGERIE avec votre
|
|
|
|
- if user_signed_in?
|
|
|
|
Administration
|
|
|
|
- elsif gestionnaire_signed_in?
|
|
|
|
Usager
|
2016-12-23 16:58:06 +01:00
|
|
|
%div.col-lg-2.col-md-2.col-sm-2.col-xs-2.count
|
2016-12-07 13:57:55 +01:00
|
|
|
- message_count = @facade.commentaires.count
|
|
|
|
= (message_count == 1) ? "1 message" : "#{message_count} messages"
|
|
|
|
%div.body
|
|
|
|
- unless @facade.commentaires.empty?
|
|
|
|
%div.commentaires
|
|
|
|
- @facade.commentaires.object.sort.each do |commentaire|
|
|
|
|
= render partial: commentaire
|
|
|
|
.row
|
2016-12-23 16:58:06 +01:00
|
|
|
.col-lg-12.col-md-12.col-sm-12.col-xs-12
|
2016-12-07 13:57:55 +01:00
|
|
|
%div.split-hr
|
|
|
|
.row
|
2016-12-23 16:58:06 +01:00
|
|
|
%div.col-lg-12.col-md-12.col-sm-12.col-xs-12#new-commentaire
|
2016-12-07 13:57:55 +01:00
|
|
|
= form_tag(url_for({ controller: 'commentaires', action: :create, dossier_id: @facade.dossier.id, champ_id: @facade.champ_id }), class: 'form-inline', method: 'POST', multipart: true) do
|
|
|
|
%textarea.form-control{id: 'texte_commentaire', class: 'wysihtml5', name: 'texte_commentaire', style: 'width: 100%; margin-bottom:2%', rows: '5', placeholder:"Commentaire"}
|
|
|
|
%h4.text-primary{style: 'margin-top: 0px'} Ajouter un fichier
|
|
|
|
= file_field_tag "piece_justificative[content]", accept: PieceJustificative.accept_format, style: 'float: left; margin-left: 20px'
|
2016-12-19 17:15:59 +01:00
|
|
|
%input#save-message.form-control.btn.btn-send{ type: 'submit', value: 'ENVOYER' }
|
2016-12-07 13:57:55 +01:00
|
|
|
- if last_comment = @facade.commentaires.first
|
|
|
|
%div.last-commentaire
|
|
|
|
.row
|
2016-12-23 16:58:06 +01:00
|
|
|
%div.col-lg-12.col-md-12.col-sm-12.col-xs-12.comment-header
|
2016-12-07 13:57:55 +01:00
|
|
|
= "DERNIER MESSAGE (#{last_comment.header})"
|
|
|
|
.row
|
2016-12-23 16:58:06 +01:00
|
|
|
%div.col-lg-12.col-md-12.col-sm-12.col-xs-12.content
|
2016-12-07 13:57:55 +01:00
|
|
|
= last_comment.body.html_safe
|
|
|
|
- if file = last_comment.piece_justificative
|
|
|
|
.row
|
2016-12-23 16:58:06 +01:00
|
|
|
%div.col-lg-12.col-md-12.col-sm-12.col-xs-12.file
|
2016-12-07 13:57:55 +01:00
|
|
|
= link_to file.content_url, class: 'link', target: '_blank' do
|
|
|
|
%span.fa.fa-file
|
|
|
|
%div
|
|
|
|
= file.original_filename
|
|
|
|
.row
|
2016-12-23 16:58:06 +01:00
|
|
|
.col-lg-12.col-md-12.col-sm-12.col-xs-12
|
2016-12-19 17:15:59 +01:00
|
|
|
%div#open-message.new-action
|
2016-12-07 13:57:55 +01:00
|
|
|
ENVOYER UN MESSAGE
|
|
|
|
- else
|
|
|
|
.last-commentaire
|
|
|
|
.row
|
2016-12-23 16:58:06 +01:00
|
|
|
.col-lg-12.col-md-12.col-sm-12.col-xs-12
|
2016-12-19 17:15:59 +01:00
|
|
|
%div#open-message.new-action
|
2016-12-07 13:57:55 +01:00
|
|
|
ENVOYER UN MESSAGE
|
|
|
|
|
|
|
|
- if @facade.procedure.individual_with_siret
|
|
|
|
.default_data_block
|
2016-12-19 16:31:18 +01:00
|
|
|
%div.row.show-block.infos
|
2016-12-07 13:57:55 +01:00
|
|
|
%div.header
|
2016-12-23 16:58:06 +01:00
|
|
|
%div.col-lg-8.col-md-8.col-sm-8.col-xs-8.title-no-expanse
|
2016-12-07 13:57:55 +01:00
|
|
|
%div.carret-right
|
|
|
|
INFORMATIONS ENTREPRISE / ASSOCIATION
|
2016-12-28 12:20:34 +01:00
|
|
|
- if !@current_gestionnaire && ["draft", "updated", "replied", "initiated"].include?(@facade.dossier.state)
|
2016-12-28 12:06:37 +01:00
|
|
|
%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"
|
2016-12-07 13:57:55 +01:00
|
|
|
|
|
|
|
- unless @facade.entreprise.nil?
|
|
|
|
.default_data_block
|
2016-12-19 16:31:18 +01:00
|
|
|
%div.row.show-block.infos#infos_entreprise
|
2016-12-07 13:57:55 +01:00
|
|
|
%div.header
|
2016-12-23 16:58:06 +01:00
|
|
|
%div.col-lg-12.col-md-12.col-sm-12.col-xs-12.title
|
2016-12-07 13:57:55 +01:00
|
|
|
%div.carret-right
|
|
|
|
%div.carret-down
|
|
|
|
INFORMATIONS ENTREPRISE / ASSOCIATION
|
|
|
|
%div.body
|
|
|
|
= 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
|
2016-12-07 13:57:55 +01:00
|
|
|
%div.header
|
2016-12-23 16:58:06 +01:00
|
|
|
%div.col-lg-10.col-md-10.col-sm-10.col-xs-10.title
|
2016-12-07 13:57:55 +01:00
|
|
|
%div.carret-right
|
|
|
|
%div.carret-down
|
|
|
|
CONSTRUCTION DU DOSSIER
|
|
|
|
= render partial: '/dossiers/edit_dossier'
|
|
|
|
%div.body
|
|
|
|
= render partial: '/dossiers/infos_dossier'
|
|
|
|
|
|
|
|
- if @facade.dossier.procedure.module_api_carto.use_api_carto
|
2016-12-20 14:48:09 +01:00
|
|
|
.default_data_block.default_visible
|
|
|
|
%div.row.show-block#carto
|
|
|
|
%div.header
|
2016-12-23 16:58:06 +01:00
|
|
|
%div.col-lg-10.col-md-10.col-sm-10.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
|
|
|
|
%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}
|
|
|
|
|
2016-12-07 13:57:55 +01:00
|
|
|
|
2016-12-22 11:39:44 +01:00
|
|
|
- if @current_gestionnaire && gestionnaire_signed_in? && @champs_private.count > 0
|
|
|
|
.default_data_block.default_visible
|
2016-12-07 13:57:55 +01:00
|
|
|
%div.row.show-block#private-fields
|
|
|
|
%div.header
|
2016-12-23 16:58:06 +01:00
|
|
|
%div.col-lg-10.col-md-10.col-sm-10.col-xs-10.title
|
2016-12-07 13:57:55 +01:00
|
|
|
%div.carret-right
|
|
|
|
%div.carret-down
|
2016-12-22 11:39:44 +01:00
|
|
|
= "formulaire privé".upcase
|
2016-12-23 16:58:06 +01:00
|
|
|
%div.col-lg-2.col-md-2.col-sm-2.col-xs-2.count
|
2016-12-22 11:39:44 +01:00
|
|
|
- private_fields_count = @champs_private.count
|
2016-12-07 14:44:05 +01:00
|
|
|
= (private_fields_count == 1) ? "1 champ" : "#{private_fields_count} champs"
|
2016-12-07 13:57:55 +01:00
|
|
|
%div.body
|
|
|
|
= render partial: '/dossiers/infos_private_fields'
|
|
|
|
|