Adding white back to some views
This commit is contained in:
parent
72ebacf3cc
commit
e228f20684
14 changed files with 258 additions and 238 deletions
|
@ -15,9 +15,26 @@
|
|||
}
|
||||
|
||||
#users_siret_index {
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
#description_page {
|
||||
}
|
||||
|
||||
#carto_page {
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
.white-back {
|
||||
margin: 20px !important;
|
||||
#previsualisation {
|
||||
margin-top: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.white-back, #users_siret_index, #description_page, #carto_page {
|
||||
background-color: #FFFFFF;
|
||||
box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.5);
|
||||
margin: 20px;
|
||||
padding: 20px;
|
||||
.action {
|
||||
background-color: #E45B51;
|
||||
|
|
|
@ -1,28 +1,25 @@
|
|||
=render partial: 'admin/procedures/head', locals: {active: 'Accompagnateurs'}
|
||||
|
||||
#accompagnateur_form
|
||||
.row
|
||||
.col-md-6.col-lg-6
|
||||
%h3.text-info Disponibles
|
||||
= smart_listing_render :accompagnateurs_not_assign
|
||||
|
||||
%br
|
||||
%h3
|
||||
=t('dynamics.admin.procedure.onglet_accompagnateurs.add.title')
|
||||
#procedure_new.section.section-label
|
||||
= form_for @gestionnaire, url: {controller: 'admin/gestionnaires', action: :create} do |f|
|
||||
.row
|
||||
.col-md-5.col-lg-5
|
||||
= hidden_field_tag :procedure_id, params[:procedure_id]
|
||||
=render partial: 'admin/gestionnaires/informations', locals: {f: f}
|
||||
.col-md-2.col-lg-2
|
||||
%br
|
||||
%br
|
||||
=f.submit 'Valider', class: 'btn btn-info', style: 'float:left'
|
||||
|
||||
.col-md-6.col-lg-6
|
||||
%h3.text-success Affectés
|
||||
|
||||
= smart_listing_render :accompagnateurs_assign
|
||||
.row.white-back
|
||||
= render partial: 'admin/procedures/head', locals: {active: 'Accompagnateurs'}
|
||||
|
||||
#accompagnateur_form
|
||||
.row
|
||||
.col-md-6.col-lg-6
|
||||
%h3.text-info Disponibles
|
||||
= smart_listing_render :accompagnateurs_not_assign
|
||||
|
||||
%br
|
||||
%h3
|
||||
= t('dynamics.admin.procedure.onglet_accompagnateurs.add.title')
|
||||
#procedure_new.section.section-label
|
||||
= form_for @gestionnaire, url: {controller: 'admin/gestionnaires', action: :create} do |f|
|
||||
.row
|
||||
.col-md-5.col-lg-5
|
||||
= hidden_field_tag :procedure_id, params[:procedure_id]
|
||||
=render partial: 'admin/gestionnaires/informations', locals: {f: f}
|
||||
.col-md-2.col-lg-2
|
||||
%br
|
||||
%br
|
||||
= f.submit 'Valider', class: 'btn btn-info', style: 'float:left'
|
||||
.col-md-6.col-lg-6
|
||||
%h3.text-success Affectés
|
||||
= smart_listing_render :accompagnateurs_assign
|
||||
|
|
|
@ -1,29 +1,30 @@
|
|||
=render partial: 'admin/procedures/head', locals: {active: 'E-mails'}
|
||||
.row.white-back
|
||||
= render partial: 'admin/procedures/head', locals: {active: 'E-mails'}
|
||||
|
||||
%h3
|
||||
E-mail d'accusé de réception
|
||||
%h3
|
||||
E-mail d'accusé de réception
|
||||
|
||||
- unless @procedure.mail_received.blank?
|
||||
= form_for @procedure.mail_received, url: {controller: 'admin/mails', action: 'update', id: @procedure.mail_received.id} do |f|
|
||||
=f.text_field :object, {class:'form-control', style:'width: 40%'}
|
||||
%br
|
||||
=f.text_area :body, {class: 'form-control wysihtml5'}
|
||||
%br
|
||||
=f.submit 'Mettre à jour', {class:'btn btn-success', style:'float: right'}
|
||||
- unless @procedure.mail_received.blank?
|
||||
= form_for @procedure.mail_received, url: {controller: 'admin/mails', action: 'update', id: @procedure.mail_received.id} do |f|
|
||||
=f.text_field :object, {class:'form-control', style:'width: 40%'}
|
||||
%br
|
||||
=f.text_area :body, {class: 'form-control wysihtml5'}
|
||||
%br
|
||||
=f.submit 'Mettre à jour', {class:'btn btn-success', style:'float: right'}
|
||||
|
||||
|
||||
%table.table{style:'width: 50%'}
|
||||
%tr
|
||||
%th
|
||||
Balise
|
||||
%th
|
||||
Description
|
||||
- MailTemplate.tags.each do |balise|
|
||||
%table.table{style:'width: 50%'}
|
||||
%tr
|
||||
%td.center
|
||||
%b.text-success
|
||||
\--
|
||||
= balise.first
|
||||
\--
|
||||
%td
|
||||
=balise.second[:description]
|
||||
%th
|
||||
Balise
|
||||
%th
|
||||
Description
|
||||
- MailTemplate.tags.each do |balise|
|
||||
%tr
|
||||
%td.center
|
||||
%b.text-success
|
||||
\--
|
||||
= balise.first
|
||||
\--
|
||||
%td
|
||||
=balise.second[:description]
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
=render partial: 'admin/procedures/head', locals: {active: 'Pieces'}
|
||||
.row.white-back
|
||||
= render partial: 'admin/procedures/head', locals: {active: 'Pieces'}
|
||||
|
||||
#piece_justificative_form
|
||||
= render 'form'
|
||||
#piece_justificative_form
|
||||
= render 'form'
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
=render partial: 'admin/procedures/head', locals: {active: 'Prévisualisation'}
|
||||
.row.white-back
|
||||
= render partial: 'admin/procedures/head', locals: {active: 'Prévisualisation'}
|
||||
|
||||
#previsualisation
|
||||
=render 'users/description/show'
|
||||
#previsualisation
|
||||
= render 'users/description/show'
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
%br
|
||||
|
||||
%ul.nav.nav-tabs
|
||||
= render partial: 'admin/procedures/navbar', locals: {active: active}
|
||||
= render partial: 'admin/procedures/navbar', locals: {active: active}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
= render partial: 'head', locals: {active: 'Description'}
|
||||
.row.white-back
|
||||
= render partial: 'head', locals: {active: 'Description'}
|
||||
|
||||
#procedure_new.section.section-label
|
||||
= form_for @procedure, url: url_for({controller: 'admin/procedures', action: :update, id: @procedure.id}), multipart: true do |f|
|
||||
= render partial: 'informations', locals: {f: f}
|
||||
= f.submit 'Editer', class: 'btn btn-success', style: 'float:right'
|
||||
%br
|
||||
%br
|
||||
#procedure_new.section.section-label
|
||||
= form_for @procedure, url: url_for({controller: 'admin/procedures', action: :update, id: @procedure.id}), multipart: true do |f|
|
||||
= render partial: 'informations', locals: {f: f}
|
||||
= f.submit 'Editer', class: 'btn btn-success', style: 'float:right'
|
||||
%br
|
||||
%br
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
%h2
|
||||
=t('dynamics.admin.dossiers.tableau_de_bord.nouvelle_procedure')
|
||||
.row.white-back
|
||||
%h2
|
||||
=t('dynamics.admin.dossiers.tableau_de_bord.nouvelle_procedure')
|
||||
|
||||
#procedure_new.section.section-label
|
||||
= form_for @procedure, url: {controller: 'admin/procedures', action: :create}, multipart: true do |f|
|
||||
=render partial: 'informations', locals: {f: f}
|
||||
=f.submit 'Valider', class: 'btn btn-info', style: 'float:right'
|
||||
%br
|
||||
%br
|
||||
%br
|
||||
#procedure_new.section.section-label
|
||||
= form_for @procedure, url: {controller: 'admin/procedures', action: :create}, multipart: true do |f|
|
||||
=render partial: 'informations', locals: {f: f}
|
||||
=f.submit 'Valider', class: 'btn btn-info', style: 'float:right'
|
||||
|
|
|
@ -1,126 +1,127 @@
|
|||
#procedure_show
|
||||
=render partial: 'head', locals: {active: 'Informations'}
|
||||
.row.white-back
|
||||
#procedure_show
|
||||
= render partial: 'head', locals: {active: 'Informations'}
|
||||
|
||||
-unless @facade.procedure.published?
|
||||
- if @facade.procedure.gestionnaires.size == 0
|
||||
%a.action_button.btn.btn-success{style:'float: right; margin-top: 10px', disabled: 'disabled', 'data-toggle' => :tooltip, title: 'Vous ne pouvez pas publier une procédure sans qu\'aucun accompagnateur ne soit affecté à celle-ci.'}
|
||||
%i.fa.fa-eraser
|
||||
Publier
|
||||
-else
|
||||
%a#publish.btn.btn-success{"data-target" => "#publishModal", "data-toggle" => "modal", :type => "button", style:'float: right; margin-top: 10px'}
|
||||
%i.fa.fa-eraser
|
||||
Publier
|
||||
|
||||
=render partial: '/admin/procedures/modal_publish'
|
||||
|
||||
%a#transfer.btn.btn-small.btn-default{"data-target" => "#transferModal", "data-toggle" => "modal", :type => "button", style:'float: right; margin-top: 10px; margin-right: 10px'}
|
||||
%i.fa.fa-exchange
|
||||
Transférer
|
||||
|
||||
=render partial: '/admin/procedures/modal_transfer'
|
||||
|
||||
-if @facade.procedure.archived?
|
||||
%a#reenable.btn.btn-small.btn-default.text-info{"data-target" => "#publishModal", "data-toggle" => "modal", :type => "button", style:'float: right; margin-top: 10px'}
|
||||
%i.fa.fa-eraser
|
||||
Réactiver
|
||||
|
||||
=render partial: '/admin/procedures/modal_publish'
|
||||
|
||||
-elsif @facade.procedure.published?
|
||||
= form_tag admin_procedure_archive_path(procedure_id: @facade.procedure.id, archive: !@facade.procedure.archived?), method: :put, style:'float: right; margin-top: 10px' do
|
||||
%button#archive.btn.btn-small.btn-default.text-info{type: :button}
|
||||
%i.fa.fa-eraser
|
||||
= 'Archiver'
|
||||
#confirm
|
||||
%button#valid.btn.btn-small.btn-success{type: :submit}
|
||||
%i.fa.fa-check
|
||||
Valider
|
||||
%button#cancel.btn.btn-small.btn-danger{type: :button}
|
||||
%i.fa.fa-remove
|
||||
Annuler
|
||||
|
||||
- if @facade.procedure.locked?
|
||||
#procedure_locked.center
|
||||
%h5
|
||||
.label.label-info La procédure ne peut plus être modifiée car elle a été publiée
|
||||
|
||||
%div
|
||||
%h3 Lien procédure
|
||||
%div{style:'margin-left:3%'}
|
||||
-if @facade.procedure.archived?
|
||||
%b
|
||||
Cette procédure a été archivée et n'est plus accessible par le public.
|
||||
-elsif @facade.procedure.published?
|
||||
= @facade.procedure.lien
|
||||
-unless @facade.procedure.published?
|
||||
- if @facade.procedure.gestionnaires.size == 0
|
||||
%a.action_button.btn.btn-success{style:'float: right; margin-top: 10px', disabled: 'disabled', 'data-toggle' => :tooltip, title: 'Vous ne pouvez pas publier une procédure sans qu\'aucun accompagnateur ne soit affecté à celle-ci.'}
|
||||
%i.fa.fa-eraser
|
||||
Publier
|
||||
-else
|
||||
%b
|
||||
Cette procédure n'a pas encore été publiée et n'est donc pas accessible par le public.
|
||||
%a#publish.btn.btn-success{"data-target" => "#publishModal", "data-toggle" => "modal", :type => "button", style:'float: right; margin-top: 10px'}
|
||||
%i.fa.fa-eraser
|
||||
Publier
|
||||
|
||||
%br
|
||||
%h3 Détails
|
||||
=render partial: '/admin/procedures/modal_publish'
|
||||
|
||||
.row{style:'margin-right:3%; margin-left:3%;'}
|
||||
.description.col-md-4.col-lg-4
|
||||
%h4.text-info
|
||||
= @facade.procedure.libelle
|
||||
%a#transfer.btn.btn-small.btn-default{"data-target" => "#transferModal", "data-toggle" => "modal", :type => "button", style:'float: right; margin-top: 10px; margin-right: 10px'}
|
||||
%i.fa.fa-exchange
|
||||
Transférer
|
||||
|
||||
= h @facade.procedure.description.html_safe
|
||||
.champs.col-md-4.col-lg-4
|
||||
%h4.text-info
|
||||
Champs
|
||||
.badge.progress-bar-info
|
||||
= @facade.procedure.types_de_champ.size
|
||||
- @facade.procedure.types_de_champ.order(:order_place).each do |champ|
|
||||
= champ.libelle
|
||||
%br
|
||||
=render partial: '/admin/procedures/modal_transfer'
|
||||
|
||||
.pieces_justificatives.col-md-4.col-lg-4
|
||||
%h4.text-info
|
||||
Pièces justificatives
|
||||
.badge.progress-bar-info
|
||||
= @facade.procedure.types_de_piece_justificative.size
|
||||
- @facade.procedure.types_de_piece_justificative.each do |piece_justificative|
|
||||
= piece_justificative.libelle
|
||||
%br
|
||||
%br
|
||||
%h3
|
||||
=t('dynamics.admin.procedure.stats.title')
|
||||
-if @facade.procedure.archived?
|
||||
%a#reenable.btn.btn-small.btn-default.text-info{"data-target" => "#publishModal", "data-toggle" => "modal", :type => "button", style:'float: right; margin-top: 10px'}
|
||||
%i.fa.fa-eraser
|
||||
Réactiver
|
||||
|
||||
.row
|
||||
.col-md-6.col-lg-6{style:'margin-left:3%'}
|
||||
%h4 Total
|
||||
%div
|
||||
= @facade.dossiers_total
|
||||
=render partial: '/admin/procedures/modal_publish'
|
||||
|
||||
%h4.text-danger Attente Accompagnateur
|
||||
%div
|
||||
= @facade.dossiers_waiting_gestionnaire_total
|
||||
-elsif @facade.procedure.published?
|
||||
= form_tag admin_procedure_archive_path(procedure_id: @facade.procedure.id, archive: !@facade.procedure.archived?), method: :put, style:'float: right; margin-top: 10px' do
|
||||
%button#archive.btn.btn-small.btn-default.text-info{type: :button}
|
||||
%i.fa.fa-eraser
|
||||
= 'Archiver'
|
||||
#confirm
|
||||
%button#valid.btn.btn-small.btn-success{type: :submit}
|
||||
%i.fa.fa-check
|
||||
Valider
|
||||
%button#cancel.btn.btn-small.btn-danger{type: :button}
|
||||
%i.fa.fa-remove
|
||||
Annuler
|
||||
|
||||
%h4.text-info Attente Utilisateur
|
||||
%div
|
||||
= @facade.dossiers_waiting_user_total
|
||||
- if @facade.procedure.locked?
|
||||
#procedure_locked.center
|
||||
%h5
|
||||
.label.label-info La procédure ne peut plus être modifiée car elle a été publiée
|
||||
|
||||
%h4.text-success Terminé
|
||||
%div
|
||||
= @facade.dossiers_termine_total
|
||||
%div
|
||||
%h3 Lien procédure
|
||||
%div{style:'margin-left:3%'}
|
||||
-if @facade.procedure.archived?
|
||||
%b
|
||||
Cette procédure a été archivée et n'est plus accessible par le public.
|
||||
-elsif @facade.procedure.published?
|
||||
= @facade.procedure.lien
|
||||
-else
|
||||
%b
|
||||
Cette procédure n'a pas encore été publiée et n'est donc pas accessible par le public.
|
||||
|
||||
%h4 Archivé
|
||||
%br
|
||||
%h3 Détails
|
||||
|
||||
- unless @facade.dossiers_archived_total == 0
|
||||
%ul
|
||||
- @facade.dossiers_archived_by_state_total.each do |dossier|
|
||||
%li
|
||||
= dossier.display_state
|
||||
\:
|
||||
= dossier.total
|
||||
- else
|
||||
%p
|
||||
0
|
||||
.row{style:'margin-right:3%; margin-left:3%;'}
|
||||
.description.col-md-4.col-lg-4
|
||||
%h4.text-info
|
||||
= @facade.procedure.libelle
|
||||
|
||||
.col-md-5.col-lg-5
|
||||
%h4 Non archivés
|
||||
= javascript_include_tag "https://code.highcharts.com/highcharts.js", "chartkick"
|
||||
- if @facade.dossiers_for_pie_highchart.blank?
|
||||
Aucune statistique pour le moment
|
||||
-else
|
||||
=pie_chart @facade.dossiers_for_pie_highchart
|
||||
= h @facade.procedure.description.html_safe
|
||||
.champs.col-md-4.col-lg-4
|
||||
%h4.text-info
|
||||
Champs
|
||||
.badge.progress-bar-info
|
||||
= @facade.procedure.types_de_champ.size
|
||||
- @facade.procedure.types_de_champ.order(:order_place).each do |champ|
|
||||
= champ.libelle
|
||||
%br
|
||||
|
||||
.pieces_justificatives.col-md-4.col-lg-4
|
||||
%h4.text-info
|
||||
Pièces justificatives
|
||||
.badge.progress-bar-info
|
||||
= @facade.procedure.types_de_piece_justificative.size
|
||||
- @facade.procedure.types_de_piece_justificative.each do |piece_justificative|
|
||||
= piece_justificative.libelle
|
||||
%br
|
||||
%br
|
||||
%h3
|
||||
=t('dynamics.admin.procedure.stats.title')
|
||||
|
||||
.row
|
||||
.col-md-6.col-lg-6{style:'margin-left:3%'}
|
||||
%h4 Total
|
||||
%div
|
||||
= @facade.dossiers_total
|
||||
|
||||
%h4.text-danger Attente Accompagnateur
|
||||
%div
|
||||
= @facade.dossiers_waiting_gestionnaire_total
|
||||
|
||||
%h4.text-info Attente Utilisateur
|
||||
%div
|
||||
= @facade.dossiers_waiting_user_total
|
||||
|
||||
%h4.text-success Terminé
|
||||
%div
|
||||
= @facade.dossiers_termine_total
|
||||
|
||||
%h4 Archivé
|
||||
|
||||
- unless @facade.dossiers_archived_total == 0
|
||||
%ul
|
||||
- @facade.dossiers_archived_by_state_total.each do |dossier|
|
||||
%li
|
||||
= dossier.display_state
|
||||
\:
|
||||
= dossier.total
|
||||
- else
|
||||
%p
|
||||
0
|
||||
|
||||
.col-md-5.col-lg-5
|
||||
%h4 Non archivés
|
||||
= javascript_include_tag "https://code.highcharts.com/highcharts.js", "chartkick"
|
||||
- if @facade.dossiers_for_pie_highchart.blank?
|
||||
Aucune statistique pour le moment
|
||||
-else
|
||||
=pie_chart @facade.dossiers_for_pie_highchart
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
=render partial: 'admin/procedures/head', locals: {active: @types_de_champ_facade.active}
|
||||
.row.white-back
|
||||
= render partial: 'admin/procedures/head', locals: {active: @types_de_champ_facade.active}
|
||||
|
||||
#liste_champ
|
||||
= render partial: 'admin/types_de_champ/form'
|
||||
#liste_champ
|
||||
= render partial: 'admin/types_de_champ/form'
|
||||
|
|
|
@ -20,17 +20,17 @@
|
|||
.form-group
|
||||
%label
|
||||
%h4
|
||||
Nom
|
||||
Nom *
|
||||
= ff.text_field :nom, {class: 'form-control'}
|
||||
.form-group
|
||||
%label
|
||||
%h4
|
||||
Prénom
|
||||
Prénom *
|
||||
= ff.text_field :prenom, {class: 'form-control'}
|
||||
.form-group
|
||||
%label
|
||||
%h4
|
||||
Date de naissance
|
||||
Date de naissance *
|
||||
= ff.text_field :birthdate, {class: 'form-control', 'data-provide' => 'datepicker', 'data-date-format' => 'dd/mm/yyyy'}
|
||||
|
||||
%p
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
= render partial: 'layouts/flash_messages'
|
||||
%div.row
|
||||
= yield
|
||||
%div.row
|
||||
%div.row
|
||||
|
|
|
@ -1,46 +1,48 @@
|
|||
%h2
|
||||
='Localisation'
|
||||
%h4.text-primary
|
||||
Positionnez-vous et dessinez sur la carte la zone d'action de votre demande.
|
||||
%br
|
||||
|
||||
.content{style:'margin-bottom:60px'}
|
||||
%button#new.btn.btn-md.btn-success{type:'button'}
|
||||
%i.fa.fa-pencil
|
||||
Ajouter une zone
|
||||
-#\-
|
||||
-#%button#edit.btn.btn-sm.btn-info{type:'button'} Editer
|
||||
-#\-
|
||||
-#%button#delete.btn.btn-sm.btn-danger{type:'button'} Supprimer
|
||||
|
||||
%span#search_by_address{style: 'margin-left: 20px'}
|
||||
%input.form-control{type: :address, placeholder: 'Rechercher une adresse'}
|
||||
%br
|
||||
%br
|
||||
#carte_page.row
|
||||
#map{class: @dossier.procedure.module_api_carto.classes }
|
||||
|
||||
- if @dossier.procedure.module_api_carto.quartiers_prioritaires
|
||||
#qp.list
|
||||
%h3.text-info Quartiers prioritaites
|
||||
%ul
|
||||
|
||||
- if @dossier.procedure.module_api_carto.cadastre
|
||||
#cadastre.list
|
||||
%h3.text-warning Cadastres
|
||||
%ul
|
||||
|
||||
= form_tag(url_for({controller: :carte, action: :save, dossier_id: @dossier.id}), class: 'form-inline', method: 'POST') do
|
||||
.row#carto_page
|
||||
.col-lg-12.col-md-12
|
||||
%h2
|
||||
='Localisation'
|
||||
%h4.text-primary
|
||||
Positionnez-vous et dessinez sur la carte la zone d'action de votre demande.
|
||||
%br
|
||||
%input{type: 'hidden', value: "#{@dossier.json_latlngs}", name: 'json_latlngs', id: 'json_latlngs'}
|
||||
%input{id: 'quartier_prioritaires', type:'hidden', value: "#{@dossier.quartier_prioritaires.to_json}"}
|
||||
%input{id: 'cadastres', type:'hidden', value: "#{@dossier.cadastres.to_json}"}
|
||||
|
||||
-if @dossier.draft?
|
||||
=render partial: '/layouts/etape_suivante'
|
||||
-else
|
||||
=render partial: '/layouts/modifications_terminees'
|
||||
.content{style:'margin-bottom:60px'}
|
||||
%button#new.btn.btn-md.btn-success{type:'button'}
|
||||
%i.fa.fa-pencil
|
||||
Ajouter une zone
|
||||
-#\-
|
||||
-#%button#edit.btn.btn-sm.btn-info{type:'button'} Editer
|
||||
-#\-
|
||||
-#%button#delete.btn.btn-sm.btn-danger{type:'button'} Supprimer
|
||||
|
||||
%script{type: 'text/javascript'}
|
||||
="var dossier_id =#{@dossier.id}"
|
||||
initCarto();
|
||||
%span#search_by_address{style: 'margin-left: 20px'}
|
||||
%input.form-control{type: :address, placeholder: 'Rechercher une adresse'}
|
||||
%br
|
||||
%br
|
||||
#carte_page.row
|
||||
#map{class: @dossier.procedure.module_api_carto.classes }
|
||||
|
||||
- if @dossier.procedure.module_api_carto.quartiers_prioritaires
|
||||
#qp.list
|
||||
%h3.text-info Quartiers prioritaites
|
||||
%ul
|
||||
|
||||
- if @dossier.procedure.module_api_carto.cadastre
|
||||
#cadastre.list
|
||||
%h3.text-warning Cadastres
|
||||
%ul
|
||||
|
||||
= form_tag(url_for({controller: :carte, action: :save, dossier_id: @dossier.id}), class: 'form-inline', method: 'POST') do
|
||||
%br
|
||||
%input{type: 'hidden', value: "#{@dossier.json_latlngs}", name: 'json_latlngs', id: 'json_latlngs'}
|
||||
%input{id: 'quartier_prioritaires', type:'hidden', value: "#{@dossier.quartier_prioritaires.to_json}"}
|
||||
%input{id: 'cadastres', type:'hidden', value: "#{@dossier.cadastres.to_json}"}
|
||||
|
||||
-if @dossier.draft?
|
||||
=render partial: '/layouts/etape_suivante'
|
||||
-else
|
||||
=render partial: '/layouts/modifications_terminees'
|
||||
|
||||
%script{type: 'text/javascript'}
|
||||
="var dossier_id =#{@dossier.id}"
|
||||
initCarto();
|
||||
|
|
|
@ -58,4 +58,4 @@
|
|||
= submit_tag 'Enregistrer un brouillon', id: 'brouillon', name: 'submit[brouillon]', class: %w(btn btn-xs btn-default), style: 'float:right; margin-right: 10px; margin-top: 6px', data: {disable_with: 'Enregistrer un brouillon', submit: true}
|
||||
|
||||
%br
|
||||
%br
|
||||
%br
|
||||
|
|
Loading…
Reference in a new issue