Fix all tests
This commit is contained in:
parent
4f7bcba8a3
commit
bc4e3860be
23 changed files with 562 additions and 291 deletions
|
@ -62,7 +62,7 @@
|
|||
|
||||
- unless @facade.entreprise.nil?
|
||||
.default_data_block
|
||||
%div.row.show-block#infos
|
||||
%div.row.show-block#infos_entreprise
|
||||
%div.header
|
||||
%div.col-lg-12.col-md-12.title
|
||||
%div.carret-right
|
||||
|
@ -72,7 +72,7 @@
|
|||
= render partial: '/dossiers/infos_entreprise'
|
||||
|
||||
.default_data_block
|
||||
%div.row.show-block#dossier
|
||||
%div.row.show-block#infos_dossier
|
||||
%div.header
|
||||
%div.col-lg-10.col-md-10.title
|
||||
%div.carret-right
|
||||
|
|
|
@ -1,46 +0,0 @@
|
|||
%ul{class: "nav nav-tabs", role: "tablist"}
|
||||
%li{role: "presentation", class: "active"}
|
||||
%a{href: "#commentaires", 'aria-controls' => "commentaires", role: "tab", 'data-toggle' => "tab"}
|
||||
Commentaires
|
||||
%li{role: "presentation"}
|
||||
%a{href: "#commentaires_files", 'aria-controls' => "commentaires_files", role: "tab", 'data-toggle' => "tab"}
|
||||
Fichiers
|
||||
|
||||
- if gestionnaire_signed_in? || @facade.dossier.owner?(current_user.email)
|
||||
%li{role: "presentation"}
|
||||
%a{href: "#invites", 'aria-controls' => "invites", role: "tab", 'data-toggle' => "tab"}
|
||||
Invités
|
||||
|
||||
- if gestionnaire_signed_in? && (!request.env['PATH_INFO'].include?('users/dossiers') )
|
||||
%li{role: "presentation"}
|
||||
%a{href: "#followers", 'aria-controls' => "followers", role: "tab", 'data-toggle' => "tab"}
|
||||
Abonnés
|
||||
%li{role: "presentation"}
|
||||
%a{href: "#champs_private", 'aria-controls' => "champs_private", role: "tab", 'data-toggle' => "tab"}
|
||||
Champs privés
|
||||
|
||||
%div{class: "tab-content"}
|
||||
%div{role: "tabpanel", class: "tab-pane fade in active", id:"commentaires"}
|
||||
%h3 Flux de commentaires
|
||||
%br
|
||||
= render partial: '/users/recapitulatif/commentaires_flux'
|
||||
%div{role: "tabpanel", class: "tab-pane fade", id:"commentaires_files"}
|
||||
= render partial: '/dossiers/commentaires_files'
|
||||
|
||||
- if gestionnaire_signed_in? || @facade.dossier.owner?(current_user.email)
|
||||
%div{role: "tabpanel", class: "tab-pane fade", id:"invites"}
|
||||
= render partial: '/dossiers/invites'
|
||||
- if gestionnaire_signed_in? && !request.env['PATH_INFO'].include?('users/dossiers')
|
||||
%div{role: "tabpanel", class: "tab-pane fade", id:"followers"}
|
||||
= render partial: 'followers'
|
||||
%div{role: "tabpanel", class: "tab-pane fade", id:"champs_private"}
|
||||
%h3 Champs privés
|
||||
- if @champs.nil? || @champs.empty?
|
||||
%br
|
||||
%h4.text-primary
|
||||
Pas de champ privé pour ce dossier
|
||||
- else
|
||||
= form_for @facade.dossier, url: {controller: 'backoffice/private_formulaires', action: :update, dossier_id: @facade.dossier.id}, remote: true do
|
||||
= render partial: '/users/description/champs'
|
||||
%br
|
||||
= submit_tag :Enregistrer, {class: 'btn btn-success', style: 'float: right'}
|
Loading…
Add table
Add a link
Reference in a new issue