Add link to prefill description from procedure show
This commit is contained in:
parent
acd461c110
commit
775eb16d95
2 changed files with 6 additions and 2 deletions
|
@ -28,6 +28,11 @@
|
||||||
%span.icon.reply
|
%span.icon.reply
|
||||||
Envoyer une copie
|
Envoyer une copie
|
||||||
|
|
||||||
|
- if @procedure.publiee? || @procedure.brouillon?
|
||||||
|
= link_to preremplir_path(@procedure.path), target: "_blank", rel: :noopener, class: 'button' do
|
||||||
|
%span.icon.edit
|
||||||
|
Préremplir via lien ou API
|
||||||
|
|
||||||
- if !@procedure.publiee? && !@procedure.close? && !@procedure.depubliee?
|
- if !@procedure.publiee? && !@procedure.close? && !@procedure.depubliee?
|
||||||
= link_to 'Publier', admin_procedure_publication_path(@procedure), class: 'button primary', id: 'publish-procedure-link', data: { disable_with: "Publication..." }
|
= link_to 'Publier', admin_procedure_publication_path(@procedure), class: 'button primary', id: 'publish-procedure-link', data: { disable_with: "Publication..." }
|
||||||
|
|
||||||
|
@ -75,4 +80,3 @@
|
||||||
= render Procedure::Card::APIParticulierComponent.new(procedure: @procedure)
|
= render Procedure::Card::APIParticulierComponent.new(procedure: @procedure)
|
||||||
= render Procedure::Card::MonAvisComponent.new(procedure: @procedure)
|
= render Procedure::Card::MonAvisComponent.new(procedure: @procedure)
|
||||||
= render Procedure::Card::DossierSubmittedMessageComponent.new(procedure: @procedure)
|
= render Procedure::Card::DossierSubmittedMessageComponent.new(procedure: @procedure)
|
||||||
|
|
||||||
|
|
|
@ -191,7 +191,7 @@ Rails.application.routes.draw do
|
||||||
post "webhooks/helpscout_support_dev", to: "webhook#helpscout_support_dev"
|
post "webhooks/helpscout_support_dev", to: "webhook#helpscout_support_dev"
|
||||||
match "webhooks/helpscout", to: lambda { |_| [204, {}, nil] }, via: :head
|
match "webhooks/helpscout", to: lambda { |_| [204, {}, nil] }, via: :head
|
||||||
|
|
||||||
get '/preremplir/:path', to: 'prefill_descriptions#edit'
|
get '/preremplir/:path', to: 'prefill_descriptions#edit', as: :preremplir
|
||||||
resources :procedures, only: [], param: :path do
|
resources :procedures, only: [], param: :path do
|
||||||
member do
|
member do
|
||||||
resource :prefill_description, only: :update
|
resource :prefill_description, only: :update
|
||||||
|
|
Loading…
Reference in a new issue