fix: change "A récupérer" by "Lieu de la prestation" for services (#698)
* fix: change "A récupérer" by "Lieu de la prestation" for services * fix: add product variable for template
This commit is contained in:
parent
b2f4f1a768
commit
467eb71975
4 changed files with 8 additions and 3 deletions
|
|
@ -61,7 +61,7 @@ final class ObjectController extends AbstractController
|
|||
return $this->redirectToRoute('app_product_show', $product->getRoutingParameters());
|
||||
}
|
||||
|
||||
return $this->render('pages/product/new_object.html.twig', compact('form'));
|
||||
return $this->render('pages/product/new_object.html.twig', compact('form', 'product'));
|
||||
}
|
||||
|
||||
#[Route(path: [
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ final class ServiceController extends AbstractController
|
|||
return $this->redirectToRoute('app_product_show', $product->getRoutingParameters());
|
||||
}
|
||||
|
||||
return $this->render('pages/product/new_service.html.twig', compact('form'));
|
||||
return $this->render('pages/product/new_service.html.twig', compact('form', 'product'));
|
||||
} else {
|
||||
throw new GoneHttpException();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{% if app.user.address is not null %}
|
||||
{% include 'components/layout/_title_5.html.twig' with {
|
||||
rowClass: 'border-top',
|
||||
title: 'product.form.recover'|trans,
|
||||
title: product.type.value == "object" ? 'product.form.recover'|trans : 'product.form.service_location'|trans,
|
||||
colClass: 'col-md-8 col-lg-6 col-xl-5 mt-4'
|
||||
} %}
|
||||
{% include 'components/product/_address.html.twig' with {
|
||||
|
|
|
|||
|
|
@ -151,6 +151,11 @@
|
|||
<target>A récupérer</target>
|
||||
</trans-unit>
|
||||
|
||||
<trans-unit id="CBB4WUZ" resname="product.form.service_location">
|
||||
<source>product.form.service_location</source>
|
||||
<target>Lieu de la prestation</target>
|
||||
</trans-unit>
|
||||
|
||||
<trans-unit id="QqEwe6u" resname="product.form.address">
|
||||
<source>product.form.address</source>
|
||||
<target>Adresse</target>
|
||||
|
|
|
|||
Loading…
Reference in a new issue