NewDesign: add dossier instruction view
This commit is contained in:
parent
d23816a6b6
commit
f03d8ef909
5 changed files with 29 additions and 1 deletions
17
app/assets/stylesheets/new_design/dossier_instruction.scss
Normal file
17
app/assets/stylesheets/new_design/dossier_instruction.scss
Normal file
|
@ -0,0 +1,17 @@
|
|||
@import "colors";
|
||||
@import "common";
|
||||
@import "constants";
|
||||
|
||||
#dossier-instruction {
|
||||
h1 {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
margin-bottom: $default-padding;
|
||||
}
|
||||
|
||||
.avis-notice {
|
||||
font-size: 12px;
|
||||
color: $grey;
|
||||
margin-bottom: 2 * $default-padding;
|
||||
}
|
||||
}
|
|
@ -12,6 +12,10 @@ module NewGestionnaire
|
|||
@dossier = dossier
|
||||
end
|
||||
|
||||
def instruction
|
||||
@dossier = dossier
|
||||
end
|
||||
|
||||
def follow
|
||||
current_gestionnaire.follow(dossier)
|
||||
dossier.next_step!('gestionnaire', 'follow')
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
%li
|
||||
= link_to "Demande", dossier_path(dossier.procedure, dossier), class: ("selected" if current_page?(dossier_path(dossier.procedure, dossier)))
|
||||
%li
|
||||
= link_to "Instruction", "#"
|
||||
= link_to "Instruction", instruction_dossier_path(dossier.procedure, dossier), class: current_page?(instruction_dossier_path(dossier.procedure, dossier)) ? 'selected' : nil
|
||||
%li
|
||||
= link_to "Messagerie", messagerie_dossier_path(dossier.procedure, dossier), class: current_page?(messagerie_dossier_path(dossier.procedure, dossier)) ? 'selected' : nil
|
||||
%li
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
= render partial: "header", locals: { dossier: @dossier }
|
||||
|
||||
#dossier-instruction.container
|
||||
%section
|
||||
%h1 Inviter une personne à donner son avis
|
||||
%p.avis-notice Elle pourra consulter, donner un avis sur le dossier et contribuer au fil de messagerie, mais elle ne pourra le modifier.
|
|
@ -243,6 +243,7 @@ Rails.application.routes.draw do
|
|||
member do
|
||||
get 'attestation'
|
||||
get 'messagerie'
|
||||
get 'instruction'
|
||||
patch 'follow'
|
||||
patch 'unfollow'
|
||||
patch 'archive'
|
||||
|
|
Loading…
Reference in a new issue