demarches-normaliennes/app/views/prefill_descriptions/_prefill_query.html.haml
Sébastien Carceles 456be420fa
feat(demarche): describe dossier prefilling with POST (#8298)
* feat(demarche): describe dossier prefilling with POST

* show response example
2023-01-04 07:31:31 +00:00

14 lines
794 B
Text

= turbo_frame_tag "#{dom_id(prefill_description)}_query" do
- if prefill_description.prefilled_champs.any?
= render Dsfr::CalloutComponent.new(title: t("views.prefill_descriptions.edit.prefill_query_title"), theme: :success, icon: "fr-icon-code-box-fill") do |c|
- c.with_body do
= t("views.prefill_descriptions.edit.prefill_query_info")
%pre
%code.code-block
= prefill_description.prefill_query
%br
= t("views.prefill_descriptions.edit.prefill_query_response_html", url: commencer_url(prefill_description.path, prefill_token: "faketoken"))
- c.with_bottom do
= render Dsfr::CopyButtonComponent.new(title: t("views.prefill_descriptions.edit.prefill_query_copy"), text: prefill_description.prefill_query)