mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-10-09 17:02:47 +02:00
restore mass import path
This commit is contained in:
parent
7ad6f2d823
commit
2d1e830895
4 changed files with 87 additions and 75 deletions
|
@ -14,7 +14,7 @@ $(document).ready(function () {
|
||||||
' dessin A4 crayon;20€\n' +
|
' dessin A4 crayon;20€\n' +
|
||||||
' dessin A4 aquarelle;150€';
|
' dessin A4 aquarelle;150€';
|
||||||
|
|
||||||
$('[data-toggle="popover"]').popover();
|
// $('[data-toggle="popover"]').popover();
|
||||||
$('#menu_button').on('click', function () {
|
$('#menu_button').on('click', function () {
|
||||||
$('#menu-dashboard').toggleClass('shown');
|
$('#menu-dashboard').toggleClass('shown');
|
||||||
});
|
});
|
||||||
|
|
|
@ -110,10 +110,21 @@ final class DefaultController extends AbstractController
|
||||||
|
|
||||||
$products = $this->getUser()->get_my_products();
|
$products = $this->getUser()->get_my_products();
|
||||||
return $this->json([
|
return $this->json([
|
||||||
'products' => $products,
|
'products' => $this->getUser()->getProducts(),
|
||||||
'user' => $this->getUser(),
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
#[Route('/logged/import', name: 'import')]
|
||||||
|
public function import(): Response
|
||||||
|
{
|
||||||
|
// prendre en compte l'ajout de nouveaux produits si on a une valeur dans le POST
|
||||||
|
return $this->render('logged/import.html.twig', []);
|
||||||
|
}
|
||||||
|
#[Route('/logged/mass_create', name: 'mass_create')]
|
||||||
|
public function mass_create(): Response
|
||||||
|
{
|
||||||
|
// prendre en compte l'ajout de nouveaux produits si on a une valeur dans le POST
|
||||||
|
return $this->render('logged/import.html.twig', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
<div class="login-choices">
|
<div class="login-choices">
|
||||||
|
|
||||||
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
|
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
|
||||||
|
{# panel latéral détaillant les liens#}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-sm-9">
|
<div class="col-xs-12 col-sm-9">
|
||||||
<div id="menu-dashboard">
|
<div id="menu-dashboard">
|
||||||
|
@ -25,91 +26,91 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{# <a class="btn {% if app.request.attributes.get('_route') == 'productcategory_index' %}#}
|
<a class="btn {% if app.request.attributes.get('_route') == 'productcategory_index' %}
|
||||||
{# btn-success#}
|
btn-success
|
||||||
{# {% else %}#}
|
{% else %}
|
||||||
{# btn-default#}
|
btn-default
|
||||||
{# {% endif %} "#}
|
{% endif %} "
|
||||||
{# href="{{ path('productcategory_index') }}">#}
|
href="{{ path('app_group_of_products_index') }}">
|
||||||
{# <i class="fa fa-file-archive-o"></i>#}
|
<i class="fa fa-file-archive-o"></i>
|
||||||
{# {% trans %}menu.categories{% endtrans %}#}
|
{% trans %}menu.categories{% endtrans %}
|
||||||
{# <span class="badge">#}
|
<span class="badge">
|
||||||
{# {{ app.user.categories|length }}#}
|
{{ app.user.groupOfProducts|length }}
|
||||||
{# </span>#}
|
</span>
|
||||||
{# </a>#}
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{# <a class="btn {% if app.request.attributes.get('_route') == 'product_index' %}#}
|
<a class="btn {% if app.request.attributes.get('_route') == 'product_index' %}
|
||||||
{# btn-success#}
|
btn-success
|
||||||
{# {% else %}#}
|
{% else %}
|
||||||
{# btn-default#}
|
btn-default
|
||||||
{# {% endif %} "#}
|
{% endif %} "
|
||||||
{# href="{{ path('product_index') }}"#}
|
href="{{ path('app_product_index') }}"
|
||||||
{# >#}
|
>
|
||||||
{# <i class="fa fa-gears"></i>#}
|
<i class="fa fa-gears"></i>
|
||||||
{# {% trans %}menu.products{% endtrans %}#}
|
{% trans %}menu.products{% endtrans %}
|
||||||
{# <span class="badge">#}
|
<span class="badge">
|
||||||
{# {{ app.user.products|length }}#}
|
{{ app.user.products|length }}
|
||||||
{# </span>#}
|
</span>
|
||||||
{# </a>#}
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{# <a id="menu_festivals"#}
|
<a id="menu_festivals"
|
||||||
{# class="btn {% if app.request.attributes.get('_route') == 'festival_index' %}#}
|
class="btn {% if app.request.attributes.get('_route') == 'festival_index' %}
|
||||||
{# btn-success#}
|
btn-success
|
||||||
{# {% else %}#}
|
{% else %}
|
||||||
{# btn-default#}
|
btn-default
|
||||||
{# {% endif %}#}
|
{% endif %}
|
||||||
{# " href='{{ path('festival_index') }}'#}
|
" href='{{ path('app_festival_index') }}'
|
||||||
{# >#}
|
>
|
||||||
{# <i class="fa fa-th-large"></i>#}
|
<i class="fa fa-th-large"></i>
|
||||||
|
|
||||||
{# {% trans %}menu.festivals{% endtrans %}#}
|
{% trans %}menu.festivals{% endtrans %}
|
||||||
{# <span class="badge">#}
|
<span class="badge">
|
||||||
{# {{ app.user.festivals|length }}#}
|
{{ app.user.festivals|length }}
|
||||||
{# </span>#}
|
</span>
|
||||||
{# </a>#}
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{# <a id="menu_series"#}
|
<a id="menu_series"
|
||||||
{# class="btn {% if app.request.attributes.get('_route') == 'seriefestival_index' %}#}
|
class="btn {% if app.request.attributes.get('_route') == 'seriefestival_index' %}
|
||||||
{# btn-success#}
|
btn-success
|
||||||
{# {% else %}#}
|
{% else %}
|
||||||
{# btn-default#}
|
btn-default
|
||||||
{# {% endif %}#}
|
{% endif %}
|
||||||
{# " href='{{ path('seriefestival_index') }}'#}
|
" href='{{ path('app_serie_festival_index') }}'
|
||||||
{# >#}
|
>
|
||||||
{# <i class="fa fa-th-large"></i>#}
|
<i class="fa fa-th-large"></i>
|
||||||
|
|
||||||
{# {% trans %}menu.series{% endtrans %}#}
|
{% trans %}menu.series{% endtrans %}
|
||||||
{# <span class="badge">#}
|
<span class="badge">
|
||||||
{# {{ app.user.seriesFestivals|length }}#}
|
{{ app.user.seriesFestival|length }}
|
||||||
{# </span>#}
|
</span>
|
||||||
{# </a>#}
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{# <a class="btn {% if app.request.attributes.get('_route') == 'history' %}#}
|
<a class="btn {% if app.request.attributes.get('_route') == 'history' %}
|
||||||
{# btn-success#}
|
btn-success
|
||||||
{# {% else %}#}
|
{% else %}
|
||||||
{# btn-default#}
|
btn-default
|
||||||
{# {% endif %}" href="{{ path('history') }}"#}
|
{% endif %}" href="{{ path('history') }}"
|
||||||
{# >#}
|
>
|
||||||
{# <i class="fa fa-clock-o"></i>#}
|
<i class="fa fa-clock-o"></i>
|
||||||
{# {% trans %}menu.history{% endtrans %}#}
|
{% trans %}menu.history{% endtrans %}
|
||||||
{# </a>#}
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|
||||||
{# <a class="btn {% if app.request.attributes.get('_route') == 'import' %}#}
|
<a class="btn {% if app.request.attributes.get('_route') == 'import' %}
|
||||||
{# btn-success#}
|
btn-success
|
||||||
{# {% else %}#}
|
{% else %}
|
||||||
{# btn-default#}
|
btn-default
|
||||||
{# {% endif %}" href="{{ path('import') }}"#}
|
{% endif %}" href="{{ path('import') }}"
|
||||||
{# >#}
|
>
|
||||||
{# <i class="fa fa-arrow-circle-o-up"></i>#}
|
<i class="fa fa-arrow-circle-o-up"></i>
|
||||||
|
|
||||||
{# {% trans %}menu.import{% endtrans %}#}
|
{% trans %}menu.import{% endtrans %}
|
||||||
{# </a>#}
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
|
|
||||||
{% if festival.user|length %}
|
{% if festival.user|length %}
|
||||||
{% for u in festival.user %}
|
{% for u in festival.user %}
|
||||||
<span class="badge badge-info">{{ u.username }}</span>
|
<span class="badge badge-info">{{ u.name }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue