- 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;
|
padding-top: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wysihtml5-sandbox {
|
||||||
|
resize:vertical;
|
||||||
|
}
|
||||||
|
|
||||||
#wrap {
|
#wrap {
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
margin-bottom: -50px;
|
margin-bottom: -50px;
|
||||||
|
|
|
@ -5,7 +5,11 @@
|
||||||
.form-group{class: ('has-error' if @procedure.errors.messages[key])}
|
.form-group{class: ('has-error' if @procedure.errors.messages[key])}
|
||||||
%h4
|
%h4
|
||||||
=value
|
=value
|
||||||
=f.text_field key, class: 'form-control', placeholder: 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
|
.row
|
||||||
.col-md-6.col-lg-6
|
.col-md-6.col-lg-6
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
%h4.text-info
|
%h4.text-info
|
||||||
= @facade.procedure.libelle
|
= @facade.procedure.libelle
|
||||||
|
|
||||||
= @facade.procedure.description
|
= @facade.procedure.description.html_safe
|
||||||
.champs.col-md-4.col-lg-4
|
.champs.col-md-4.col-lg-4
|
||||||
%h4.text-info
|
%h4.text-info
|
||||||
Champs
|
Champs
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
.container#description_page
|
.container#description_page
|
||||||
%h2 Description de votre projet
|
%h2
|
||||||
|
= @dossier.procedure.libelle
|
||||||
|
%h3 Votre dossier
|
||||||
|
|
||||||
%br
|
%br
|
||||||
|
|
||||||
-#TODO use form_for
|
-#TODO use form_for
|
||||||
|
@ -7,12 +10,12 @@
|
||||||
%div
|
%div
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.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'
|
= text_field_tag :nom_projet, @dossier.nom_projet, placeholder: 'Nom du projet', class: 'form-control'
|
||||||
%br
|
%br
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.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'
|
= text_area_tag :description, @dossier.description, rows: '6', placeholder: 'Description du projet', class: 'form-control wysihtml5'
|
||||||
|
|
||||||
#liste_champs
|
#liste_champs
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
%h2#titre_procedure.text-info
|
%h2#titre_procedure.text-info
|
||||||
= @dossier.procedure.libelle
|
= @dossier.procedure.libelle
|
||||||
%p
|
%p
|
||||||
= @dossier.procedure.description
|
= @dossier.procedure.description.html_safe
|
||||||
%br
|
%br
|
||||||
|
|
||||||
= form_for @dossier, url: {controller: 'users/dossiers', action: :create}, method: :post do |f|
|
= form_for @dossier, url: {controller: 'users/dossiers', action: :create}, method: :post do |f|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
= @procedure.libelle
|
= @procedure.libelle
|
||||||
|
|
||||||
%p
|
%p
|
||||||
= @procedure.description
|
= @procedure.description.html_safe
|
||||||
|
|
||||||
%br
|
%br
|
||||||
= form_tag(url_for({controller: :dossiers, action: :create}), class: 'form-inline', method: 'POST') do |f|
|
= 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[:label]).to eq(procedure.libelle) }
|
||||||
it { expect(subject[:description]).to eq(procedure.description) }
|
it { expect(subject[:description]).to eq(procedure.description) }
|
||||||
it { expect(subject[:organisation]).to eq(procedure.organisation) }
|
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[:link]).to eq(procedure.lien_demarche) }
|
||||||
it { expect(subject[:archived]).to eq(procedure.archived) }
|
it { expect(subject[:archived]).to eq(procedure.archived) }
|
||||||
it { is_expected.to have_key(:types_de_champ) }
|
it { is_expected.to have_key(:types_de_champ) }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue