First Commit
This commit is contained in:
commit
b5b83e939a
213 changed files with 8688 additions and 0 deletions
25
app/views/admin/dossier/show.html.haml
Normal file
25
app/views/admin/dossier/show.html.haml
Normal file
|
@ -0,0 +1,25 @@
|
|||
%h1#dossier_id{:class => 'text-info', :style => 'text-align:right'}
|
||||
= "Dossier n°#{@dossier.id}"
|
||||
|
||||
%script{type: 'text/javascript'}
|
||||
="url_carte = '#{@dossier.id}/'"
|
||||
="ref_dossier = '#{@dossier.ref_dossier}'"
|
||||
|
||||
= render partial: '/dossiers/infos_entreprise'
|
||||
%br
|
||||
= render partial: '/dossiers/infos_dossier'
|
||||
%br
|
||||
%br
|
||||
|
||||
.content{class: 'row'}
|
||||
#map_qp{style: 'height:500px', class: 'col-lg-6 col-md-6'}
|
||||
%object{ data: "#{@dossier_pdf.ref_dossier_pdf.url}", type: "application/pdf", title:"Dossier PDF", class: 'col-lg-6 col-md-6', style: 'height:500px'}
|
||||
|
||||
= render partial: '/carte/carte_sources_CSS'
|
||||
= render partial: '/carte/carte_sources_JS_backend'
|
||||
%br
|
||||
|
||||
= render partial: '/recapitulatif/commentaires_flux'
|
||||
%br
|
||||
%br
|
||||
|
6
app/views/carte/_carte_sources_CSS.html.haml
Normal file
6
app/views/carte/_carte_sources_CSS.html.haml
Normal file
|
@ -0,0 +1,6 @@
|
|||
%div#sources_CSS_api_carto
|
||||
%link{:href => "http://leaflet.github.io/Leaflet.draw/leaflet.draw.css", :rel => "stylesheet", :type => "text/css"}/
|
||||
%link{:href => "http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css", :rel => "stylesheet", :type => "text/css"}/
|
||||
%link{:href => "/assets/api_carto/lib/leaflet.photon.css", :rel => "stylesheet", :type => "text/css"}/
|
||||
%link{:href => "http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css", :rel => "stylesheet"}/
|
||||
%link{:href => "https://cdn.rawgit.com/CliffCloud/Leaflet.EasyButton/dd04bbf160aa33c44aa63e8a744b3632c162c340/src/easy-button.css", :rel => "stylesheet"}/
|
14
app/views/carte/_carte_sources_JS.html.haml
Normal file
14
app/views/carte/_carte_sources_JS.html.haml
Normal file
|
@ -0,0 +1,14 @@
|
|||
%script{type: 'text/javascript'}
|
||||
="var dossier_id =#{@dossier.id}"
|
||||
|
||||
%div#sources_JS_api_carto
|
||||
%script{:src => "http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"}
|
||||
%script{:src => "http://leaflet.github.io/Leaflet.draw/leaflet.draw.js"}
|
||||
%script{:src => "https://cdnjs.cloudflare.com/ajax/libs/spin.js/2.0.1/spin.min.js"}
|
||||
%script{:src => "/assets/api_carto/lib/leaflet.spin.js"}
|
||||
%script{:src => "/assets/api_carto/lib//leaflet.photon.js"}
|
||||
%script{:src => "https://cdn.rawgit.com/CliffCloud/Leaflet.EasyButton/14332b70b18bdec80f4cce86c643372883bf90aa/src/easy-button.bar.js"}
|
||||
%script{:src => "https://cdn.rawgit.com/CliffCloud/Leaflet.EasyButton/14332b70b18bdec80f4cce86c643372883bf90aa/src/easy-button.button.js"}
|
||||
|
||||
%script{:src => "/assets/api_carto/qp.js"}
|
||||
|
15
app/views/carte/_carte_sources_JS_backend.html.haml
Normal file
15
app/views/carte/_carte_sources_JS_backend.html.haml
Normal file
|
@ -0,0 +1,15 @@
|
|||
%script{type: 'text/javascript'}
|
||||
="var dossier_id =#{@dossier.id}"
|
||||
="var ref_dossier=#{@dossier.ref_dossier}"
|
||||
|
||||
%div#sources_JS_api_carto_backend
|
||||
%script{:src => "http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"}
|
||||
%script{:src => "http://leaflet.github.io/Leaflet.draw/leaflet.draw.js"}
|
||||
%script{:src => "https://cdnjs.cloudflare.com/ajax/libs/spin.js/2.0.1/spin.min.js"}
|
||||
%script{:src => "/assets/api_carto/lib/leaflet.spin.js"}
|
||||
%script{:src => "/assets/api_carto/lib//leaflet.photon.js"}
|
||||
%script{:src => "https://cdn.rawgit.com/CliffCloud/Leaflet.EasyButton/14332b70b18bdec80f4cce86c643372883bf90aa/src/easy-button.bar.js"}
|
||||
%script{:src => "https://cdn.rawgit.com/CliffCloud/Leaflet.EasyButton/14332b70b18bdec80f4cce86c643372883bf90aa/src/easy-button.button.js"}
|
||||
|
||||
%script{:src => "/assets/api_carto/backend.js"}
|
||||
|
20
app/views/carte/show.html.haml
Normal file
20
app/views/carte/show.html.haml
Normal file
|
@ -0,0 +1,20 @@
|
|||
%h2
|
||||
='Localisation de votre demande'
|
||||
%br
|
||||
|
||||
=render partial: 'carte_sources_CSS'
|
||||
|
||||
.content
|
||||
#map_qp{style: 'height:600px; width: 100%;'}
|
||||
|
||||
= form_tag(url_for({controller: :carte, action: :save_ref_api_carto}), class: 'form-inline', method: 'POST') do
|
||||
%br
|
||||
%input{type: 'hidden', value: '', name: 'ref_dossier', id: 'ref_dossier'}
|
||||
%input{type: 'hidden', value: request.parameters[:back_url], name: 'back_url', id: 'back_url'}
|
||||
|
||||
-if request.parameters[:back_url] == 'recapitulatif'
|
||||
=render partial: '/layouts/modifications_terminees'
|
||||
-else
|
||||
=render partial: '/layouts/etape_suivante'
|
||||
|
||||
=render partial: 'carte_sources_JS'
|
16
app/views/demandes/show.html.haml
Normal file
16
app/views/demandes/show.html.haml
Normal file
|
@ -0,0 +1,16 @@
|
|||
%h2
|
||||
='Type de demande'
|
||||
|
||||
%br
|
||||
= form_tag(url_for({controller: :demandes, action: :choice}), class: 'form-inline', method: 'POST') do
|
||||
|
||||
%div{style:'text-align:center'}
|
||||
%select{name:'ref_formulaire', id: 'ref_formulaire', class:'form-control'}
|
||||
-@evenement_vie.each do |ev|
|
||||
%optgroup{:label => ev.nom}
|
||||
-RefFormulaire.where(evenement_vie: ev.id, use_admi_facile: true).each do |form|
|
||||
%option{value: form.id}
|
||||
|
||||
=form.nom
|
||||
%br
|
||||
=render partial: 'layouts/etape_suivante'
|
71
app/views/description/show.html.haml
Normal file
71
app/views/description/show.html.haml
Normal file
|
@ -0,0 +1,71 @@
|
|||
%h2 Description de votre projet
|
||||
%br
|
||||
|
||||
= form_tag(url_for({controller: :description, action: :create, dossier_id: @dossier.id}), class: 'form-inline', method: 'POST', multipart: true) do
|
||||
%input{type: 'hidden', value: request.parameters[:back_url], name: 'back_url', id: 'back_url'}
|
||||
|
||||
%div{style:'margin-left:3%;'}
|
||||
|
||||
%h4 Nom de votre projet*
|
||||
%div{style:'margin-top:1.5rem; margin-left:2%; margin-right:2%;'}
|
||||
%input{class: 'form-control', style: 'width:100%', type: 'text', id: 'nom_projet', name: 'nom_projet', placeholder: 'Nom du projet', value: @dossier.nom_projet}
|
||||
|
||||
%br
|
||||
%h4 Description de votre projet*
|
||||
%div{style:'text-align:center; margin-left:2%; margin-right:2%'}
|
||||
%textarea{id:'description', name:'description', class:'form-control', rows: '6', style:'width: 100%', placeholder: 'Description du projet'}
|
||||
=@dossier.description
|
||||
%br
|
||||
%div{class:'row'}
|
||||
%div{class:'col-lg-6 col-md-6'}
|
||||
%h4 Montant du projet*
|
||||
%div{style:'margin-left:4%; margin-top:1.5rem'}
|
||||
%input{class: 'form-control', type: 'number', id: 'montant_projet', name: 'montant_projet', placeholder: 'Montant du projet', value: @dossier.montant_projet}
|
||||
!='€'
|
||||
|
||||
%div{class:'col-lg-6 col-md-6'}
|
||||
%h4 Montant des aides que vous sollicitez*
|
||||
%div{style:'margin-left:4%; margin-top:1.5rem'}
|
||||
%input{class: 'form-control', type: 'number', id: 'montant_aide_demande', name: 'montant_aide_demande', placeholder: 'Montant des aides', value: @dossier.montant_aide_demande}
|
||||
!='€'
|
||||
%br
|
||||
%div{class:'row'}
|
||||
%div{class:'col-lg-6 col-md-6'}
|
||||
%h4 Date prévisionnelle du début de votre projet*
|
||||
%div{style:'margin-left:4%; margin-top:1.5rem'}
|
||||
%input{class: 'form-control', type: 'text', id: 'date_previsionnelle', name: 'date_previsionnelle', placeholder: 'Date prévisionnelle', value: @dossier.date_previsionnelle, 'data-provide' => 'datepicker', 'data-date-format' => 'dd/mm/yyyy'}
|
||||
|
||||
%div{class:'col-lg-6 col-md-6'}
|
||||
%h4 Mail de contact*
|
||||
%div{style:'margin-left:4%; margin-top:1.5rem'}
|
||||
%input{class: 'form-control', style:'width:60%', type: 'email', id: 'mail_contact', name: 'mail_contact', placeholder: 'Mail de contact', value: @dossier.mail_contact}
|
||||
|
||||
%br
|
||||
%h3 Documents administratifs
|
||||
|
||||
%br
|
||||
%table{class:'table', style:'width:50%; margin-left:5%'}
|
||||
%tr
|
||||
%th{class:'col-lg-4'} Charger votre dossier (.pdf)
|
||||
%td{class:'col-lg-6'}
|
||||
%input{type: 'file',name:'dossier_pdf', id:'dossier_pdf', accept: ".pdf"}
|
||||
|
||||
%br
|
||||
%p
|
||||
='Afin de facilité votre démarche, nous avons récupéré pour vous :'
|
||||
%ul
|
||||
%li
|
||||
='Votre déclaration sociale'
|
||||
%li
|
||||
='Votre déclaration fiscale'
|
||||
|
||||
%div{style: 'text-align:right'}
|
||||
%h6 Tous les champs portant un * sont obligatoires.
|
||||
|
||||
-if request.parameters[:back_url] == 'recapitulatif'
|
||||
=render partial: '/layouts/modifications_terminees'
|
||||
-else
|
||||
= submit_tag 'Terminer la procédure', id: 'suivant', class: %w(btn btn btn-success), style: 'float:right', data: { disable_with: 'Terminé la procédure', submit: true}
|
||||
|
||||
%br
|
||||
%br
|
47
app/views/dossiers/_infos_dossier.html.haml
Normal file
47
app/views/dossiers/_infos_dossier.html.haml
Normal file
|
@ -0,0 +1,47 @@
|
|||
=javascript_include_tag "http://code.highcharts.com/highcharts.js", "chartkick"
|
||||
.row{id: 'infos_dossier'}
|
||||
.col-md-6
|
||||
%h4.text-info= @dossier.nom_projet
|
||||
%div{style: 'margin-left:10px; padding-top:5px'}
|
||||
.description
|
||||
- begin
|
||||
- @dossier.description.split(/(?:\n\r?|\r\n?')/).each do |line|
|
||||
= line
|
||||
%br
|
||||
- rescue
|
||||
=''
|
||||
%br
|
||||
.col-lg-6.col-md-6
|
||||
%h4
|
||||
='Montant total '
|
||||
|
||||
%div{style: 'margin-left:10px'}
|
||||
=number_to_currency(@dossier.montant_projet.to_f, :unit => " ", :separator => ",", :delimiter => " ")
|
||||
!='€'
|
||||
|
||||
.col-lg-6.col-md-6
|
||||
%h4
|
||||
= 'Début du projet souhaité '
|
||||
|
||||
%div{style: 'margin-left:10px'}
|
||||
=@dossier.date_fr
|
||||
|
||||
.col-lg-6.col-md-6
|
||||
%br
|
||||
%h4
|
||||
='Contact'
|
||||
|
||||
%a{href: "mailto:#{@dossier.mail_contact}", style: 'margin-left:10px'}
|
||||
=@dossier.mail_contact
|
||||
|
||||
-if !request.url.include?('admin')
|
||||
.col-lg-6.col-md-6
|
||||
%br
|
||||
%br
|
||||
%a#modif_carte{href: "/dossiers/#{@dossier.id}/carte?back_url=recapitulatif"} Modifier la localisation
|
||||
%br
|
||||
%a#modif_description{href: "/dossiers/#{@dossier.id}/description?back_url=recapitulatif"} Modifier la description
|
||||
|
||||
.col-md-6
|
||||
= pie_chart({"Montant à charge #{(100 - @dossier.montant_aide_demande.to_f/@dossier.montant_projet.to_f*100).round(2)}%" => (@dossier.montant_projet.to_f - @dossier.montant_aide_demande.to_f), "Montant souhaité #{(@dossier.montant_aide_demande.to_f/@dossier.montant_projet.to_f*100).round(2)}%" => @dossier.montant_aide_demande})
|
||||
|
38
app/views/dossiers/_infos_entreprise.html.haml
Normal file
38
app/views/dossiers/_infos_entreprise.html.haml
Normal file
|
@ -0,0 +1,38 @@
|
|||
%h4
|
||||
=@entreprise.raison_sociale_or_name
|
||||
|
||||
%div{class:'row', id: 'infos_entreprise'}
|
||||
%div{class:'col-lg-6 col-md-6', style:'margin-left:2%'}
|
||||
%h5
|
||||
='SIRET : '
|
||||
%span.text-success
|
||||
=@etablissement.siret
|
||||
|
||||
%h5
|
||||
=@entreprise.forme_juridique
|
||||
|
||||
%h5
|
||||
=@etablissement.libelle_naf
|
||||
|
||||
%h5
|
||||
='Date création : '
|
||||
%span
|
||||
=Time.at(@entreprise.date_creation).strftime "%d-%m-%Y"
|
||||
|
||||
%br
|
||||
%h5
|
||||
='Code effectif entreprise : '
|
||||
%span
|
||||
=@entreprise.code_effectif_entreprise_libelle
|
||||
|
||||
%h5
|
||||
='Capital social : '
|
||||
%span
|
||||
=number_to_currency(@entreprise.capital_social, delimiter: ' ', unit: '€', format: "%n %u")
|
||||
|
||||
|
||||
%div.col-lg-6.col-md-6{style:'margin-left:-2%'}
|
||||
%h5
|
||||
='Adresse : '
|
||||
%div{style:'margin-left:2%'}
|
||||
=@etablissement.adresse.gsub(/[\n]/, '<br>').html_safe
|
16
app/views/dossiers/show.html.haml
Normal file
16
app/views/dossiers/show.html.haml
Normal file
|
@ -0,0 +1,16 @@
|
|||
%h2{style:'margin-bottom:16px'}
|
||||
='Récapitulatif de vos informations'
|
||||
|
||||
%div{class:'row', style:'margin-left:5%'}
|
||||
= render partial: 'infos_entreprise'
|
||||
|
||||
= form_tag(url_for({controller: :dossiers, action: :update}), class: 'form-inline', method: 'PUT') do
|
||||
%br
|
||||
%div
|
||||
%label{ style:'font-weight:normal' }
|
||||
%input{type:'checkbox', name: 'autorisation_donnees', id: 'autorisation_donnees'}
|
||||
='J’autorise les organismes publics à vérifier les informations de mon entreprise auprès des administrations concernées. Ces informations resteront strictement confidentielles.'
|
||||
%br
|
||||
%br
|
||||
|
||||
= render partial: 'layouts/etape_suivante'
|
1
app/views/layouts/_etape_suivante.html.haml
Normal file
1
app/views/layouts/_etape_suivante.html.haml
Normal file
|
@ -0,0 +1 @@
|
|||
= submit_tag 'Etape suivante', class: %w(btn btn btn-info), style: 'float:right', id: 'etape_suivante', data: { disable_with: 'Etape suivante', submit: true}, onclick: 'submit_check_draw(event)'
|
3
app/views/layouts/_modifications_terminees.html.haml
Normal file
3
app/views/layouts/_modifications_terminees.html.haml
Normal file
|
@ -0,0 +1,3 @@
|
|||
%div{style: 'float:right'}
|
||||
%a.btn{href: "/dossiers/#{@dossier.id}/recapitulatif"} Retour
|
||||
= submit_tag 'Modification terminée', class: %w(btn btn btn-info), id: 'modification_terminee', data: { disable_with: 'Modification terminée', submit: true}, onclick: 'submit_check_draw(event)'
|
30
app/views/layouts/application.html.haml
Normal file
30
app/views/layouts/application.html.haml
Normal file
|
@ -0,0 +1,30 @@
|
|||
!!!
|
||||
%html
|
||||
%head
|
||||
%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
|
||||
%title Admi-Facile
|
||||
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
||||
= javascript_include_tag 'application', 'data-turbolinks-track' => true
|
||||
= csrf_meta_tags
|
||||
%body
|
||||
%div
|
||||
%div.navbar
|
||||
= image_tag('marianne_small.png', class: 'logo')
|
||||
%a{href: '/', class:'btn btn-lg'}
|
||||
='Admi-Facile'
|
||||
|
||||
-if user_signed_in?
|
||||
%div{style: 'decorate:none; box-shadow:none; float:right; margin-top:8px'}
|
||||
= current_user.email
|
||||
= link_to "Déconnexion", '/logout', method: :delete, :class => 'btn btn-md'
|
||||
|
||||
#flash_message.center
|
||||
- if flash.notice
|
||||
.alert.alert-success
|
||||
= flash.notice
|
||||
- if flash.alert
|
||||
.alert.alert-danger
|
||||
= flash.alert
|
||||
|
||||
%div{:style => 'margin-left:10%; margin-right:10%;'}
|
||||
= yield
|
24
app/views/recapitulatif/_commentaires_flux.html.haml
Normal file
24
app/views/recapitulatif/_commentaires_flux.html.haml
Normal file
|
@ -0,0 +1,24 @@
|
|||
.content#commentaires_flux
|
||||
%h3 Commentaires
|
||||
|
||||
%div{style: 'margin-left:3%; width:80%'}
|
||||
-@commentaires.each do |com|
|
||||
%span.text-info#email_contact{style: 'font-weight:bold'}
|
||||
=com.email
|
||||
%span#created_at
|
||||
\-
|
||||
=com.created_at_fr
|
||||
%br
|
||||
.description#body
|
||||
=com.body
|
||||
%br
|
||||
|
||||
%h4{style: 'margin-bottom:2%'} Nouveau
|
||||
= form_tag(url_for({controller: '/commentaires', action: :create}), class: 'form-inline', method: 'POST') do
|
||||
%input.form-control{:type => 'text', style: 'width: 30%; margin-bottom:2%', :id => 'email_commentaire', :name => 'email_commentaire', :value => @commentaire_email}
|
||||
%textarea.form-control{:id => 'texte_commentaire', :name => 'texte_commentaire', style: 'width: 100%; margin-bottom:2%', rows: '5'}
|
||||
%br
|
||||
%input.form-control.btn.btn-success{:type => 'submit', :value => 'Poster', style: 'float:right'}
|
||||
%br
|
||||
%br
|
||||
%br
|
23
app/views/recapitulatif/show.html.haml
Normal file
23
app/views/recapitulatif/show.html.haml
Normal file
|
@ -0,0 +1,23 @@
|
|||
%h2
|
||||
='Récapitulatif'
|
||||
|
||||
%div{style: 'text-align:center'}
|
||||
-if request.referer != nil
|
||||
-if (request.referer.include?'/description') && !(request.referer.include?'back_url=recapitulatif')
|
||||
%h4.text-success Félicitation, votre demande a bien été enregistrée.
|
||||
|
||||
%h3{style: 'text-align:center; line-height:1.5em'}
|
||||
='Votre dossier est le '
|
||||
%br
|
||||
%span{id: 'dossier_id', style: 'font-weight:bold;', class: 'text-success'}
|
||||
="n°#{@dossier.id}"
|
||||
-else
|
||||
%h2#dossier_id{:class => 'text-info', :style => 'text-align:right'}
|
||||
= "Dossier n°#{@dossier.id}"
|
||||
-else
|
||||
%h2#dossier_id{:class => 'text-info', :style => 'text-align:right'}
|
||||
= "Dossier n°#{@dossier.id}"
|
||||
|
||||
= render partial: '/dossiers/infos_dossier'
|
||||
%br
|
||||
= render partial: 'commentaires_flux'
|
24
app/views/start/_admin.html.haml
Normal file
24
app/views/start/_admin.html.haml
Normal file
|
@ -0,0 +1,24 @@
|
|||
%p.lead{id: 'admin_section'}
|
||||
%span{class:'text-info', style:'font-weight:bold'}
|
||||
-if user_signed_in?
|
||||
='Vous êtes identifié comme une administration'
|
||||
-else
|
||||
='Si vous êtes une administration, '
|
||||
|
||||
%p.lead
|
||||
-if user_signed_in?
|
||||
= form_tag(url_for({controller: 'admin/dossier', action: :index}), class: 'form-inline', method: 'GET') do
|
||||
.form-group.form-group-lg
|
||||
= text_field_tag :siret, nil, :class => "form-control", :style => 'margin-bottom:10px', :placeholder => "N° de dossier", :id => "dossier_id", :name => "dossier_id"
|
||||
%br
|
||||
= submit_tag "Accéder", class: %w(btn btn-lg btn-success), style: 'margin-top:20px;', data: { disable_with: "Accéder", submit: true}
|
||||
-else
|
||||
= form_tag(url_for({controller: 'user/sessions', action: :create}), class: 'form-inline', method: 'POST') do
|
||||
.form-group.form-group-lg
|
||||
= text_field_tag :siret, nil, :class => "form-control", :style => 'margin-bottom:10px', :placeholder => "Identifiant", :id => "user_email", :name => "user[email]"
|
||||
%br
|
||||
= password_field_tag :siret, nil, :class => "form-control", :style => 'margin-bottom:10px', :placeholder => "Mot de passe", :id => "user_password", :name => "user[password]"
|
||||
%br
|
||||
= text_field_tag :siret, nil, :class => "form-control", :style => 'margin-bottom:10px', :placeholder => "N° de dossier", :id => "dossier_id", :name => "dossier_id"
|
||||
%br
|
||||
= submit_tag "Accéder", class: %w(btn btn-lg btn-success), style: 'margin-top:20px;', data: { disable_with: "Accéder", submit: true}
|
12
app/views/start/_pro.html.haml
Normal file
12
app/views/start/_pro.html.haml
Normal file
|
@ -0,0 +1,12 @@
|
|||
%p.lead{id: 'pro_section'}
|
||||
%span{class:'text-info', style:'font-weight:bold'}
|
||||
='Si vous êtes un professionnel, '
|
||||
%p.lead
|
||||
= form_tag(url_for({controller: :dossiers, action: :create}), class: 'form-inline', style: 'margin-top:10%', method: 'POST') do |f|
|
||||
.form-group.form-group-lg
|
||||
= text_field_tag :siret, nil, :class => "form-control", :placeholder => "Entrez votre Siret", :id => "siret", :name => "siret", :maxlength => 14, :style => 'margin-bottom:10px'
|
||||
%br
|
||||
= number_field_tag :siret, nil, :class => "form-control", :placeholder => "Entrez n° de dossier", :id => "pro_dossier_id", :name => "pro_dossier_id", :style => 'display:none'
|
||||
%a{:href => '#', :style => 'margin-top:10px', :id => 'btn_show_dossier_id_input', :onclick => 'show_dossier_id_input()'} J'ai un numéro de dossier
|
||||
%br
|
||||
= submit_tag "Commencer", class: %w(btn btn-lg btn-success), style: 'margin-top:20px;', data: { disable_with: "Commencer", submit: true}
|
16
app/views/start/index.html.haml
Normal file
16
app/views/start/index.html.haml
Normal file
|
@ -0,0 +1,16 @@
|
|||
%div{:style => "text-align:center;;"}
|
||||
%h1.cover-heading Admi-Facile
|
||||
|
||||
.row{style:'margin-top:10%'}
|
||||
-if !user_signed_in?
|
||||
.col-lg-6.col-md-6
|
||||
=render partial: '/start/pro'
|
||||
|
||||
-if !user_signed_in?
|
||||
.col-lg-6.col-md-6
|
||||
%div{style: 'border-left: 1px solid grey'}
|
||||
=render partial: '/start/admin'
|
||||
-else
|
||||
.col-lg-12.col-md-12
|
||||
%div
|
||||
=render partial: '/start/admin'
|
Loading…
Add table
Add a link
Reference in a new issue