Merge branch 'develop' into notifications

# Conflicts:
#	app/views/backoffice/dossiers/_list.html.haml
This commit is contained in:
Xavier J 2016-12-26 10:53:05 +01:00
commit 263d85ccee
58 changed files with 274 additions and 242 deletions

View file

@ -8,7 +8,7 @@
- @accompagnateurs_assign.each do |accompagnateur| - @accompagnateurs_assign.each do |accompagnateur|
%tr %tr
%td.col-md-1.col-lg-1.center %td.col-md-1.col-lg-1.col-sm-1.col-xs-1.col-sm-1.col-xs-1.center
%a.btn.btn-primary{href: "#{admin_procedure_accompagnateurs_path(procedure_id: @procedure.id, accompagnateur_id: accompagnateur.id, to: AccompagnateurService::NOT_ASSIGN)}", 'data-method' => 'put'} %a.btn.btn-primary{href: "#{admin_procedure_accompagnateurs_path(procedure_id: @procedure.id, accompagnateur_id: accompagnateur.id, to: AccompagnateurService::NOT_ASSIGN)}", 'data-method' => 'put'}
.fa.fa-arrow-left .fa.fa-arrow-left
%td{style:'padding-top: 11px; font-size:15px; text-align:right'}= accompagnateur.email %td{style:'padding-top: 11px; font-size:15px; text-align:right'}= accompagnateur.email

View file

@ -14,7 +14,7 @@
- @accompagnateurs_not_assign.each do |accompagnateur| - @accompagnateurs_not_assign.each do |accompagnateur|
%tr %tr
%td.col-md-11.col-lg-11{style:'padding-top: 11px; font-size:15px'}= accompagnateur.email %td.col-md-11.col-sm-11.col-xs-11.col-lg-11{style:'padding-top: 11px; font-size:15px'}= accompagnateur.email
%td.center %td.center
%a.btn.btn-success.gestionnaire-affectation{href: "#{admin_procedure_accompagnateurs_path(procedure_id: @procedure.id, accompagnateur_id: accompagnateur.id, to: AccompagnateurService::ASSIGN)}", 'data-method' => 'put'} %a.btn.btn-success.gestionnaire-affectation{href: "#{admin_procedure_accompagnateurs_path(procedure_id: @procedure.id, accompagnateur_id: accompagnateur.id, to: AccompagnateurService::ASSIGN)}", 'data-method' => 'put'}
.fa.fa-arrow-right .fa.fa-arrow-right

View file

@ -1,7 +1,7 @@
.row.white-back .row.white-back
#accompagnateur_form #accompagnateur_form
.row .row
.col-md-6.col-lg-6 .col-md-6.col-sm-6.col-xs-6.col-lg-6
%h3.text-info Disponibles %h3.text-info Disponibles
= smart_listing_render :accompagnateurs_not_assign = smart_listing_render :accompagnateurs_not_assign
@ -11,13 +11,13 @@
#procedure_new.section.section-label #procedure_new.section.section-label
= form_for @gestionnaire, url: {controller: 'admin/gestionnaires', action: :create} do |f| = form_for @gestionnaire, url: {controller: 'admin/gestionnaires', action: :create} do |f|
.row .row
.col-md-5.col-lg-5 .col-md-5.col-sm-5.col-xs-5.col-lg-5
= hidden_field_tag :procedure_id, params[:procedure_id] = hidden_field_tag :procedure_id, params[:procedure_id]
=render partial: 'admin/gestionnaires/informations', locals: {f: f} =render partial: 'admin/gestionnaires/informations', locals: {f: f}
.col-md-2.col-lg-2 .col-md-2.col-sm-2.col-xs-2.col-lg-2
%br %br
%br %br
= f.submit 'Valider', class: 'btn btn-info', style: 'float:left', id: 'add-gestionnaire-email' = f.submit 'Valider', class: 'btn btn-info', style: 'float:left', id: 'add-gestionnaire-email'
.col-md-6.col-lg-6 .col-md-6.col-sm-6.col-xs-6.col-lg-6
%h3.text-success Affectés %h3.text-success Affectés
= smart_listing_render :accompagnateurs_assign = smart_listing_render :accompagnateurs_assign

View file

@ -2,18 +2,18 @@
%br %br
.row .row
.col-md-4.col-lg-4 .col-md-4.col-sm-4.col-xs-4.col-lg-4
= smart_listing_render :gestionnaires = smart_listing_render :gestionnaires
.col-md-1.col-lg-1 .col-md-1.col-lg-1.col-sm-1.col-xs-1.col-sm-1.col-xs-1
   
.col-md-6.col-lg-6 .col-md-6.col-sm-6.col-xs-6.col-lg-6
%h3 Ajouter un accompagnateur %h3 Ajouter un accompagnateur
#procedure_new.section.section-label #procedure_new.section.section-label
= form_for @gestionnaire, url: {controller: 'admin/gestionnaires', action: :create} do |f| = form_for @gestionnaire, url: {controller: 'admin/gestionnaires', action: :create} do |f|
.row .row
.col-md-5.col-lg-5 .col-md-5.col-sm-5.col-xs-5.col-lg-5
= render partial: 'informations', locals: {f: f} = render partial: 'informations', locals: {f: f}
.col-md-2.col-lg-2 .col-md-2.col-sm-2.col-xs-2.col-lg-2
%br %br
%br %br
= f.submit 'Valider', class: 'btn btn-info', style: 'float:left' = f.submit 'Valider', class: 'btn btn-info', style: 'float:left'

View file

@ -12,7 +12,7 @@
= f.text_field key, class: 'form-control', placeholder: value = f.text_field key, class: 'form-control', placeholder: value
.row .row
.col-md-6.col-lg-6 .col-md-6.col-sm-6.col-xs-6.col-lg-6
%h4 Logo de la procédure %h4 Logo de la procédure
- unless @procedure.logo.blank? - unless @procedure.logo.blank?
= image_tag @procedure.decorate.logo_img, {style: 'height: 40px; display: inline; margin-right: 6px', id: 'preview_procedure_logo'} = image_tag @procedure.decorate.logo_img, {style: 'height: 40px; display: inline; margin-right: 6px', id: 'preview_procedure_logo'}
@ -21,7 +21,7 @@
%div{style:'margin-top:5px'} %div{style:'margin-top:5px'}
%i %i
Fichier accepté : JPG / JPEG / PNG Fichier accepté : JPG / JPEG / PNG
.col-md-6.col-lg-6 .col-md-6.col-sm-6.col-xs-6.col-lg-6
%h4 Drapeau européen %h4 Drapeau européen
%label %label
=f.check_box :euro_flag =f.check_box :euro_flag
@ -30,7 +30,7 @@
%br %br
.row .row
.col-md-6.col-lg-6 .col-md-6.col-sm-6.col-xs-6.col-lg-6
%h4 Cartographie %h4 Cartographie
= f.fields_for :module_api_carto, @procedure.module_api_carto do |ff| = f.fields_for :module_api_carto, @procedure.module_api_carto do |ff|
@ -48,7 +48,7 @@
= ff.check_box :cadastre = ff.check_box :cadastre
Cadastre Cadastre
.col-md-6.col-lg-6 .col-md-6.col-sm-6.col-xs-6.col-lg-6
%h4 Formulaire / CERFA %h4 Formulaire / CERFA
%label %label
=f.check_box :cerfa_flag =f.check_box :cerfa_flag
@ -58,7 +58,7 @@
%br %br
.row .row
.col-md-6.col-lg-6 .col-md-6.col-sm-6.col-xs-6.col-lg-6
%h4 Particuliers %h4 Particuliers
%div %div
%label %label

View file

@ -12,7 +12,7 @@
- procedure = procedure.decorate - procedure = procedure.decorate
%tr{id: "tr_dossier_#{procedure.id}", 'data-dossier_url' => admin_procedure_path(id: procedure.id)} %tr{id: "tr_dossier_#{procedure.id}", 'data-dossier_url' => admin_procedure_path(id: procedure.id)}
%td= procedure.id %td= procedure.id
%td.col-md-6.col-lg-6 %td.col-md-6.col-sm-6.col-xs-6.col-lg-6
= procedure.libelle = procedure.libelle
- if @active_class - if @active_class
%td= link_to procedure.lien, procedure.lien, class: 'procedure-lien', 'data-method' => :get %td= link_to procedure.lien, procedure.lien, class: 'procedure-lien', 'data-method' => :get

View file

@ -2,12 +2,12 @@
.default_data_block.default_visible .default_data_block.default_visible
%div.row.show-block#new_dossiers %div.row.show-block#new_dossiers
%div.header %div.header
%div.col-lg-10.col-md-10.title %div.col-lg-10.col-md-10.col-sm-10.col-xs-10.title
%div.carret-right %div.carret-right
%div.carret-down %div.carret-down
Procédures Procédures
%a{href:'/admin/procedures/new'} %a{href:'/admin/procedures/new'}
%div#new-procedure.col-lg-2.col-md-2.action %div#new-procedure.col-lg-2.col-md-2.col-sm-2.col-xs-2.action
Nouvelle Nouvelle
%div.body %div.body

View file

@ -59,12 +59,12 @@
%h3 Détails %h3 Détails
.row{style:'margin-right:3%; margin-left:3%;'} .row{style:'margin-right:3%; margin-left:3%;'}
.description.col-md-3.col-lg-3 .description.col-md-3.col-sm-3.col-xs-3.col-lg-3
%h4.text-info %h4.text-info
= @facade.procedure.libelle = @facade.procedure.libelle
= h @facade.procedure.description.html_safe = h @facade.procedure.description.html_safe
.champs.col-md-3.col-lg-3 .champs.col-md-3.col-sm-3.col-xs-3.col-lg-3
%h4.text-info %h4.text-info
Champs Champs
.badge.progress-bar-info .badge.progress-bar-info
@ -73,7 +73,7 @@
= champ.libelle = champ.libelle
%br %br
.champs_private.col-md-3.col-lg-3 .champs_private.col-md-3.col-sm-3.col-xs-3.col-lg-3
%h4.text-info %h4.text-info
Champs privés Champs privés
.badge.progress-bar-info .badge.progress-bar-info
@ -82,7 +82,7 @@
= champ.libelle = champ.libelle
%br %br
.pieces_justificatives.col-md-3.col-lg-3 .pieces_justificatives.col-md-3.col-sm-3.col-xs-3.col-lg-3
%h4.text-info %h4.text-info
Pièces justificatives Pièces justificatives
.badge.progress-bar-info .badge.progress-bar-info
@ -95,7 +95,7 @@
=t('dynamics.admin.procedure.stats.title') =t('dynamics.admin.procedure.stats.title')
.row .row
.col-md-6.col-lg-6{style:'margin-left:3%'} .col-md-6.col-sm-6.col-xs-6.col-lg-6{style:'margin-left:3%'}
%h4 Total %h4 Total
%div %div
= @facade.dossiers_total = @facade.dossiers_total
@ -125,7 +125,7 @@
%p %p
0 0
.col-md-5.col-lg-5 .col-md-5.col-sm-5.col-xs-5.col-lg-5
%h4 Non archivés %h4 Non archivés
= javascript_include_tag "https://code.highcharts.com/highcharts.js", "chartkick" = javascript_include_tag "https://code.highcharts.com/highcharts.js", "chartkick"
- if @facade.dossiers_for_pie_highchart.blank? - if @facade.dossiers_for_pie_highchart.blank?

View file

@ -1,10 +1,10 @@
- unless smart_listing.empty? - unless smart_listing.empty?
%table.table %table.table
%thead %thead
%th.col-md-4.col-lg-4= smart_listing.sortable 'Email', :email %th.col-md-4.col-sm-4.col-xs-4.col-lg-4= smart_listing.sortable 'Email', :email
%th.col-md-4.col-lg-4= smart_listing.sortable 'Date de dernière connexion', :last_sign_in_at %th.col-md-4.col-sm-4.col-xs-4.col-lg-4= smart_listing.sortable 'Date de dernière connexion', :last_sign_in_at
%th.col-md-2.col-lg-2 Procédure active %th.col-md-2.col-sm-2.col-xs-2.col-lg-2 Procédure active
%th.col-md-2.col-lg-2 Dossier en cours %th.col-md-2.col-sm-2.col-xs-2.col-lg-2 Dossier en cours
- @admins.each do |admin| - @admins.each do |admin|
%tr %tr

View file

@ -1,13 +1,13 @@
%div.commentaire %div.commentaire
.row .row
%div.col-lg-12.col-md-12.comment-header %div.col-lg-12.col-md-12.col-sm-12.col-xs-12.comment-header
= commentaire.header = commentaire.header
.row .row
%div.col-lg-12.col-md-12.content %div.col-lg-12.col-md-12.col-sm-12.col-xs-12.content
= commentaire.body.html_safe = commentaire.body.html_safe
- if file = commentaire.piece_justificative - if file = commentaire.piece_justificative
.row .row
%div.col-lg-12.col-md-12.file %div.col-lg-12.col-md-12.col-sm-12.col-xs-12.file
= link_to file.content_url, class: 'link', target: '_blank' do = link_to file.content_url, class: 'link', target: '_blank' do
%span.fa.fa-file %span.fa.fa-file
%div %div

View file

@ -3,7 +3,7 @@
%br %br
.row .row
.col-md-4.col-lg-4 .col-md-4.col-sm-4.col-xs-4.col-lg-4
- if @facade.followers.size > 0 - if @facade.followers.size > 0
%ul %ul
- @facade.followers.each do |follower| - @facade.followers.each do |follower|

View file

@ -13,12 +13,12 @@
%i.filter.fa.fa-filter{style: "color:#{(preference.filter.blank? ? 'grey' : 'orange')}", id: "filter_#{smart_listing.name.to_s}_#{preference.table_attr.sub('.', '_')}"} %i.filter.fa.fa-filter{style: "color:#{(preference.filter.blank? ? 'grey' : 'orange')}", id: "filter_#{smart_listing.name.to_s}_#{preference.table_attr.sub('.', '_')}"}
= render partial: 'backoffice/dossiers/filter_framed', locals:{preference: preference, filter_framed_id: "framed_filter_#{smart_listing.name.to_s}_#{preference.table_attr.sub('.', '_')}"} = render partial: 'backoffice/dossiers/filter_framed', locals:{preference: preference, filter_framed_id: "framed_filter_#{smart_listing.name.to_s}_#{preference.table_attr.sub('.', '_')}"}
%th.col-md-1.col-lg-1.center Actions %th.col-md-1.col-lg-1.col-sm-1.col-xs-1.col-sm-1.col-xs-1.center Actions
%th.col-md-1.col-lg-1.center Abonnés %th.col-md-1.col-lg-1.col-sm-1.col-xs-1.col-sm-1.col-xs-1.center Abonnés
- unless smart_listing.empty? - unless smart_listing.empty?
- smart_listing.collection.each do |dossier| - smart_listing.collection.each do |dossier|
%tr{id: "tr_dossier_#{dossier.id}", 'data-dossier_url' => backoffice_dossier_url(id: dossier.id)} %tr.dossier-row{id: "tr_dossier_#{dossier.id}", 'data-dossier_url' => backoffice_dossier_url(id: dossier.id)}
- if smart_listing.name.to_s == 'follow_dossiers' - if smart_listing.name.to_s == 'follow_dossiers'
%td.center %td.center
- total_notif = dossier.notifications.count - total_notif = dossier.notifications.count

View file

@ -27,7 +27,7 @@
- if index%2 == 0 || tables.first.to_s.include?('champs') - if index%2 == 0 || tables.first.to_s.include?('champs')
%tr %tr
%td.col-sm-5.col-md-5.col-lg-5{style: 'vertical-align: top', colspan: (tables.first == :champs ? 2 : 1)} %td.col-sm-5.col-md-5.col-sm-5.col-xs-5.col-lg-5{style: 'vertical-align: top', colspan: (tables.first == :champs ? 2 : 1)}
%h5= tables.first.to_s.gsub('_', ' ').capitalize %h5= tables.first.to_s.gsub('_', ' ').capitalize
%ul %ul
- if tables.second - if tables.second

View file

@ -2,9 +2,9 @@
.panel.panel-info .panel.panel-info
.panel-body.center .panel-body.center
.row .row
.col-md-1.col-lg-1 .col-md-1.col-lg-1.col-sm-1.col-xs-1.col-sm-1.col-xs-1
.fa.fa-info-circle.text-info{style:'font-size: 2em; margin-top: 20%'} .fa.fa-info-circle.text-info{style:'font-size: 2em; margin-top: 20%'}
.col-md-11.col-lg-11 .col-md-11.col-sm-11.col-xs-11.col-lg-11
-if dossiers_list_facade.liste == 'nouveaux' -if dossiers_list_facade.liste == 'nouveaux'
Tous les dossiers présents dans cette liste sont ceux qui Tous les dossiers présents dans cette liste sont ceux qui
%b %b

View file

@ -5,11 +5,11 @@
.default_data_block .default_data_block
%div.row.show-block#new_dossiers %div.row.show-block#new_dossiers
%div.header %div.header
%div.col-lg-10.col-md-10.title %div.col-lg-10.col-md-10.col-sm-10.col-xs-10.title
%div.carret-right %div.carret-right
%div.carret-down %div.carret-down
Nouveaux dossiers Nouveaux dossiers
%div.col-lg-2.col-md-2.count %div.col-lg-2.col-md-2.col-sm-2.col-xs-2.count
=@facade_data_view.nouveaux_total =@facade_data_view.nouveaux_total
dossiers dossiers
%div.body %div.body
@ -18,11 +18,11 @@
.default_data_block.default_visible .default_data_block.default_visible
%div.row.show-block#follow_dossiers %div.row.show-block#follow_dossiers
%div.header %div.header
%div.col-lg-10.col-md-10.title %div.col-lg-10.col-md-10.col-sm-10.col-xs-10.title
%div.carret-right %div.carret-right
%div.carret-down %div.carret-down
Dossiers suivis Dossiers suivis
%div.col-lg-2.col-md-2.count %div.col-lg-2.col-md-2.col-sm-2.col-xs-2.count
=@facade_data_view.suivi_total =@facade_data_view.suivi_total
dossiers dossiers
%div.body %div.body
@ -31,11 +31,11 @@
.default_data_block .default_data_block
%div.row.show-block#all_dossiers %div.row.show-block#all_dossiers
%div.header %div.header
%div.col-lg-10.col-md-10.title %div.col-lg-10.col-md-10.col-sm-10.col-xs-10.title
%div.carret-right %div.carret-right
%div.carret-down %div.carret-down
Tous les dossiers Tous les dossiers
%div.col-lg-2.col-md-2.count %div.col-lg-2.col-md-2.col-sm-2.col-xs-2.count
=@facade_data_view.all_state_total =@facade_data_view.all_state_total
dossiers dossiers
%div.body %div.body

View file

@ -5,11 +5,11 @@
.default_data_block.default_visible .default_data_block.default_visible
%div.row.show-block#new_dossiers %div.row.show-block#new_dossiers
%div.header %div.header
%div.col-lg-10.col-md-10.title %div.col-lg-10.col-md-10.col-sm-10.col-xs-10.title
%div.carret-right %div.carret-right
%div.carret-down %div.carret-down
Résultat de la recherche Résultat de la recherche
%div.col-lg-2.col-md-2.count %div.col-lg-2.col-md-2.col-sm-2.col-xs-2.count
=@dossiers.count =@dossiers.count
dossiers dossiers
%div.body %div.body

View file

@ -1,2 +1,2 @@
%div.col-lg-12.col-md-12#backoffice_dossier_show %div.col-lg-12.col-md-12.col-sm-12.col-xs-12#backoffice_dossier_show
= render partial: "dossiers/dossier_show" = render partial: "dossiers/dossier_show"

View file

@ -14,11 +14,11 @@
%tr %tr
%td %td
= procedure.id = procedure.id
%td.col-md-4.col-lg-4 %td.col-md-4.col-sm-4.col-xs-4.col-lg-4
= link_to procedure.libelle, procedure.lien = link_to procedure.libelle, procedure.lien
%td %td
= procedure.description = procedure.description
%td.col-md-3.col-lg-3 %td.col-md-3.col-sm-3.col-xs-3.col-lg-3
= procedure.organisation = procedure.organisation
= smart_listing.paginate = smart_listing.paginate

View file

@ -4,11 +4,11 @@
- if @facade.commentaires_files.size > 0 - if @facade.commentaires_files.size > 0
%table.table %table.table
%thead %thead
%th.col-md-3 %th.col-md-3.col-sm-3.col-xs-3
Email Email
%th.col-md-2 %th.col-md-2.col-sm-2.col-xs-2
Date Date
%th.col-md-6 %th.col-md-6.col-sm-6.col-xs-6
Fichier Fichier

View file

@ -1,11 +1,11 @@
.default_data_block{style:'margin-top: 40px'} .default_data_block{style:'margin-top: 40px'}
.row.show-block#messages .row.show-block#messages
%div.header %div.header
%div.col-lg-10.col-md-10.title %div.col-lg-10.col-md-10.col-sm-10.col-xs-10.title
.carret-right .carret-right
.carret-down .carret-down
MESSAGES MESSAGES
%div.col-lg-2.col-md-2.count %div.col-lg-2.col-md-2.col-sm-2.col-xs-2.count
- message_count = @facade.commentaires.count - message_count = @facade.commentaires.count
= (message_count == 1) ? "1 message" : "#{message_count} messages" = (message_count == 1) ? "1 message" : "#{message_count} messages"
%div.body %div.body
@ -14,10 +14,10 @@
- @facade.commentaires.object.sort.each do |commentaire| - @facade.commentaires.object.sort.each do |commentaire|
= render partial: commentaire = render partial: commentaire
.row .row
.col-lg-12.col-md-12 .col-lg-12.col-md-12.col-sm-12.col-xs-12
%div.split-hr %div.split-hr
.row .row
%div.col-lg-12.col-md-12#new-commentaire %div.col-lg-12.col-md-12.col-sm-12.col-xs-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 = 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"} %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 %h4.text-primary{style: 'margin-top: 0px'} Ajouter un fichier
@ -26,26 +26,26 @@
- if last_comment = @facade.commentaires.first - if last_comment = @facade.commentaires.first
%div.last-commentaire %div.last-commentaire
.row .row
%div.col-lg-12.col-md-12.comment-header %div.col-lg-12.col-md-12.col-sm-12.col-xs-12.comment-header
= "DERNIER MESSAGE (#{last_comment.header})" = "DERNIER MESSAGE (#{last_comment.header})"
.row .row
%div.col-lg-12.col-md-12.content %div.col-lg-12.col-md-12.col-sm-12.col-xs-12.content
= last_comment.body.html_safe = last_comment.body.html_safe
- if file = last_comment.piece_justificative - if file = last_comment.piece_justificative
.row .row
%div.col-lg-12.col-md-12.file %div.col-lg-12.col-md-12.col-sm-12.col-xs-12.file
= link_to file.content_url, class: 'link', target: '_blank' do = link_to file.content_url, class: 'link', target: '_blank' do
%span.fa.fa-file %span.fa.fa-file
%div %div
= file.original_filename = file.original_filename
.row .row
.col-lg-12.col-md-12 .col-lg-12.col-md-12.col-sm-12.col-xs-12
%div#open-message.new-action %div#open-message.new-action
ENVOYER UN MESSAGE ENVOYER UN MESSAGE
- else - else
.last-commentaire .last-commentaire
.row .row
.col-lg-12.col-md-12 .col-lg-12.col-md-12.col-sm-12.col-xs-12
%div#open-message.new-action %div#open-message.new-action
ENVOYER UN MESSAGE ENVOYER UN MESSAGE
@ -53,18 +53,18 @@
.default_data_block .default_data_block
%div.row.show-block.infos %div.row.show-block.infos
%div.header %div.header
%div.col-lg-8.col-md-8.title-no-expanse %div.col-lg-8.col-md-8.col-sm-8.col-xs-8.title-no-expanse
%div.carret-right %div.carret-right
INFORMATIONS ENTREPRISE / ASSOCIATION INFORMATIONS ENTREPRISE / ASSOCIATION
%a#add_siret.action{href: users_dossier_add_siret_path(dossier_id: @facade.dossier.id)} %a#add_siret.action{href: users_dossier_add_siret_path(dossier_id: @facade.dossier.id)}
%div.col-lg-4.col-md-4.action %div.col-lg-4.col-md-4.col-sm-4.col-xs-4.action
= "Renseigner un SIRET" = "Renseigner un SIRET"
- unless @facade.entreprise.nil? - unless @facade.entreprise.nil?
.default_data_block .default_data_block
%div.row.show-block.infos#infos_entreprise %div.row.show-block.infos#infos_entreprise
%div.header %div.header
%div.col-lg-12.col-md-12.title %div.col-lg-12.col-md-12.col-sm-12.col-xs-12.title
%div.carret-right %div.carret-right
%div.carret-down %div.carret-down
INFORMATIONS ENTREPRISE / ASSOCIATION INFORMATIONS ENTREPRISE / ASSOCIATION
@ -74,7 +74,7 @@
.default_data_block.default_visible .default_data_block.default_visible
%div.row.show-block.infos#infos_dossier %div.row.show-block.infos#infos_dossier
%div.header %div.header
%div.col-lg-10.col-md-10.title %div.col-lg-10.col-md-10.col-sm-10.col-xs-10.title
%div.carret-right %div.carret-right
%div.carret-down %div.carret-down
CONSTRUCTION DU DOSSIER CONSTRUCTION DU DOSSIER
@ -86,7 +86,7 @@
.default_data_block.default_visible .default_data_block.default_visible
%div.row.show-block#carto %div.row.show-block#carto
%div.header %div.header
%div.col-lg-10.col-md-10.title %div.col-lg-10.col-md-10.col-sm-10.col-xs-10.title
%div.carret-right %div.carret-right
%div.carret-down %div.carret-down
CARTOGRAPHIE CARTOGRAPHIE
@ -104,11 +104,11 @@
.default_data_block.default_visible .default_data_block.default_visible
%div.row.show-block#private-fields %div.row.show-block#private-fields
%div.header %div.header
%div.col-lg-10.col-md-10.title %div.col-lg-10.col-md-10.col-sm-10.col-xs-10.title
%div.carret-right %div.carret-right
%div.carret-down %div.carret-down
= "formulaire privé".upcase = "formulaire privé".upcase
%div.col-lg-2.col-md-2.count %div.col-lg-2.col-md-2.col-sm-2.col-xs-2.count
- private_fields_count = @champs_private.count - private_fields_count = @champs_private.count
= (private_fields_count == 1) ? "1 champ" : "#{private_fields_count} champs" = (private_fields_count == 1) ? "1 champ" : "#{private_fields_count} champs"
%div.body %div.body

View file

@ -1,5 +1,5 @@
- unless @facade.dossier.read_only? - unless @facade.dossier.read_only?
- if user_signed_in? && (@facade.dossier.owner?(current_user.email) || @facade.dossier.invite_by_user?(current_user.email)) - if user_signed_in? && (@facade.dossier.owner?(current_user.email) || @facade.dossier.invite_by_user?(current_user.email))
%a#maj_carte.action{href: "/users/dossiers/#{@facade.dossier.id}/carte"} %a#maj_carte.action{href: "/users/dossiers/#{@facade.dossier.id}/carte"}
%div.col-lg-2.col-md-2.action %div.col-lg-2.col-md-2.col-sm-2.col-xs-2.action
= 'éditer'.upcase = 'éditer'.upcase

View file

@ -1,5 +1,5 @@
- unless @facade.dossier.read_only? - unless @facade.dossier.read_only?
- if user_signed_in? && (@facade.dossier.owner?(current_user.email) || @facade.dossier.invite_by_user?(current_user.email)) - if user_signed_in? && (@facade.dossier.owner?(current_user.email) || @facade.dossier.invite_by_user?(current_user.email))
%a#maj_infos.action{href: "/users/dossiers/#{@facade.dossier.id}/description"} %a#maj_infos.action{href: "/users/dossiers/#{@facade.dossier.id}/description"}
%div#edit-dossier.col-lg-2.col-md-2.action %div#edit-dossier.col-lg-2.col-md-2.col-sm-2.col-xs-2.action
= "éditer".upcase = "éditer".upcase

View file

@ -1,7 +1,7 @@
- unless @facade.dossier.read_only? - unless @facade.dossier.read_only?
- if user_signed_in? && (@facade.dossier.owner?(current_user.email) || @facade.dossier.invite_by_user?(current_user.email)) - if user_signed_in? && (@facade.dossier.owner?(current_user.email) || @facade.dossier.invite_by_user?(current_user.email))
- if @facade.procedure.cerfa_flag? || @facade.dossier.types_de_piece_justificative.size > 0 - if @facade.procedure.cerfa_flag? || @facade.dossier.types_de_piece_justificative.size > 0
%div.col-lg-4.col-md-4.action %div.col-lg-4.col-md-4.col-sm-4.col-xs-4.action
%a#maj_pj.action{"data-target" => "#UploadPJmodal", %a#maj_pj.action{"data-target" => "#UploadPJmodal",
"data-toggle" => "modal", "data-toggle" => "modal",
:type => "button", :type => "button",

View file

@ -1,5 +1,5 @@
.row .row
.col-md-12.col-lg-12 .col-md-12.col-sm-12.col-xs-12.col-lg-12
#map.mini{class: @facade.dossier.procedure.module_api_carto.classes} #map.mini{class: @facade.dossier.procedure.module_api_carto.classes}
%input{id: 'json_latlngs', type:'hidden', value: "#{@facade.dossier.json_latlngs}"} %input{id: 'json_latlngs', type:'hidden', value: "#{@facade.dossier.json_latlngs}"}

View file

@ -1,40 +1,40 @@
%div.row %div.row
.col-lg-12.col-md-12 .col-lg-12.col-md-12.col-sm-12.col-xs-12
- if @facade.procedure.for_individual? - if @facade.procedure.for_individual?
.row.title-row .row.title-row
%div.col-md-4.col-lg-4.split-hr %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.split-hr
%div.col-md-4.col-lg-4.dossier-title= t('utils.depositaire').upcase %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.dossier-title= t('utils.depositaire').upcase
%div.col-md-4.col-lg-4.split-hr %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.split-hr
.row .row
%div.col-md-6.col-lg-6.depositaire-label Civilité %div.col-md-6.col-sm-6.col-xs-6.col-lg-6.depositaire-label Civilité
%div.col-md-1.col-lg-1.comments-off= "-" %div.col-md-1.col-lg-1.col-sm-1.col-xs-1.comments-off= "-"
%div.col-md-5.col-lg-5.depositaire-info= @facade.individual.gender %div.col-md-5.col-sm-5.col-xs-5.col-lg-5.depositaire-info= @facade.individual.gender
.row .row
%div.col-md-6.col-lg-6.depositaire-label Nom %div.col-md-6.col-sm-6.col-xs-6.col-lg-6.depositaire-label Nom
%div.col-md-1.col-lg-1.comments-off= "-" %div.col-md-1.col-lg-1.col-sm-1.col-xs-1.comments-off= "-"
%div.col-md-5.col-lg-5.depositaire-info= @facade.individual.nom %div.col-md-5.col-sm-5.col-xs-5.col-lg-5.depositaire-info= @facade.individual.nom
.row .row
%div.col-md-6.col-lg-6.depositaire-label Prénom %div.col-md-6.col-sm-6.col-xs-6.col-lg-6.depositaire-label Prénom
%div.col-md-1.col-lg-1.comments-off= "-" %div.col-md-1.col-lg-1.col-sm-1.col-xs-1.comments-off= "-"
%div.col-md-5.col-lg-5.despositaire-info= @facade.individual.prenom %div.col-md-5.col-sm-5.col-xs-5.col-lg-5.despositaire-info= @facade.individual.prenom
- unless Features.opensimplif - unless Features.opensimplif
.row .row
%div.col-md-6.col-lg-6.depositaire-label Date de naissance %div.col-md-6.col-sm-6.col-xs-6.col-lg-6.depositaire-label Date de naissance
%div.col-md-1.col-lg-1.comments-off= "-" %div.col-md-1.col-lg-1.col-sm-1.col-xs-1.comments-off= "-"
%div.col-md-5.col-lg-5.depositaire-info= @facade.individual.birthdate %div.col-md-5.col-sm-5.col-xs-5.col-lg-5.depositaire-info= @facade.individual.birthdate
- unless @facade.champs.nil? - unless @facade.champs.nil?
- @facade.champs.each do |champ| - @facade.champs.each do |champ|
- if champ.type_champ == 'header_section' - if champ.type_champ == 'header_section'
.row.title-row.margin-top-40 .row.title-row.margin-top-40
%div.col-md-3.col-lg-3.split-hr %div.col-md-3.col-sm-3.col-xs-3.col-lg-3.split-hr
%div.col-md-6.col-lg-6.dossier-title= champ.libelle.upcase %div.col-md-6.col-sm-6.col-xs-6.col-lg-6.dossier-title= champ.libelle.upcase
%div.col-md-3.col-lg-3.split-hr %div.col-md-3.col-sm-3.col-xs-3.col-lg-3.split-hr
- else - else
.row .row
%div.col-md-6.col-lg-6.depositaire-label= champ.libelle %div.col-md-6.col-sm-6.col-xs-6.col-lg-6.depositaire-label= champ.libelle
- if Features.opensimplif - if Features.opensimplif
%div.col-md-1.col-lg-1.comments %div.col-md-1.col-lg-1.col-sm-1.col-xs-1.comments
- if gestionnaire_signed_in? - if gestionnaire_signed_in?
= link_to "", "data-href" => backoffice_dossier_commentaires_path(@facade.dossier, champs_id: champ.id), "data-toggle" => "modal", "data-target" => "#modalCommentairesDossierParChamp" do = link_to "", "data-href" => backoffice_dossier_commentaires_path(@facade.dossier, champs_id: champ.id), "data-toggle" => "modal", "data-target" => "#modalCommentairesDossierParChamp" do
%i.fa.fa-comment-o %i.fa.fa-comment-o
@ -42,9 +42,9 @@
= link_to "", "data-href" => users_dossier_commentaires_path(@facade.dossier, champs_id: champ.id), "data-toggle" => "modal", "data-target" => "#modalCommentairesDossierParChamp" do = link_to "", "data-href" => users_dossier_commentaires_path(@facade.dossier, champs_id: champ.id), "data-toggle" => "modal", "data-target" => "#modalCommentairesDossierParChamp" do
%i.fa.fa-commenting-o %i.fa.fa-commenting-o
- else - else
%div.col-md-1.col-lg-1.comments-off %div.col-md-1.col-lg-1.col-sm-1.col-xs-1.comments-off
= "-" = "-"
%div.col-md-5.col-lg-5.depositaire-info{ id: "champ-#{champ.id}-value" } %div.col-md-5.col-sm-5.col-xs-5.col-lg-5.depositaire-info{ id: "champ-#{champ.id}-value" }
- unless champ.decorate.value.blank? - unless champ.decorate.value.blank?
= champ.decorate.value.html_safe = champ.decorate.value.html_safe
@ -57,20 +57,20 @@
=")" =")"
%div.row %div.row
- if @facade.procedure.cerfa_flag? || @facade.dossier.types_de_piece_justificative.count > 0 - if @facade.procedure.cerfa_flag? || @facade.dossier.types_de_piece_justificative.count > 0
.col-lg-12.col-md-12 .col-lg-12.col-md-12.col-sm-12.col-xs-12
.row.title-row .row.title-row
%div.col-md-4.col-lg-4.split-hr %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.split-hr
%div.col-md-4.col-lg-4.dossier-title= t('utils.pieces').upcase %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.dossier-title= t('utils.pieces').upcase
%div.col-md-4.col-lg-4.split-hr %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.split-hr
.col-lg-12.col-md-12#pieces_justificatives.margin-bot-40 .col-lg-12.col-md-12.col-sm-12.col-xs-12#pieces_justificatives.margin-bot-40
.row .row
- if @facade.procedure.cerfa_flag? - if @facade.procedure.cerfa_flag?
.col-md-12.col-lg-12#piece_justificative_0 .col-md-12.col-sm-12.col-xs-12.col-lg-12#piece_justificative_0
.row.piece-row .row.piece-row
.col-md-6.col-lg-6.depositaire-label= 'Formulaire' .col-md-6.col-sm-6.col-xs-6.col-lg-6.depositaire-label= 'Formulaire'
.col-md-1.col-lg-1.comments-off= "-" .col-md-1.col-lg-1.col-sm-1.col-xs-1.comments-off= "-"
.col-md-5.col-lg-5.despositaire-info .col-md-5.col-sm-5.col-xs-5.col-lg-5.despositaire-info
- if @facade.dossier.cerfa_available? - if @facade.dossier.cerfa_available?
%a{ href: "#{@facade.dossier.cerfa.last.content_url}", target: '_blank' } Consulter %a{ href: "#{@facade.dossier.cerfa.last.content_url}", target: '_blank' } Consulter
%span{style:'margin-left:12px'} %span{style:'margin-left:12px'}
@ -80,14 +80,14 @@
- else - else
= 'Pièce non fournie' = 'Pièce non fournie'
.row .row
.col-md-12.col-lg-12 .col-md-12.col-sm-12.col-xs-12.col-lg-12
- @facade.types_de_pieces_justificatives.each do |type_de_piece_justificative| - @facade.types_de_pieces_justificatives.each do |type_de_piece_justificative|
.row.piece-row .row.piece-row
.col-md-12.col-lg-12{ id: "piece_justificative_#{type_de_piece_justificative.id}" } .col-md-12.col-sm-12.col-xs-12.col-lg-12{ id: "piece_justificative_#{type_de_piece_justificative.id}" }
.row .row
%div.col-md-6.col-lg-6.depositaire-label= type_de_piece_justificative.libelle %div.col-md-6.col-sm-6.col-xs-6.col-lg-6.depositaire-label= type_de_piece_justificative.libelle
%div.col-md-1.col-lg-1.comments-off= "-" %div.col-md-1.col-lg-1.col-sm-1.col-xs-1.comments-off= "-"
%div.col-md-5.col-lg-5.despositaire-info %div.col-md-5.col-sm-5.col-xs-5.col-lg-5.despositaire-info
- if type_de_piece_justificative.api_entreprise - if type_de_piece_justificative.api_entreprise
%span.text-success Nous l'avons récupéré pour vous. %span.text-success Nous l'avons récupéré pour vous.
- elsif !(@pj = @facade.dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id)).nil? - elsif !(@pj = @facade.dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id)).nil?
@ -103,13 +103,13 @@
- if user_signed_in? && (@facade.dossier.owner?(current_user.email) || @facade.dossier.invite_by_user?(current_user.email)) - if user_signed_in? && (@facade.dossier.owner?(current_user.email) || @facade.dossier.invite_by_user?(current_user.email))
- if @facade.procedure.cerfa_flag? || @facade.dossier.types_de_piece_justificative.size > 0 - if @facade.procedure.cerfa_flag? || @facade.dossier.types_de_piece_justificative.size > 0
.row .row
.col-lg-4.col-md-4 .col-lg-4.col-md-4.col-sm-4.col-xs-4
%a#maj_pj.action{"data-target" => "#UploadPJmodal", "data-toggle" => "modal", :type => "button"} %a#maj_pj.action{"data-target" => "#UploadPJmodal", "data-toggle" => "modal", :type => "button"}
.col-lg-4.col-md-4.action .col-lg-4.col-md-4.col-sm-4.col-xs-4.action
Modifier les documents Modifier les documents
%br %br
= render partial: 'users/recapitulatif/modal_upload_pj' = render partial: 'users/recapitulatif/modal_upload_pj'
.col-lg-4.col-md-4 .col-lg-4.col-md-4.col-sm-4.col-xs-4
- if gestionnaire_signed_in? - if gestionnaire_signed_in?
#PJmodal.modal.fade{"aria-labelledby" => "myModalLabel", :role => "dialog", :tabindex => "-1"} #PJmodal.modal.fade{"aria-labelledby" => "myModalLabel", :role => "dialog", :tabindex => "-1"}
@ -135,21 +135,21 @@
- if @facade.dossier.cerfa_available? - if @facade.dossier.cerfa_available?
- @facade.cerfas_ordered.each do |cerfa| - @facade.cerfas_ordered.each do |cerfa|
%tr %tr
%td.col-md-6.col-lg-4 %td.col-md-6.col-sm-6.col-xs-6.col-lg-4
= cerfa.user.email = cerfa.user.email
%td.col-md-6.col-lg-4 %td.col-md-6.col-sm-6.col-xs-6.col-lg-4
= cerfa.created_at = cerfa.created_at
%td.col-md-6.col-lg-4 %td.col-md-6.col-sm-6.col-xs-6.col-lg-4
=link_to 'Récupérer', cerfa.content_url, {target: :blank} =link_to 'Récupérer', cerfa.content_url, {target: :blank}
- @facade.dossier.types_de_piece_justificative.each do |type_de_piece_justificative| - @facade.dossier.types_de_piece_justificative.each do |type_de_piece_justificative|
%tbody.tr_content{id: "type_de_pj_#{type_de_piece_justificative.id}"} %tbody.tr_content{id: "type_de_pj_#{type_de_piece_justificative.id}"}
- @facade.dossier.retrieve_all_piece_justificative_by_type(type_de_piece_justificative.id).each do |piece_justificative| - @facade.dossier.retrieve_all_piece_justificative_by_type(type_de_piece_justificative.id).each do |piece_justificative|
%tr %tr
%td.col-md-6.col-lg-4 %td.col-md-6.col-sm-6.col-xs-6.col-lg-4
= piece_justificative.user.email = piece_justificative.user.email
%td.col-md-6.col-lg-4 %td.col-md-6.col-sm-6.col-xs-6.col-lg-4
= piece_justificative.created_at = piece_justificative.created_at
%td.col-md-6.col-lg-4 %td.col-md-6.col-sm-6.col-xs-6.col-lg-4
=link_to 'Récupérer', piece_justificative.content_url, {target: :blank} =link_to 'Récupérer', piece_justificative.content_url, {target: :blank}
.modal-footer .modal-footer

View file

@ -1,52 +1,52 @@
.col-md-12.col-xs-12 .col-md-12.col-sm-12.col-xs-12.col-xs-12
%h4 %h4
= @facade.entreprise.raison_sociale_or_name = @facade.entreprise.raison_sociale_or_name
.row.split-row .row.split-row
%div.col-md-12.col-lg-12.split-hr %div.col-md-12.col-sm-12.col-xs-12.col-lg-12.split-hr
%div.row %div.row
.col-lg-12.col-md-12 .col-lg-12.col-md-12.col-sm-12.col-xs-12
.row .row
%div.col-md-4.col-lg-4.entreprise-label Siret : %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.entreprise-label Siret :
%div.col-md-8.col-lg-8.entreprise-info= @facade.etablissement.siret %div.col-md-8.col-sm-8.col-xs-8.col-lg-8.entreprise-info= @facade.etablissement.siret
- if @facade.etablissement.siret != @facade.entreprise.siret_siege_social - if @facade.etablissement.siret != @facade.entreprise.siret_siege_social
.row .row
%div.col-md-4.col-lg-4.entreprise-label SIRET siège social : %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.entreprise-label SIRET siège social :
%div.col-md-8.col-lg-8.entreprise-info= @facade.entreprise.siret_siege_social %div.col-md-8.col-sm-8.col-xs-8.col-lg-8.entreprise-info= @facade.entreprise.siret_siege_social
.row .row
%div.col-md-4.col-lg-4.entreprise-label Forme juridique : %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.entreprise-label Forme juridique :
%div.col-md-8.col-lg-8.entreprise-info= @facade.entreprise.forme_juridique %div.col-md-8.col-sm-8.col-xs-8.col-lg-8.entreprise-info= @facade.entreprise.forme_juridique
.row .row
%div.col-md-4.col-lg-4.entreprise-label Libellé naf : %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.entreprise-label Libellé naf :
%div.col-md-8.col-lg-8.entreprise-info= @facade.etablissement.libelle_naf %div.col-md-8.col-sm-8.col-xs-8.col-lg-8.entreprise-info= @facade.etablissement.libelle_naf
.row .row
%div.col-md-4.col-lg-4.entreprise-label Code naf : %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.entreprise-label Code naf :
%div.col-md-8.col-lg-8.entreprise-info= @facade.etablissement.naf %div.col-md-8.col-sm-8.col-xs-8.col-lg-8.entreprise-info= @facade.etablissement.naf
.row .row
%div.col-md-4.col-lg-4.entreprise-label Date de création : %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.entreprise-label Date de création :
%div.col-md-8.col-lg-8.entreprise-info= Time.at(@facade.entreprise.date_creation).strftime "%d-%m-%Y" %div.col-md-8.col-sm-8.col-xs-8.col-lg-8.entreprise-info= Time.at(@facade.entreprise.date_creation).strftime "%d-%m-%Y"
.row .row
%div.col-md-4.col-lg-4.entreprise-label Effectif organisation : %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.entreprise-label Effectif organisation :
%div.col-md-8.col-lg-8.entreprise-info= @facade.entreprise.effectif %div.col-md-8.col-sm-8.col-xs-8.col-lg-8.entreprise-info= @facade.entreprise.effectif
.row .row
%div.col-md-4.col-lg-4.entreprise-label Code effectif : %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.entreprise-label Code effectif :
%div.col-md-8.col-lg-8.entreprise-info= @facade.entreprise.code_effectif_entreprise %div.col-md-8.col-sm-8.col-xs-8.col-lg-8.entreprise-info= @facade.entreprise.code_effectif_entreprise
.row .row
%div.col-md-4.col-lg-4.entreprise-label Numéro TVA intracommunautaire : %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.entreprise-label Numéro TVA intracommunautaire :
%div.col-md-8.col-lg-8.entreprise-info= @facade.entreprise.numero_tva_intracommunautaire %div.col-md-8.col-sm-8.col-xs-8.col-lg-8.entreprise-info= @facade.entreprise.numero_tva_intracommunautaire
.row .row
%div.col-md-4.col-lg-4.entreprise-label Adresse : %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.entreprise-label Adresse :
%div.col-md-8.col-lg-8.entreprise-info %div.col-md-8.col-sm-8.col-xs-8.col-lg-8.entreprise-info
- @facade.etablissement.adresse.split("\n").each do |line| - @facade.etablissement.adresse.split("\n").each do |line|
= line = line
.row .row
%div.col-md-4.col-lg-4.entreprise-label Capital social : %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.entreprise-label Capital social :
%div.col-md-8.col-lg-8.entreprise-info= @facade.entreprise.pretty_capital_social %div.col-md-8.col-sm-8.col-xs-8.col-lg-8.entreprise-info= @facade.entreprise.pretty_capital_social
.row .row
%div.col-md-4.col-lg-4.entreprise-label Exercices : %div.col-md-4.col-sm-4.col-xs-4.col-lg-4.entreprise-label Exercices :
%div.col-md-8.col-lg-8.entreprise-info %div.col-md-8.col-sm-8.col-xs-8.col-lg-8.entreprise-info
- @facade.etablissement.exercices.each_with_index do |exercice, index| - @facade.etablissement.exercices.each_with_index do |exercice, index|
%strong %strong
= "#{exercice.dateFinExercice.year} : " = "#{exercice.dateFinExercice.year} : "
@ -54,7 +54,7 @@
%br %br
.row.split-row .row.split-row
%div.col-md-12.col-lg-12.split-hr %div.col-md-12.col-sm-12.col-xs-12.col-lg-12.split-hr
- unless @facade.entreprise.rna_information.nil? - unless @facade.entreprise.rna_information.nil?
= render partial: '/dossiers/infos_rna' = render partial: '/dossiers/infos_rna'

View file

@ -1,11 +1,11 @@
#pieces_justificatives #pieces_justificatives
.row .row
- if @facade.procedure.cerfa_flag? - if @facade.procedure.cerfa_flag?
.col-md-12.col-lg-12#piece_justificative_0 .col-md-12.col-sm-12.col-xs-12.col-lg-12#piece_justificative_0
.row.piece-row .row.piece-row
.col-md-6.col-lg-6.piece-label= 'Formulaire' .col-md-6.col-sm-6.col-xs-6.col-lg-6.piece-label= 'Formulaire'
.col-md-1.col-lg-1.comments-off= "-" .col-md-1.col-lg-1.col-sm-1.col-xs-1.comments-off= "-"
.col-md-5.col-lg-5 .col-md-5.col-sm-5.col-xs-5.col-lg-5
- if @facade.dossier.cerfa_available? - if @facade.dossier.cerfa_available?
%a{ href: "#{@facade.dossier.cerfa.last.content_url}", target: '_blank' } Consulter %a{ href: "#{@facade.dossier.cerfa.last.content_url}", target: '_blank' } Consulter
%span{style:'margin-left:12px'} %span{style:'margin-left:12px'}
@ -20,13 +20,13 @@
= 'Pièce non fournie' = 'Pièce non fournie'
.row .row
.col-md-12.col-lg-12 .col-md-12.col-sm-12.col-xs-12.col-lg-12
- @facade.dossier.types_de_piece_justificative.order('order_place ASC').each do |type_de_piece_justificative| - @facade.dossier.types_de_piece_justificative.order('order_place ASC').each do |type_de_piece_justificative|
.row.piece-row .row.piece-row
.col-md-12.col-lg-12{ id: "piece_justificative_#{type_de_piece_justificative.id}" } .col-md-12.col-sm-12.col-xs-12.col-lg-12{ id: "piece_justificative_#{type_de_piece_justificative.id}" }
.row .row
.col-md-6.col-lg-6= type_de_piece_justificative.libelle .col-md-6.col-sm-6.col-xs-6.col-lg-6= type_de_piece_justificative.libelle
.col-md-6.col-lg-6 .col-md-6.col-sm-6.col-xs-6.col-lg-6
- if type_de_piece_justificative.api_entreprise - if type_de_piece_justificative.api_entreprise
%span.text-success Nous l'avons récupéré pour vous. %span.text-success Nous l'avons récupéré pour vous.
- elsif !(@pj = @facade.dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id)).nil? - elsif !(@pj = @facade.dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id)).nil?

View file

@ -1,5 +1,5 @@
.row{style: 'margin-top: -20px'} .row{style: 'margin-top: -20px'}
.col-md-12.col-lg-12 .col-md-12.col-sm-12.col-xs-12.col-lg-12
= form_for @facade.dossier, url: {controller: 'backoffice/private_formulaires', action: :update, dossier_id: @facade.dossier.id}, remote: true do = form_for @facade.dossier, url: {controller: 'backoffice/private_formulaires', action: :update, dossier_id: @facade.dossier.id}, remote: true do
= render partial: '/users/description/champs', locals:{private: true} = render partial: '/users/description/champs', locals:{private: true}
.row.center .row.center

View file

@ -1,5 +1,5 @@
.row#infos_rna .row#infos_rna
.col-lg-6.col-md-6 .col-lg-6.col-md-6.col-sm-6.col-xs-6
%dl.dl-horizontal %dl.dl-horizontal
%dt Association ID : %dt Association ID :
%dd.text-success= @facade.entreprise.rna_information.association_id %dd.text-success= @facade.entreprise.rna_information.association_id
@ -10,7 +10,7 @@
%dt Objet : %dt Objet :
%dd= @facade.entreprise.rna_information.objet %dd= @facade.entreprise.rna_information.objet
.col-lg-6.col-md-6 .col-lg-6.col-md-6.col-sm-6.col-xs-6
%dl.dl-horizontal %dl.dl-horizontal
%dt Date création : %dt Date création :
%dd= @facade.entreprise.rna_information.date_creation %dd= @facade.entreprise.rna_information.date_creation

View file

@ -2,7 +2,7 @@
%br %br
.row .row
.col-md-4.col-lg-4 .col-md-4.col-sm-4.col-xs-4.col-lg-4
- if @facade.invites.size > 0 - if @facade.invites.size > 0
%ul %ul
- @facade.invites.each do |invite| - @facade.invites.each do |invite|
@ -11,7 +11,7 @@
- else - else
Aucune personne invitée Aucune personne invitée
.col-md-3.col-lg-3 .col-md-3.col-sm-3.col-xs-3.col-lg-3
=form_tag invites_dossier_path(dossier_id: @facade.dossier.id), method: :post, class: 'form-inline' do =form_tag invites_dossier_path(dossier_id: @facade.dossier.id), method: :post, class: 'form-inline' do
=text_field_tag :email, '', class: 'form-control', placeholder: 'Envoyer une invitation' =text_field_tag :email, '', class: 'form-control', placeholder: 'Envoyer une invitation'
=submit_tag 'Ajouter', class: 'btn btn-success' =submit_tag 'Ajouter', class: 'btn btn-success'

View file

@ -4,7 +4,7 @@
%tr{id: "piece_justificative_0"} %tr{id: "piece_justificative_0"}
%th{class:'col-lg-6'} %th{class:'col-lg-6'}
='Formulaire' ='Formulaire'
%td.col-lg-6.col-md-6 %td.col-lg-6.col-md-6.col-sm-6.col-xs-6
- if @facade.dossier.cerfa_available? - if @facade.dossier.cerfa_available?
%a{ href: "#{@facade.dossier.cerfa.last.content_url}", target: '_blank' } Consulter %a{ href: "#{@facade.dossier.cerfa.last.content_url}", target: '_blank' } Consulter
%span{style:'margin-left:12px'} %span{style:'margin-left:12px'}
@ -22,7 +22,7 @@
%tr{ id: "piece_justificative_#{type_de_piece_justificative.id}" } %tr{ id: "piece_justificative_#{type_de_piece_justificative.id}" }
%th.col-lg-6 %th.col-lg-6
= type_de_piece_justificative.libelle = type_de_piece_justificative.libelle
%td.col-lg-6.col-md-6 %td.col-lg-6.col-md-6.col-sm-6.col-xs-6
- if type_de_piece_justificative.api_entreprise - if type_de_piece_justificative.api_entreprise
%span.text-success Nous l'avons récupéré pour vous. %span.text-success Nous l'avons récupéré pour vous.
- elsif !(@pj = @facade.dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id)).nil? - elsif !(@pj = @facade.dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id)).nil?

View file

@ -1,4 +1,4 @@
.col-md-3.col-lg-3.center .col-md-3.col-sm-3.col-xs-3.col-lg-3.center
%h3 Ma procédure %h3 Ma procédure
#logos.center{class: (@facade.entreprise.nil? ? '' : 'mask')} #logos.center{class: (@facade.entreprise.nil? ? '' : 'mask')}
@ -9,9 +9,9 @@
#logo_procedure.flag #logo_procedure.flag
=image_tag( @facade.procedure.decorate.logo_img ) =image_tag( @facade.procedure.decorate.logo_img )
.etape.etapes_informations.col-md-9.col-lg-9 .etape.etapes_informations.col-md-9.col-sm-9.col-xs-9.col-lg-9
.row .row
.col-md-12.col-lg-12.padding-left-30 .col-md-12.col-sm-12.col-xs-12.col-lg-12.padding-left-30
%h2#titre_procedure.text-info %h2#titre_procedure.text-info
= @facade.procedure.libelle = @facade.procedure.libelle

View file

@ -1,6 +1,6 @@
.etape.etapes_menu.col-md-3.col-lg-3 .etape.etapes_menu.col-md-3.col-sm-3.col-xs-3.col-lg-3
%h3 %h3
Ma zone d'intervention Ma zone d'intervention
.etape.etapes_informations.col-md-9.col-lg-9 .etape.etapes_informations.col-md-9.col-sm-9.col-xs-9.col-lg-9
.row .row

View file

@ -1,6 +1,6 @@
.etape.etapes_menu.col-md-3.col-lg-3 .etape.etapes_menu.col-md-3.col-sm-3.col-xs-3.col-lg-3
%h3 %h3
Mon dossier Mon dossier
.etape.etapes_informations.col-md-9.col-lg-9 .etape.etapes_informations.col-md-9.col-sm-9.col-xs-9.col-lg-9
.row .row

View file

@ -1,4 +1,4 @@
.etape.etapes_menu.col-md-3.col-lg-3 .etape.etapes_menu.col-md-3.col-sm-3.col-xs-3.col-lg-3
%h3 %h3
Mes informations Mes informations
%br %br
@ -12,7 +12,7 @@
= f.submit 'Changer de SIRET', class: %w(btn btn-xs btn-primary) = f.submit 'Changer de SIRET', class: %w(btn btn-xs btn-primary)
.etape.etapes_informations.col-md-9.col-lg-9 .etape.etapes_informations.col-md-9.col-sm-9.col-xs-9.col-lg-9
.row .row
- if @facade.entreprise.nil? - if @facade.entreprise.nil?
#new_siret{style:'margin-left: 20%; margin-top: 5%'} #new_siret{style:'margin-left: 20%; margin-top: 5%'}

View file

@ -1,14 +1,14 @@
.col-md-3.col-lg-3.center .col-md-3.col-sm-3.col-xs-3.col-lg-3.center
%h3 Mes informations %h3 Mes informations
%p %p
Les informations de bases Les informations de bases
%br %br
vous concernant. vous concernant.
.etape.etapes_informations.col-md-9.col-lg-9 .etape.etapes_informations.col-md-9.col-sm-9.col-xs-9.col-lg-9
= form_for @facade.dossier, url: { controller: '/users/dossiers', action: :update } do |f| = form_for @facade.dossier, url: { controller: '/users/dossiers', action: :update } do |f|
.row .row
.col-md-12.col-lg-12.padding-left-30 .col-md-12.col-sm-12.col-xs-12.col-lg-12.padding-left-30
= f.hidden_field :id = f.hidden_field :id
= f.fields_for :individual, @facade.individual do |ff| = f.fields_for :individual, @facade.individual do |ff|
@ -40,7 +40,7 @@
Vos informations personnelles ne seront jamais utilisées dans un but lucratif ou commercial. Elles ne pourront être communiquées à de tiers personnes sans votre accord préalable. Elles pourront en revanche être communiquées aux administrations compétentes afin d'instruire votre dossier, conformément à la déclaration CNIL effectué par le service TPS. Vos informations personnelles ne seront jamais utilisées dans un but lucratif ou commercial. Elles ne pourront être communiquées à de tiers personnes sans votre accord préalable. Elles pourront en revanche être communiquées aux administrations compétentes afin d'instruire votre dossier, conformément à la déclaration CNIL effectué par le service TPS.
=link_to 'en savoir plus', cgu_path, target: '_blank' =link_to 'en savoir plus', cgu_path, target: '_blank'
.row .row
.col-md-5.col-lg-5.col-xs-5 .col-md-5.col-sm-5.col-xs-5.col-lg-5.col-xs-5
.col-md-2.col-lg-2.col-xs-2 .col-md-2.col-sm-2.col-xs-2.col-lg-2.col-xs-2
= f.submit 'Etape suivante', class: "action", id: 'etape_suivante' = f.submit 'Etape suivante', class: "action", id: 'etape_suivante'
.col-md-5.col-lg-5.col-xs-5 .col-md-5.col-sm-5.col-xs-5.col-lg-5.col-xs-5

View file

@ -1,4 +1,4 @@
%div.col-lg-2.col-md-2 %div.col-lg-2.col-md-2.col-sm-2.col-xs-2
%a#title_navbar{href: '/'} %a#title_navbar{href: '/'}
%div.row#home %div.row#home
%div.col-lg-6.no-padding %div.col-lg-6.no-padding
@ -6,7 +6,7 @@
%div.col-lg-6.no-padding#tps-title %div.col-lg-6.no-padding#tps-title
TPS TPS
%div.col-lg-10.col-md-10.no-padding %div.col-lg-10.col-md-10.col-sm-10.col-xs-10.no-padding
%div#navbar-body %div#navbar-body
%div.row %div.row
-begin -begin

View file

@ -1,6 +1,6 @@
- unless BrowserService.recommended_browser? - unless BrowserService.recommended_browser?
#support_navigator_banner.row #support_navigator_banner.row
.col-md-12.col-lg-12 .col-md-12.col-sm-12.col-xs-12.col-lg-12
= BROWSER.value.name = BROWSER.value.name
= BROWSER.value.version = BROWSER.value.version
\- \-

View file

@ -34,7 +34,7 @@
= render partial: "layouts/navbar" = render partial: "layouts/navbar"
%div.row.no-margin %div.row.no-margin
- if RenderPartialService.left_panel_exist? @left_pannel_url - if RenderPartialService.left_panel_exist? @left_pannel_url
%div.col-lg-2.col-md-2#left-pannel %div.col-lg-2.col-md-2.col-sm-2.col-xs-2#left-pannel
- if gestionnaire_signed_in? - if gestionnaire_signed_in?
#search-block #search-block
= render partial: 'layouts/left_panels/search_area' = render partial: 'layouts/left_panels/search_area'

View file

@ -1,6 +1,6 @@
%div.col-lg-8.col-md-8.main-info %div.col-lg-8.col-md-8.col-sm-8.col-xs-8.main-info
%div.col-lg-3.col-md-3.options %div.col-lg-3.col-md-3.col-sm-3.col-xs-3.options
%div{ style: "decorate:none; display: flex;box-shadow:none; float:right; display: flex; margin-top: 5px" } %div{ style: "decorate:none; display: flex;box-shadow:none; float:right; display: flex; margin-top: 5px" }
%div{ style: "vertical-align: middle; margin-right: 10px; margin-top: auto; margin-bottom: auto;" } %div{ style: "vertical-align: middle; margin-right: 10px; margin-top: auto; margin-bottom: auto;" }
= current_administrateur.email = current_administrateur.email

View file

@ -1,12 +1,12 @@
%div.col-lg-8.col-md-8.main-info %div.col-lg-8.col-md-8.col-sm-8.col-xs-8.main-info
= @facade_data_view.procedure_id.nil? ? "Tous les dossiers" : @facade_data_view.procedure.libelle = @facade_data_view.procedure_id.nil? ? "Tous les dossiers" : @facade_data_view.procedure.libelle
%div.col-lg-3.col-md-3.options %div.col-lg-3.col-md-3.col-sm-3.col-xs-3.options
%div.row %div.row
%div.col-lg-12.col-md-12 %div.col-lg-12.col-md-12.col-sm-12.col-xs-12
%a.button_navbar#pref_list_dossier_open_action{href: '#', type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false } %a.button_navbar#pref_list_dossier_open_action{href: '#', type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false }
%i.fa.fa-pencil %i.fa.fa-pencil
Modifier le tableau Modifier le tableau
%span.caret-right %span.caret-right
%div.row %div.row
%div.col-lg-12.col-md-12 %div.col-lg-12.col-md-12.col-sm-12.col-xs-12
= render partial: "dossiers/download_dossiers" = render partial: "dossiers/download_dossiers"

View file

@ -1,2 +1,2 @@
%div.col-lg-11.col-md-11.main-info %div.col-lg-11.col-md-11.col-sm-11.col-xs-11.main-info
Recherche dans tous les dossiers Recherche dans tous les dossiers

View file

@ -1,9 +1,9 @@
%div.col-lg-8.col-md-8.main-info %div.col-lg-8.col-md-8.col-sm-8.col-xs-8.main-info
%span{ 'data-toggle' => :tooltip, "data-placement" => :bottom, title: @facade.dossier.procedure.libelle } %span{ 'data-toggle' => :tooltip, "data-placement" => :bottom, title: @facade.dossier.procedure.libelle }
= @facade.dossier.procedure.libelle = @facade.dossier.procedure.libelle
%div.col-lg-3.col-md-3.options %div.col-lg-3.col-md-3.col-sm-3.col-xs-3.options
%div.row %div.row
%div.col-lg-12.col-md-12 %div.col-lg-12.col-md-12.col-sm-12.col-xs-12
- if current_gestionnaire.follow?(@facade.dossier.id) - if current_gestionnaire.follow?(@facade.dossier.id)
= link_to backoffice_dossier_follow_path(dossier_id: @facade.dossier.id), "data-method" => :put, class: "button-navbar-action",id: "suivre_dossier_#{@facade.dossier.id}" do = link_to backoffice_dossier_follow_path(dossier_id: @facade.dossier.id), "data-method" => :put, class: "button-navbar-action",id: "suivre_dossier_#{@facade.dossier.id}" do
%i.fa.fa-user-times %i.fa.fa-user-times
@ -13,7 +13,7 @@
%i.fa.fa-user-plus %i.fa.fa-user-plus
Suivre le dossier Suivre le dossier
%div.row %div.row
%div.col-lg-12.col-md-12 %div.col-lg-12.col-md-12.col-sm-12.col-xs-12
%div.dropdown-toggle{ 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false } %div.dropdown-toggle{ 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false }
%i.fa.fa-user %i.fa.fa-user
= t('utils.involved') = t('utils.involved')

View file

@ -1 +1 @@
.col-lg-11.col-md-11 .col-lg-11.col-md-11.col-sm-11.col-xs-11

View file

@ -1,17 +1,17 @@
-#%span.fa.fa-sign-out -#%span.fa.fa-sign-out
-if user_signed_in? -if user_signed_in?
.col-lg-1.col-md-1#sign_out.no-padding .col-lg-1.col-md-1.col-sm-1.col-xs-1#sign_out.no-padding
= render partial: 'users/login_banner' = render partial: 'users/login_banner'
= render partial: 'layouts/credentials' = render partial: 'layouts/credentials'
-elsif gestionnaire_signed_in? -elsif gestionnaire_signed_in?
.col-lg-1.col-md-1#sign_out.no-padding .col-lg-1.col-md-1.col-sm-1.col-xs-1#sign_out.no-padding
= render partial: 'gestionnaires/login_banner' = render partial: 'gestionnaires/login_banner'
= render partial: 'layouts/credentials' = render partial: 'layouts/credentials'
-elsif administrateur_signed_in? -elsif administrateur_signed_in?
.col-lg-1.col-md-1#sign_out.no-padding .col-lg-1.col-md-1.col-sm-1.col-xs-1#sign_out.no-padding
= render partial: 'administrateurs/login_banner' = render partial: 'administrateurs/login_banner'
= render partial: 'layouts/credentials' = render partial: 'layouts/credentials'
-else -else
.col-lg-1.col-md-1#sign_in .col-lg-1.col-md-1.col-sm-1.col-xs-1#sign_in
= link_to "Connexion", '/users/sign_in', :class => 'btn btn-lg' = link_to "Connexion", '/users/sign_in', :class => 'btn btn-lg'

View file

@ -1,9 +1,9 @@
%div.col-lg-8.col-md-8.main-info %div.col-lg-8.col-md-8.col-sm-8.col-xs-8.main-info
%span{ 'data-toggle' => :tooltip, "data-placement" => :bottom, title: @facade.dossier.procedure.libelle } %span{ 'data-toggle' => :tooltip, "data-placement" => :bottom, title: @facade.dossier.procedure.libelle }
= @facade.dossier.procedure.libelle.truncate(60) = @facade.dossier.procedure.libelle.truncate(60)
%div.col-lg-3.col-md-3.options %div.col-lg-3.col-md-3.col-sm-3.col-xs-3.options
%div.row.centered-option %div.row.centered-option
%div.col-lg-12.col-md-12 %div.col-lg-12.col-md-12.col-sm-12.col-xs-12
%div.dropdown-toggle{ 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false } %div.dropdown-toggle{ 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false }
%i.fa.fa-user %i.fa.fa-user
= t('utils.involved') = t('utils.involved')

View file

@ -18,9 +18,9 @@
#suite.max-size #suite.max-size
.row.word.simplifier .row.word.simplifier
.col-md-6.col-lg-6 .col-md-6.col-sm-6.col-xs-6.col-lg-6
= image_tag image_url('keywords/simplifier.png') = image_tag image_url('keywords/simplifier.png')
.col-md-6.col-lg-6 .col-md-6.col-sm-6.col-xs-6.col-lg-6
%ul.dynamic_ul %ul.dynamic_ul
%li %li
Générateur simplifié de démarches en ligne pour les administrations Générateur simplifié de démarches en ligne pour les administrations
@ -33,7 +33,7 @@
FranceConnect FranceConnect
.row.word.echanger .row.word.echanger
.col-md-6.col-lg-6 .col-md-6.col-sm-6.col-xs-6.col-lg-6
%ul.dynamic_ul %ul.dynamic_ul
%li %li
Tchatter avec les services traitant jusquà la complétude du dossier Tchatter avec les services traitant jusquà la complétude du dossier
@ -43,13 +43,13 @@
Accompagner les usagers dans leur démarche Accompagner les usagers dans leur démarche
%li %li
Vérifier les pièces au fur et à mesure Vérifier les pièces au fur et à mesure
.col-md-6.col-lg-6 .col-md-6.col-sm-6.col-xs-6.col-lg-6
= image_tag image_url('keywords/echanger.png') = image_tag image_url('keywords/echanger.png')
.row.word.profiter .row.word.profiter
.col-md-6.col-lg-6 .col-md-6.col-sm-6.col-xs-6.col-lg-6
= image_tag image_url('keywords/profiter.png') = image_tag image_url('keywords/profiter.png')
.col-md-6.col-lg-6 .col-md-6.col-sm-6.col-xs-6.col-lg-6
%ul.dynamic_ul %ul.dynamic_ul
%li %li
Profiter des ressources cartographiques directement mobilisées, si nécessaire Profiter des ressources cartographiques directement mobilisées, si nécessaire
@ -57,7 +57,7 @@
Récupérer des informations officielles collectées directement auprès des administrations Récupérer des informations officielles collectées directement auprès des administrations
.row.word.news .row.word.news
.latest_release.col-md-7.col-lg-7 .latest_release.col-md-7.col-sm-7.col-xs-7.col-lg-7
- if @latest_release.nil? - if @latest_release.nil?
%p %p
Erreur dans la récupération des données Erreur dans la récupération des données
@ -73,7 +73,7 @@
%a{href: 'https://github.com/sgmap/tps/releases', target: '_blank'} %a{href: 'https://github.com/sgmap/tps/releases', target: '_blank'}
= 'Voir toutes les versions' = 'Voir toutes les versions'
.col-md-5.col-lg-5 .col-md-5.col-sm-5.col-xs-5.col-lg-5
#video.center #video.center
%iframe{:allowfullscreen => "", :frameborder => "0", :height => "270", :src => "//www.dailymotion.com/embed/video/x3lp4cs", :width => "480"} %iframe{:allowfullscreen => "", :frameborder => "0", :height => "270", :src => "//www.dailymotion.com/embed/video/x3lp4cs", :width => "480"}
%br %br
@ -91,24 +91,24 @@
=link_to "TPS: dernière étape, la validation du dossier et notification", "http://dai.ly/x3s2p6k", {target: '_blank'} =link_to "TPS: dernière étape, la validation du dossier et notification", "http://dai.ly/x3s2p6k", {target: '_blank'}
.row.word.demo_account.center .row.word.demo_account.center
.col-md-4.col-lg-4 .col-md-4.col-sm-4.col-xs-4.col-lg-4
%h3.text-primary Acteurs publics %h3.text-primary Acteurs publics
%h4 Créez des démarches en ligne simplifiées et sécurisées. %h4 Créez des démarches en ligne simplifiées et sécurisées.
=link_to 'Démonstration', 'https://tps-dev.apientreprise.fr/administrateurs/sign_in/demo', {class: 'btn btn-lg btn-primary'} =link_to 'Démonstration', 'https://tps-dev.apientreprise.fr/administrateurs/sign_in/demo', {class: 'btn btn-lg btn-primary'}
.col-md-4.col-lg-4 .col-md-4.col-sm-4.col-xs-4.col-lg-4
%h3.text-warning Agents et services %h3.text-warning Agents et services
%h4 Accompagnez et co-traitez les projets avec les usagers. %h4 Accompagnez et co-traitez les projets avec les usagers.
=link_to 'Démonstration', 'https://tps-dev.apientreprise.fr/gestionnaires/sign_in/demo', {class: 'btn btn-lg btn-warning'} =link_to 'Démonstration', 'https://tps-dev.apientreprise.fr/gestionnaires/sign_in/demo', {class: 'btn btn-lg btn-warning'}
.col-md-4.col-lg-4 .col-md-4.col-sm-4.col-xs-4.col-lg-4
%h3.text-success Usagers %h3.text-success Usagers
%h4 Profitez de démarches simplifiées et déchanges continus avec les services traitants. %h4 Profitez de démarches simplifiées et déchanges continus avec les services traitants.
=link_to 'Démonstration', 'https://tps-dev.apientreprise.fr/users/sign_in/demo', {class: 'btn btn-lg btn-success'} =link_to 'Démonstration', 'https://tps-dev.apientreprise.fr/users/sign_in/demo', {class: 'btn btn-lg btn-success'}
.row.word.documentation .row.word.documentation
.col-md-4.col-lg-4.center .col-md-4.col-sm-4.col-xs-4.col-lg-4.center
= image_tag image_url('keywords/documentation.png') = image_tag image_url('keywords/documentation.png')
.col-md-4.col-lg-4 .col-md-4.col-sm-4.col-xs-4.col-lg-4
%ul.dynamic_ul %ul.dynamic_ul
%li %li
=link_to 'Dépliant de présentation', '/data/TPS_Trois_volets.pdf', {target: '_blank'} =link_to 'Dépliant de présentation', '/data/TPS_Trois_volets.pdf', {target: '_blank'}
@ -116,7 +116,7 @@
=link_to 'Documentation dutilisation', '/data/TPS_documentations_v1_1.pdf', {target: '_blank'} =link_to 'Documentation dutilisation', '/data/TPS_documentations_v1_1.pdf', {target: '_blank'}
-#%li -#%li
-# = link_to 'Documentation des APIs (béta)', '/docs', {target: '_blank'} -# = link_to 'Documentation des APIs (béta)', '/docs', {target: '_blank'}
.col-md-4.col-lg-4.center .col-md-4.col-sm-4.col-xs-4.col-lg-4.center
= link_to 'Demander un accès administrateur', 'https://tps.apientreprise.fr/users/dossiers/new?procedure_id=31', {class: 'btn btn-lg btn-primary', target: '_blank'} = link_to 'Demander un accès administrateur', 'https://tps.apientreprise.fr/users/dossiers/new?procedure_id=31', {class: 'btn btn-lg btn-primary', target: '_blank'}

View file

@ -1,5 +1,5 @@
.row#carto_page .row#carto_page
.col-lg-12.col-md-12 .col-lg-12.col-md-12.col-sm-12.col-xs-12
%h2 %h2
='Localisation' ='Localisation'
%h4.text-primary %h4.text-primary

View file

@ -1,13 +1,13 @@
%div.commentaire %div.commentaire
.row .row
%div.col-lg-12.col-md-12.comment-header %div.col-lg-12.col-md-12.col-sm-12.col-xs-12.comment-header
= commentaire.header = commentaire.header
.row .row
%div.col-lg-12.col-md-12.content %div.col-lg-12.col-md-12.col-sm-12.col-xs-12.content
= commentaire.body.html_safe = commentaire.body.html_safe
- if file = commentaire.piece_justificative - if file = commentaire.piece_justificative
.row .row
%div.col-lg-12.col-md-12.file %div.col-lg-12.col-md-12.col-sm-12.col-xs-12.file
= link_to file.content_url, class: 'link', target: '_blank' do = link_to file.content_url, class: 'link', target: '_blank' do
%span.fa.fa-file %span.fa.fa-file
%div %div

View file

@ -4,9 +4,9 @@
.panel.panel-info{style:'margin-bottom:0'} .panel.panel-info{style:'margin-bottom:0'}
.panel-body.center .panel-body.center
.row .row
.col-md-1.col-lg-1 .col-md-1.col-lg-1.col-sm-1.col-xs-1
.fa.fa-info-circle.text-info{style:'font-size: 2em; margin-top: 20%'} .fa.fa-info-circle.text-info{style:'font-size: 2em; margin-top: 20%'}
.col-md-10.col-lg-10{style:'padding-right: 0px'} .col-md-10.col-sm-10.col-xs-10.col-lg-10{style:'padding-right: 0px'}
%b %b
=link_to 'Accéder au guide', @dossier.procedure.lien_notice, {target: '_blank'} =link_to 'Accéder au guide', @dossier.procedure.lien_notice, {target: '_blank'}
pour remplir pour votre dossier pour remplir pour votre dossier
@ -39,9 +39,9 @@
.panel.panel-info .panel.panel-info
.panel-body.center .panel-body.center
.row .row
.col-md-1.col-lg-1 .col-md-1.col-lg-1.col-sm-1.col-xs-1
.fa.fa-info-circle.text-info{style:'font-size: 2em; margin-top: 20%'} .fa.fa-info-circle.text-info{style:'font-size: 2em; margin-top: 20%'}
.col-md-11.col-lg-11 .col-md-11.col-sm-11.col-xs-11.col-lg-11
Les documents administratifs ne sont pas indispensables afin d'initier votre dossier. Les documents administratifs ne sont pas indispensables afin d'initier votre dossier.
Vous pourrez dans tous les cas les compléter plus tard si vous ne les possédez pas de suite. Vous pourrez dans tous les cas les compléter plus tard si vous ne les possédez pas de suite.

View file

@ -1,5 +1,5 @@
.row .row
.col-lg-12.col-md-12 .col-lg-12.col-md-12.col-sm-12.col-xs-12
%br %br
%h3.text-info %h3.text-info
=libelle =libelle

View file

@ -1,7 +1,7 @@
.default_data_block.default_visible .default_data_block.default_visible
%div.row.show-block.infos %div.row.show-block.infos
%div.header %div.header
%div.col-lg-12.col-md-12.title %div.col-lg-12.col-md-12.col-sm-12.col-xs-12.title
%div.carret-right %div.carret-right
%div.carret-down %div.carret-down
=libelle =libelle

View file

@ -50,5 +50,5 @@
- unless champ.description.empty? || champ.type_champ == 'engagement' - unless champ.description.empty? || champ.type_champ == 'engagement'
.row .row
.col-lg-8.col-md-8{class: 'description_div', id:"description_champs_#{champ.id}"} .col-lg-8.col-md-8.col-sm-8.col-xs-8{class: 'description_div', id:"description_champs_#{champ.id}"}
= champ.description = champ.description

View file

@ -1,12 +1,12 @@
- unless smart_listing.empty? - unless smart_listing.empty?
%table#dossiers_list.table %table#dossiers_list.table
%thead %thead
%th#sort-id.col-md-1.col-lg-1= smart_listing.sortable 'Numéro', 'id' %th#sort-id.col-md-1.col-lg-1.col-sm-1.col-xs-1= smart_listing.sortable 'Numéro', 'id'
%th#sort-libelle.col-md-5.col-lg-5= smart_listing.sortable 'Procédure', 'procedure.libelle' %th#sort-libelle.col-md-5.col-sm-5.col-xs-5.col-lg-5= smart_listing.sortable 'Procédure', 'procedure.libelle'
%th#sort-state.col-md-2.col-lg-2= smart_listing.sortable 'État', 'state' %th#sort-state.col-md-2.col-sm-2.col-xs-2.col-lg-2= smart_listing.sortable 'État', 'state'
%th#sort-updated.col-md-2.col-lg-2= smart_listing.sortable 'Date de mise à jour', 'updated_at' %th#sort-updated.col-md-2.col-sm-2.col-xs-2.col-lg-2= smart_listing.sortable 'Date de mise à jour', 'updated_at'
- if @liste == "brouillon" - if @liste == "brouillon"
%th.col-md-2.col-lg-2= 'Action' %th.col-md-2.col-sm-2.col-xs-2.col-lg-2= 'Action'
- @dossiers.each do |dossier| - @dossiers.each do |dossier|
- if dossier.kind_of? Invite - if dossier.kind_of? Invite
- invite = dossier - invite = dossier

View file

@ -2,9 +2,9 @@
.panel.panel-info .panel.panel-info
.panel-body.center .panel-body.center
.row .row
.col-md-1.col-lg-1 .col-md-1.col-lg-1.col-sm-1.col-xs-1
.fa.fa-info-circle.text-info{style:'font-size: 2em; margin-top: 20%'} .fa.fa-info-circle.text-info{style:'font-size: 2em; margin-top: 20%'}
.col-md-11.col-lg-11 .col-md-11.col-sm-11.col-xs-11.col-lg-11
-if dossiers_list_facade.liste == 'brouillon' -if dossiers_list_facade.liste == 'brouillon'
Les dossiers présents dans cette liste Les dossiers présents dans cette liste
%b %b

View file

@ -2,11 +2,11 @@
.default_data_block.default_visible .default_data_block.default_visible
%div.row.show-block#new_dossiers %div.row.show-block#new_dossiers
%div.header %div.header
%div.col-lg-10.col-md-10.title %div.col-lg-10.col-md-10.col-sm-10.col-xs-10.title
%div.carret-right %div.carret-right
%div.carret-down %div.carret-down
Dossiers Dossiers
%div.col-lg-2.col-md-2.count %div.col-lg-2.col-md-2.col-sm-2.col-xs-2.count
-#0 -#0
-#dossiers -#dossiers
%div.body %div.body

View file

@ -1,2 +1,2 @@
%div.col-lg-12.col-md-12#users_recapitulatif_dossier_show %div.col-lg-12.col-md-12.col-sm-12.col-xs-12#users_recapitulatif_dossier_show
= render partial: "dossiers/dossier_show" = render partial: "dossiers/dossier_show"

View file

@ -22,7 +22,6 @@ feature 'As an Accompagnateur I can navigate and use each functionnality around
context 'On index' do context 'On index' do
if false
scenario 'Switching between procedures' do scenario 'Switching between procedures' do
page.all('#procedure_list a').first.click page.all('#procedure_list a').first.click
expect(page).to have_current_path(backoffice_dossiers_procedure_path(id: procedure_1.id.to_s), only_path: true) expect(page).to have_current_path(backoffice_dossiers_procedure_path(id: procedure_1.id.to_s), only_path: true)
@ -49,20 +48,53 @@ feature 'As an Accompagnateur I can navigate and use each functionnality around
page.all('#dossiers_list a').first.click page.all('#dossiers_list a').first.click
expect(page.all('#follow_dossiers .smart-listing')[0]['data-item-count']).to eq ("1") expect(page.all('#follow_dossiers .smart-listing')[0]['data-item-count']).to eq ("1")
end end
end
scenario 'Using sort' do scenario 'Using sort and pagination' do
end visit "/backoffice/dossiers/procedure/1?all_state_dossiers_smart_listing[sort][id]=asc"
wait_for_ajax
if false expect(page.all("#all_state_dossiers .dossier-row")[0]['id']).to eq('tr_dossier_1')
scenario 'Using pagination' do visit "/backoffice/dossiers/procedure/1?all_state_dossiers_smart_listing[sort][id]=desc"
wait_for_ajax
expect(page.all(".dossier-row")[0]['id']).to eq('tr_dossier_20')
page.find('#all_state_dossiers .next_page a').trigger('click')
wait_for_ajax
page.find('#all_state_dossiers .next_page a').trigger('click')
wait_for_ajax
expect(page.all(".dossier-row")[0]['id']).to eq('tr_dossier_6')
page.find('#all_state_dossiers .prev a').trigger('click')
wait_for_ajax
expect(page.all(".dossier-row")[0]['id']).to eq('tr_dossier_13')
end end
scenario 'Using filter' do scenario 'Using filter' do
end end
scenario 'Have an export button' do scenario 'Have an export button' do
expect(page.all('.export-link')[0].text).to eq('Au format CSV')
expect(page.all('.export-link')[1].text).to eq('Au format XLSX')
expect(page.all('.export-link')[2].text).to eq('Au format ODS')
end end
end
context 'On show' do
scenario 'Following dossier' do
expect(page.all('#follow_dossiers .count').first.text).to eq('0 dossiers')
visit "/backoffice/dossiers/procedure/1?all_state_dossiers_smart_listing[sort][id]=asc"
page.find_by_id("suivre_dossier_1").trigger('click')
visit "backoffice/dossiers/4"
page.find_by_id("suivre_dossier_4").trigger('click')
visit "/backoffice/dossiers/procedure/1"
expect(page.all('#follow_dossiers .count').first.text).to eq('2 dossiers')
end
scenario 'Adding message' do
page.find_by_id('tr_dossier_4').trigger('click')
expect(page).to have_current_path(backoffice_dossier_path(4), only_path: true)
page.find_by_id('open-message').click
page.execute_script("$('#texte_commentaire').data('wysihtml5').editor.setValue('Contenu du nouveau message')")
page.find_by_id('save-message').click
expect(page.find('.last-commentaire .content').text).to eq('Contenu du nouveau message')
end end
end end
end end