diff --git a/app/models/procedure.rb b/app/models/procedure.rb index a8aa195cb..e8dc6eb6a 100644 --- a/app/models/procedure.rb +++ b/app/models/procedure.rb @@ -5,5 +5,5 @@ class Procedure < ActiveRecord::Base validates :libelle, presence: true, allow_blank: false, allow_nil: false validates :description, presence: true, allow_blank: false, allow_nil: false - validates :lien_demarche, presence: true, allow_blank: false, allow_nil: false + #validates :lien_demarche, presence: true, allow_blank: false, allow_nil: false end diff --git a/app/views/admin/procedures/_informations.html.haml b/app/views/admin/procedures/_informations.html.haml index 8232509af..2cd2c8f1e 100644 --- a/app/views/admin/procedures/_informations.html.haml +++ b/app/views/admin/procedures/_informations.html.haml @@ -8,7 +8,7 @@ =f.text_area :description, class: 'form-control', placeholder: 'Description' .form-group{class: ('has-error' if @procedure.errors.messages[:lien_demarche])} - %h4 Lien Démarche* + %h4 Lien Démarche =f.text_field :lien_demarche, class: 'form-control', placeholder: 'Lien Démarche' .form-group{class: ('has-error' if @procedure.errors.messages[:organisation])} @@ -34,3 +34,8 @@ %br %h4 Liste des pièces justificatives à fournir pour un dossier + + +%br + %div.small{style:'text-align:right'} + *Attributs obligatoires \ No newline at end of file diff --git a/app/views/admin/procedures/new.html.haml b/app/views/admin/procedures/new.html.haml index b8fc5785b..43e508820 100644 --- a/app/views/admin/procedures/new.html.haml +++ b/app/views/admin/procedures/new.html.haml @@ -3,5 +3,4 @@ #procedure_new.section.section-label = form_for @procedure, url: {controller: 'admin/procedures', action: :create} do |f| =render partial: 'informations', locals: {f: f} - %br =f.submit 'Valider', class: 'btn btn-info', style: 'float:right' diff --git a/app/views/admin/procedures/show.html.haml b/app/views/admin/procedures/show.html.haml index 7a6e11b7d..6af26e260 100644 --- a/app/views/admin/procedures/show.html.haml +++ b/app/views/admin/procedures/show.html.haml @@ -4,5 +4,4 @@ #procedure_new.section.section-label = form_for @procedure, url: {controller: 'admin/procedures', action: :update} do |f| =render partial: 'informations', locals: {f: f} - %br =f.submit 'Editer', class: 'btn btn-success', style: 'float:right' diff --git a/app/views/users/sessions/new.html.haml b/app/views/users/sessions/new.html.haml index d56e0553e..82fa3b3a9 100644 --- a/app/views/users/sessions/new.html.haml +++ b/app/views/users/sessions/new.html.haml @@ -30,5 +30,15 @@ = render "users/shared/links" + %div{style:'text-align:center'} + \- + %br + %a{href: '/gestionnaires/sign_in'} + = 'Gestionnaire' + %br + %a{href: '/administrateurs/sign_in'} + = 'Administrateur' + +