Merge branch 'dev'
This commit is contained in:
commit
4ce6ab4d8d
4 changed files with 23 additions and 3 deletions
|
@ -219,6 +219,16 @@ class Admin::ProceduresController < AdminController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def delete_logo
|
||||||
|
procedure = Procedure.find(params[:id])
|
||||||
|
|
||||||
|
procedure.remove_logo!
|
||||||
|
procedure.save
|
||||||
|
|
||||||
|
flash.notice = 'le logo a bien été supprimé'
|
||||||
|
redirect_to edit_admin_procedure_path(procedure)
|
||||||
|
end
|
||||||
|
|
||||||
def delete_deliberation
|
def delete_deliberation
|
||||||
procedure = Procedure.find(params[:id])
|
procedure = Procedure.find(params[:id])
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,9 @@
|
||||||
%h4 Logo de la démarche
|
%h4 Logo de la démarche
|
||||||
- if @procedure.logo.present?
|
- if @procedure.logo.present?
|
||||||
= image_tag @procedure.decorate.logo_img, { style: 'height: 40px; display: inline; margin-right: 6px;', id: 'preview_procedure_logo' }
|
= image_tag @procedure.decorate.logo_img, { style: 'height: 40px; display: inline; margin-right: 6px;', id: 'preview_procedure_logo' }
|
||||||
|
\-
|
||||||
|
= link_to 'supprimer', delete_logo_admin_procedure_path(@procedure),
|
||||||
|
method: :delete
|
||||||
= f.file_field :logo, accept: 'image/png, image/jpg, image/jpeg', style: 'display: inline'
|
= f.file_field :logo, accept: 'image/png, image/jpg, image/jpeg', style: 'display: inline'
|
||||||
|
|
||||||
%div{ style: 'margin-top: 5px;' }
|
%div{ style: 'margin-top: 5px;' }
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
- avis_link = @avis.gestionnaire.present? ? gestionnaire_avis_url(@avis) : sign_up_gestionnaire_avis_url(@avis.id, @avis.email)
|
||||||
|
|
||||||
%p
|
%p
|
||||||
Bonjour,
|
Bonjour,
|
||||||
|
|
||||||
|
@ -12,10 +14,10 @@
|
||||||
|
|
||||||
- if @avis.gestionnaire.present?
|
- if @avis.gestionnaire.present?
|
||||||
%p
|
%p
|
||||||
= link_to "Connectez-vous pour donner votre avis", gestionnaire_avis_url(@avis)
|
= link_to "Connectez-vous pour donner votre avis", avis_link
|
||||||
- else
|
- else
|
||||||
%p
|
%p
|
||||||
= link_to "Inscrivez-vous pour donner votre avis", sign_up_gestionnaire_avis_url(@avis.id, @avis.email)
|
= link_to "Inscrivez-vous pour donner votre avis", avis_link
|
||||||
|
|
||||||
%p
|
%p
|
||||||
Bonne journée,
|
Bonne journée,
|
||||||
|
@ -26,4 +28,8 @@
|
||||||
%hr
|
%hr
|
||||||
|
|
||||||
%p
|
%p
|
||||||
Merci de ne pas répondre à cet email. Postez directement vos questions dans votre dossier sur la plateforme.
|
Merci de ne pas répondre à cet email. Donnez votre avis
|
||||||
|
= link_to "sur notre site", avis_link
|
||||||
|
ou
|
||||||
|
= succeed '.' do
|
||||||
|
= mail_to @avis.claimant.email, "contactez la personne qui vous a invité"
|
||||||
|
|
|
@ -193,6 +193,7 @@ Rails.application.routes.draw do
|
||||||
|
|
||||||
member do
|
member do
|
||||||
post :hide
|
post :hide
|
||||||
|
delete :delete_logo
|
||||||
delete :delete_deliberation
|
delete :delete_deliberation
|
||||||
delete :delete_notice
|
delete :delete_notice
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue