- Add resize on wysihtml5 bootstrap
- Add rich text on procedure description - Ajust text on description dossier user form
This commit is contained in:
parent
4282ab11be
commit
f4de0b8431
7 changed files with 19 additions and 8 deletions
|
@ -35,6 +35,10 @@ body {
|
|||
padding-top: 50px;
|
||||
}
|
||||
|
||||
.wysihtml5-sandbox {
|
||||
resize:vertical;
|
||||
}
|
||||
|
||||
#wrap {
|
||||
min-height: 100%;
|
||||
margin-bottom: -50px;
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
.form-group{class: ('has-error' if @procedure.errors.messages[key])}
|
||||
%h4
|
||||
=value
|
||||
- if key == :description
|
||||
= f.text_area key, rows: '6', placeholder: 'Description du projet', class: 'form-control wysihtml5'
|
||||
|
||||
- else
|
||||
=f.text_field key, class: 'form-control', placeholder: value
|
||||
|
||||
.row
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
%h4.text-info
|
||||
= @facade.procedure.libelle
|
||||
|
||||
= @facade.procedure.description
|
||||
= @facade.procedure.description.html_safe
|
||||
.champs.col-md-4.col-lg-4
|
||||
%h4.text-info
|
||||
Champs
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
.container#description_page
|
||||
%h2 Description de votre projet
|
||||
%h2
|
||||
= @dossier.procedure.libelle
|
||||
%h3 Votre dossier
|
||||
|
||||
%br
|
||||
|
||||
-#TODO use form_for
|
||||
|
@ -7,12 +10,12 @@
|
|||
%div
|
||||
.row
|
||||
.col-md-12
|
||||
%h4 Nom de votre projet *
|
||||
%h4 Libellé pour votre dossier *
|
||||
= text_field_tag :nom_projet, @dossier.nom_projet, placeholder: 'Nom du projet', class: 'form-control'
|
||||
%br
|
||||
.row
|
||||
.col-md-12
|
||||
%h4 Description de votre projet *
|
||||
%h4 Description *
|
||||
= text_area_tag :description, @dossier.description, rows: '6', placeholder: 'Description du projet', class: 'form-control wysihtml5'
|
||||
|
||||
#liste_champs
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
%h2#titre_procedure.text-info
|
||||
= @dossier.procedure.libelle
|
||||
%p
|
||||
= @dossier.procedure.description
|
||||
= @dossier.procedure.description.html_safe
|
||||
%br
|
||||
|
||||
= form_for @dossier, url: {controller: 'users/dossiers', action: :create}, method: :post do |f|
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
= @procedure.libelle
|
||||
|
||||
%p
|
||||
= @procedure.description
|
||||
= @procedure.description.html_safe
|
||||
|
||||
%br
|
||||
= form_tag(url_for({controller: :dossiers, action: :create}), class: 'form-inline', method: 'POST') do |f|
|
||||
|
|
|
@ -32,7 +32,7 @@ describe API::V1::ProceduresController do
|
|||
it { expect(subject[:label]).to eq(procedure.libelle) }
|
||||
it { expect(subject[:description]).to eq(procedure.description) }
|
||||
it { expect(subject[:organisation]).to eq(procedure.organisation) }
|
||||
it { expect(subject[:direction]).to eq(proced,ure.direction) }
|
||||
it { expect(subject[:direction]).to eq(procedure.direction) }
|
||||
it { expect(subject[:link]).to eq(procedure.lien_demarche) }
|
||||
it { expect(subject[:archived]).to eq(procedure.archived) }
|
||||
it { is_expected.to have_key(:types_de_champ) }
|
||||
|
|
Loading…
Reference in a new issue