Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b6b473d54f | |||
| 1616739b78 |
@@ -49,11 +49,9 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
|
||||
{% endblock %}
|
||||
{% if app.environment == "dev" %}
|
||||
{# <meta name="robots" content="noindex,nofollow"> #}
|
||||
{% else %}
|
||||
{# <meta name="robots" content="noindex,nofollow"> #}
|
||||
{% endif %}
|
||||
{# A ENLEVER EN PROD #}
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -16,11 +16,10 @@
|
||||
<!-- Required Meta Tags Always Come First -->
|
||||
<meta charset="utf-8">
|
||||
|
||||
{% if app.environment == "dev" %}
|
||||
{# <meta name="robots" content="noindex,nofollow"> #}
|
||||
{% else %}
|
||||
{# <meta name="robots" content="noindex,nofollow"> #}
|
||||
{% endif %}
|
||||
|
||||
{# A ENLEVER EN PROD #}
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
{% block meta %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -80,7 +80,7 @@ twig:
|
||||
globals:
|
||||
push_public_key: "%push_params.public_key%"
|
||||
fairlane_cookie_consent: '@fairlane_cookie_consent.twig'
|
||||
version: '2.9.2'
|
||||
version: '2.10.1'
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -320,7 +320,7 @@ class AnswerController extends FOSRestController
|
||||
$usr->getUsername();
|
||||
|
||||
$file = $request->files->get('upload');
|
||||
$status = array('status' => "success", "fileUploaded" => false);
|
||||
$status = array('statusPres' => "failure", "fileUploaded" => false);
|
||||
//dump($file);
|
||||
// If a file was uploaded
|
||||
if (!is_null($file)) {
|
||||
@@ -332,7 +332,7 @@ class AnswerController extends FOSRestController
|
||||
// $filename = uniqid().".".$file->getClientOriginalExtension();
|
||||
// $path = "/path/where/we/want-to-save-the-file";
|
||||
// $file->move($path,$filename); // move the file to a path
|
||||
$status = array('status' => "success", "fileUploaded" => true, "message" => $message);
|
||||
$status = array('statusPres' => "success", "fileUploaded" => true, "message" => $message);
|
||||
}
|
||||
|
||||
return new JsonResponse($status);
|
||||
@@ -368,7 +368,7 @@ class AnswerController extends FOSRestController
|
||||
$company = $usr->getCompany();
|
||||
|
||||
$file = $request->files->get('upload');
|
||||
$status = array('status' => "success", "companyUpdated" => false);
|
||||
$status = array('status' => "success",'statusCv' => "failure", "companyUpdated" => false, "loadingCv" => false);
|
||||
//dump($file);
|
||||
// If a file was uploaded
|
||||
//TODO Controle sur l'extension du fichier (pdf, word)
|
||||
@@ -382,7 +382,7 @@ class AnswerController extends FOSRestController
|
||||
// $filename = uniqid().".".$file->getClientOriginalExtension();
|
||||
// $path = "/path/where/we/want-to-save-the-file";
|
||||
// $file->move($path,$filename); // move the file to a path
|
||||
$status = array('status' => "success", "companyUpdated" => true, "message" => $message);
|
||||
$status = array('status' => "success", 'statusCv' => "success", "companyUpdated" => true, "message" => $message, "loadingCv" => true);
|
||||
}
|
||||
|
||||
return new JsonResponse($status);
|
||||
|
||||
@@ -229,8 +229,7 @@ class Ad
|
||||
* @var array
|
||||
*
|
||||
* @ORM\Column(name="extra", type="json_document", nullable=true, options={"jsonb":true})
|
||||
*
|
||||
* @Groups({"ad_detail", "ad_list", "answer_detail", "company_detail"})
|
||||
* @Groups({"ad_detail", "ad_list", "answer_detail", "company_detail","answer_list"})
|
||||
*
|
||||
*/
|
||||
private $extra;
|
||||
@@ -240,7 +239,7 @@ class Ad
|
||||
*
|
||||
* @ORM\Column(name="location", type="json_document", nullable=true, options={"jsonb":true})
|
||||
*
|
||||
* @Groups({"ad_detail", "ad_list","answer_detail", "company_detail"})
|
||||
* @Groups({"ad_detail", "ad_list","answer_detail", "company_detail","answer_list"})
|
||||
*/
|
||||
private $location;
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ class Answer
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="status_reponse", type="string", length=255, nullable=true, options={"default":"A_TRAITER"})
|
||||
*
|
||||
* @Groups({"answer_detail","answer_list"})
|
||||
*/
|
||||
private $statusReponse ='A_TRAITER';
|
||||
|
||||
|
||||
@@ -11,8 +11,7 @@ trait ExtraJsonTrait
|
||||
* @var array
|
||||
*
|
||||
* @ORM\Column(name="extra", type="json_document", nullable=true)
|
||||
*
|
||||
* @Groups({"ad_detail" , "company_detail", "company_list"})
|
||||
* @Groups({"answer_detail","answer_list", "ad_detail" , "company_detail", "company_list"})
|
||||
*/
|
||||
private $extra;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user