2016-11-22 17:32:00 +01:00
|
|
|
%div.col-lg-12.col-md-12#backoffice_dossier_show
|
|
|
|
|
2016-11-24 19:33:34 +01:00
|
|
|
.default_data_block
|
|
|
|
.row.show-block#messages
|
|
|
|
%div.header
|
|
|
|
%div.col-lg-10.col-md-10.title
|
2016-11-25 12:20:08 +01:00
|
|
|
.carret-right
|
|
|
|
.carret-down
|
2016-11-24 19:33:34 +01:00
|
|
|
MESSAGES
|
|
|
|
%div.col-lg-2.col-md-2.count
|
2016-11-25 10:11:11 +01:00
|
|
|
- message_count = @facade.commentaires.count
|
|
|
|
= (message_count == 1) ? "1 message" : "#{message_count} messages"
|
2016-11-24 19:33:34 +01:00
|
|
|
%div.body
|
2016-11-25 12:20:08 +01:00
|
|
|
- @facade.commentaires.object.sort.each do |commentaire|
|
|
|
|
= render partial: commentaire
|
|
|
|
.row
|
|
|
|
.col-lg-12.col-md-12
|
|
|
|
%div.split-hr
|
|
|
|
.row
|
|
|
|
%div.col-lg-12.col-md-12#new-commentaire
|
|
|
|
= 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'
|
|
|
|
%input.form-control.btn.btn-send{ type: 'submit', value: 'ENVOYER' }
|
2016-11-25 11:08:58 +01:00
|
|
|
- if last_comment = @facade.commentaires.first
|
2016-11-25 12:20:08 +01:00
|
|
|
%div.last-commentaire
|
|
|
|
.row
|
2016-11-25 11:08:58 +01:00
|
|
|
%div.col-lg-12.col-md-12.comment-header
|
|
|
|
= "DERNIER MESSAGE (#{last_comment.header})"
|
2016-11-25 12:20:08 +01:00
|
|
|
.row
|
2016-11-25 11:08:58 +01:00
|
|
|
%div.col-lg-12.col-md-12.content
|
|
|
|
= last_comment.body.html_safe
|
2016-11-25 15:29:09 +01:00
|
|
|
- if file = last_comment.piece_justificative
|
|
|
|
.row
|
|
|
|
%div.col-lg-12.col-md-12.file
|
|
|
|
= link_to file.content_url, class: 'link', target: '_blank' do
|
|
|
|
%span.fa.fa-file
|
|
|
|
%div
|
|
|
|
= file.original_filename
|
2016-11-25 12:20:08 +01:00
|
|
|
.row
|
|
|
|
.col-lg-12.col-md-12
|
2016-11-25 11:08:58 +01:00
|
|
|
%div.new-action
|
|
|
|
ENVOYER UN MESSAGE
|
2016-11-24 19:33:34 +01:00
|
|
|
|
2016-11-25 16:25:54 +01:00
|
|
|
- unless @facade.entreprise.nil?
|
|
|
|
.default_data_block
|
|
|
|
%div.row.show-block#infos
|
|
|
|
%div.header
|
|
|
|
%div.col-lg-12.col-md-12.title
|
|
|
|
%div.carret-right
|
|
|
|
%div.carret-down
|
|
|
|
INFORMATIONS ENTREPRISE / ASSOCIATION / INDIVIDU
|
|
|
|
%div.body
|
|
|
|
= render partial: '/dossiers/infos_entreprise'
|
2016-11-24 19:33:34 +01:00
|
|
|
|
|
|
|
.default_data_block
|
|
|
|
%div.row.show-block#dossier
|
|
|
|
%div.header
|
|
|
|
%div.col-lg-10.col-md-10.title
|
|
|
|
%div.carret-right
|
|
|
|
%div.carret-down
|
|
|
|
CONSTRUCTION DU DOSSIER
|
|
|
|
%div.col-lg-2.col-md-2.action
|
|
|
|
EDITER
|
|
|
|
%div.body
|
2016-11-22 17:32:00 +01:00
|
|
|
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2016-02-08 18:16:18 +01:00
|
|
|
|
2015-09-24 16:51:14 +02:00
|
|
|
= render partial: '/dossiers/infos_dossier'
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2016-02-08 18:16:18 +01:00
|
|
|
%div
|
2016-08-08 13:34:26 +02:00
|
|
|
= render partial: 'dossiers/tab_objects_dossier'
|