traduire boutons crud
This commit is contained in:
parent
155728eb78
commit
cf7a892e08
|
@ -1,9 +1,9 @@
|
||||||
<sub class="footer-note text-center"> développé par Tykayn /
|
<sub class="footer-note text-center"> développé par Tykayn /
|
||||||
<a href="http://www.cipherbliss.com">
|
<a class="btn btn-primary" href="http://www.cipherbliss.com">
|
||||||
Cipher Bliss
|
Cipher Bliss
|
||||||
</a>
|
</a>
|
||||||
|
|
|
|
||||||
<a href="mailto:contact@cipherbliss.com">
|
<a class="btn btn-primary" href="mailto:contact@cipherbliss.com">
|
||||||
<i class="fa fa-mail"></i>
|
<i class="fa fa-mail"></i>
|
||||||
contact
|
contact
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{% block navigation %}
|
{% block navigation %}
|
||||||
<div class="navbar">
|
<div class="navbar">
|
||||||
|
|
||||||
<a href="{{ path('homepage') }}">
|
<a class="btn btn-primary" href="{{ path('homepage') }}">
|
||||||
<i class="fa fa-home"></i>
|
<i class="fa fa-home"></i>
|
||||||
Homepage
|
Homepage
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -15,6 +15,26 @@
|
||||||
<i class="fa fa-list"></i>
|
<i class="fa fa-list"></i>
|
||||||
Dashboard
|
Dashboard
|
||||||
</a>
|
</a>
|
||||||
|
<div id="menu-dashboard">
|
||||||
|
<ul class="nav nav-pills">
|
||||||
|
<li>
|
||||||
|
<a class="btn btn-primary" href="#caisse-now" data-toggle="tab">Caisse</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="btn btn-primary" href="{{ path('productcategory_index') }}">
|
||||||
|
Catégories
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="btn btn-primary" href="{{ path('product_index') }}" data-toggle="tab">
|
||||||
|
Produits
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="btn btn-primary" href="#history" data-toggle="tab">Historique</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-6 text-right">
|
<div class="col-xs-6 text-right">
|
||||||
{{ 'layout.logged_in_as'|trans({'%username%': app.user.username}, 'FOSUserBundle') }} |
|
{{ 'layout.logged_in_as'|trans({'%username%': app.user.username}, 'FOSUserBundle') }} |
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="try">
|
<div class="try">
|
||||||
<a href="{{ path('dashboard') }}" class="btn btn-primary">Essayez dès maintenant</a>
|
<a class="btn btn-primary" href="{{ path('dashboard') }}" class="btn btn-primary">Essayez dès maintenant</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -4,17 +4,21 @@
|
||||||
<h1>Festival edit</h1>
|
<h1>Festival edit</h1>
|
||||||
|
|
||||||
{{ form_start(edit_form) }}
|
{{ form_start(edit_form) }}
|
||||||
{{ form_widget(edit_form) }}
|
{{ form_widget(edit_form) }}
|
||||||
<input type="submit" value="Edit" />
|
<input type=submit value=" Envoyer
|
||||||
|
"/>
|
||||||
{{ form_end(edit_form) }}
|
{{ form_end(edit_form) }}
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('festival_index') }}">Back to the list</a>
|
<a class="btn btn-primary" href="{{ path('festival_index') }}">
|
||||||
|
<i class="fa fa-arrow-left"/>
|
||||||
|
Retour à la liste
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{{ form_start(delete_form) }}
|
{{ form_start(delete_form) }}
|
||||||
<input type="submit" value="Delete">
|
<input type="submit" value="Delete">
|
||||||
{{ form_end(delete_form) }}
|
{{ form_end(delete_form) }}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -5,26 +5,32 @@
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Id</th>
|
<th>Id</th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Datecreation</th>
|
<th>Datecreation</th>
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for festival in festivals %}
|
{% for festival in festivals %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ path('festival_show', { 'id': festival.id }) }}">{{ festival.id }}</a></td>
|
<td>
|
||||||
|
<a class="btn btn-primary"
|
||||||
|
href="{{ path('festival_show', { 'id': festival.id }) }}">{{ festival.id }}</a>
|
||||||
|
</td>
|
||||||
<td>{{ festival.name }}</td>
|
<td>{{ festival.name }}</td>
|
||||||
<td>{% if festival.dateCreation %}{{ festival.dateCreation|date('Y-m-d H:i:s') }}{% endif %}</td>
|
<td>{% if festival.dateCreation %}{{ festival.dateCreation|date('Y-m-d H:i:s') }}{% endif %}</td>
|
||||||
<td>
|
<td>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('festival_show', { 'id': festival.id }) }}">show</a>
|
<a class="btn btn-primary" href="{{ path('festival_show', { 'id': festival.id }) }}">voir
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('festival_edit', { 'id': festival.id }) }}">edit</a>
|
<a class="btn btn-primary" href="{{ path('festival_edit', { 'id': festival.id }) }}">
|
||||||
|
<i class="fa fa-pencil"></i>
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
|
@ -35,7 +41,7 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('festival_new') }}">Create a new festival</a>
|
<a class="btn btn-primary" href="{{ path('festival_new') }}">Create a new festival</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('festival_index') }}">Back to the list</a>
|
<a class="btn btn-primary" href="{{ path('festival_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -22,10 +22,10 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('festival_index') }}">Back to the list</a>
|
<a class="btn btn-primary" href="{{ path('festival_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('festival_edit', { 'id': festival.id }) }}">Edit</a>
|
<a class="btn btn-primary" href="{{ path('festival_edit', { 'id': festival.id }) }}"><a class="btn btn-primary" href="</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{{ form_start(delete_form) }}
|
{{ form_start(delete_form) }}
|
||||||
|
|
|
@ -3,24 +3,7 @@
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
<div id="container" class="container">
|
<div id="container" class="container">
|
||||||
<div id="menu-dashboard">
|
|
||||||
<ul class="nav nav-pills">
|
|
||||||
<li>
|
|
||||||
<a href="#caisse-now" data-toggle="tab">Caisse</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="{{ path('productcategory_index') }}">Catégories</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="{{ path('product_index') }}" data-toggle="tab">Produits</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#history" data-toggle="tab">Historique</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div id="caisse-now" class="tab-pane fade in active">
|
<div id="caisse-now" class="tab-pane fade in active">
|
||||||
<h2>Caisse</h2>
|
<h2>Caisse</h2>
|
||||||
{% include 'logged/caisse-main.html.twig' %}
|
{% include 'logged/caisse-main.html.twig' %}
|
||||||
|
|
|
@ -4,17 +4,20 @@
|
||||||
<h1>Product edit</h1>
|
<h1>Product edit</h1>
|
||||||
|
|
||||||
{{ form_start(edit_form) }}
|
{{ form_start(edit_form) }}
|
||||||
{{ form_widget(edit_form) }}
|
{{ form_widget(edit_form) }}
|
||||||
<input type="submit" value="Edit" />
|
<input type="submit" value="Edit"/>
|
||||||
{{ form_end(edit_form) }}
|
{{ form_end(edit_form) }}
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('product_index') }}">Back to the list</a>
|
<a class="btn btn-primary" href="{{ path('product_index') }}">
|
||||||
|
<i class="fa fa-arrow-left"/>
|
||||||
|
Retour à la liste
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{{ form_start(delete_form) }}
|
{{ form_start(delete_form) }}
|
||||||
<input type="submit" value="Delete">
|
<input type="submit" value="Delete">
|
||||||
{{ form_end(delete_form) }}
|
{{ form_end(delete_form) }}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -5,19 +5,22 @@
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Id</th>
|
<th>Id</th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Image</th>
|
<th>Image</th>
|
||||||
<th>Price</th>
|
<th>Price</th>
|
||||||
<th>Comment</th>
|
<th>Comment</th>
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for product in products %}
|
{% for product in products %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ path('product_show', { 'id': product.id }) }}">{{ product.id }}</a></td>
|
<td>
|
||||||
|
<a class="btn btn-primary"
|
||||||
|
href="{{ path('product_show', { 'id': product.id }) }}">{{ product.id }}</a>
|
||||||
|
</td>
|
||||||
<td>{{ product.name }}</td>
|
<td>{{ product.name }}</td>
|
||||||
<td>{{ product.image }}</td>
|
<td>{{ product.image }}</td>
|
||||||
<td>{{ product.price }}</td>
|
<td>{{ product.price }}</td>
|
||||||
|
@ -25,10 +28,12 @@
|
||||||
<td>
|
<td>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('product_show', { 'id': product.id }) }}">show</a>
|
<a class="btn btn-default" href="{{ path('product_show', { 'id': product.id }) }}">voir</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('product_edit', { 'id': product.id }) }}">edit</a>
|
<a class="btn btn-default" href="{{ path('product_edit', { 'id': product.id }) }}">
|
||||||
|
<i class="fa fa-pencil"></i>
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
|
@ -39,7 +44,7 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('product_new') }}">Create a new product</a>
|
<a class="btn btn-primary" href="{{ path('product_new') }}">Create a new product</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -4,13 +4,16 @@
|
||||||
<h1>Product creation</h1>
|
<h1>Product creation</h1>
|
||||||
|
|
||||||
{{ form_start(form) }}
|
{{ form_start(form) }}
|
||||||
{{ form_widget(form) }}
|
{{ form_widget(form) }}
|
||||||
<input type="submit" value="Create" />
|
<input type="submit" value="Create"/>
|
||||||
{{ form_end(form) }}
|
{{ form_end(form) }}
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('product_index') }}">Back to the list</a>
|
<a class="btn btn-primary" href="{{ path('product_index') }}">
|
||||||
|
<i class="fa fa-arrow-left"/>
|
||||||
|
Retour à la liste
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -30,10 +30,10 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('product_index') }}">Back to the list</a>
|
<a class="btn btn-primary" href="{{ path('product_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('product_edit', { 'id': product.id }) }}">Edit</a>
|
<a class="btn btn-primary" href="{{ path('product_edit', { 'id': product.id }) }}"><a class="btn btn-primary" href="</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{{ form_start(delete_form) }}
|
{{ form_start(delete_form) }}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends 'base.html.twig' %}
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<h1>Productcategory edit</h1>
|
<h1>Productcategory edit</h1>
|
||||||
|
|
||||||
{{ form_start(edit_form) }}
|
{{ form_start(edit_form) }}
|
||||||
{{ form_widget(edit_form) }}
|
{{ form_widget(edit_form) }}
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('productcategory_index') }}">Back to the list</a>
|
<a class="btn btn-primary" href="{{ path('productcategory_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{{ form_start(delete_form) }}
|
{{ form_start(delete_form) }}
|
||||||
|
|
|
@ -5,24 +5,32 @@
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Id</th>
|
<th>Id</th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for productCategory in productCategories %}
|
{% for productCategory in productCategories %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ path('productcategory_show', { 'id': productCategory.id }) }}">{{ productCategory.id }}</a></td>
|
<td>
|
||||||
|
<a class="btn btn-primary"
|
||||||
|
href="{{ path('productcategory_show', { 'id': productCategory.id }) }}">{{ productCategory.id }}</a>
|
||||||
|
</td>
|
||||||
<td>{{ productCategory.name }}</td>
|
<td>{{ productCategory.name }}</td>
|
||||||
<td>
|
<td>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('productcategory_show', { 'id': productCategory.id }) }}">show</a>
|
<a class="btn btn-primary"
|
||||||
|
href="{{ path('productcategory_show', { 'id': productCategory.id }) }}">voir
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('productcategory_edit', { 'id': productCategory.id }) }}">edit</a>
|
<a class="btn btn-primary"
|
||||||
|
href="{{ path('productcategory_edit', { 'id': productCategory.id }) }}">
|
||||||
|
<i class="fa fa-pencil"></i>
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
|
@ -33,7 +41,7 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('productcategory_new') }}">Create a new productCategory</a>
|
<a class="btn btn-primary" href="{{ path('productcategory_new') }}">Create a new productCategory</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('productcategory_index') }}">Back to the list</a>
|
<a class="btn btn-primary" href="{{ path('productcategory_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -18,10 +18,10 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('productcategory_index') }}">Back to the list</a>
|
<a class="btn btn-primary" href="{{ path('productcategory_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('productcategory_edit', { 'id': productCategory.id }) }}">Edit</a>
|
<a class="btn btn-primary" href="{{ path('productcategory_edit', { 'id': productCategory.id }) }}"><a class="btn btn-primary" href="</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{{ form_start(delete_form) }}
|
{{ form_start(delete_form) }}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends 'base.html.twig' %}
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<h1>Sellrecord edit</h1>
|
<h1>Sellrecord edit</h1>
|
||||||
|
|
||||||
{{ form_start(edit_form) }}
|
{{ form_start(edit_form) }}
|
||||||
{{ form_widget(edit_form) }}
|
{{ form_widget(edit_form) }}
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('sellrecord_index') }}">Back to the list</a>
|
<a class="btn btn-primary" href="{{ path('sellrecord_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{{ form_start(delete_form) }}
|
{{ form_start(delete_form) }}
|
||||||
|
|
|
@ -5,22 +5,30 @@
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for sellRecord in sellRecords %}
|
{% for sellRecord in sellRecords %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ path('sellrecord_show', { 'date': sellRecord.date }) }}">{{ sellRecord.date }}</a></td>
|
<td>
|
||||||
|
<a class="btn btn-primary"
|
||||||
|
href="{{ path('sellrecord_show', { 'date': sellRecord.date }) }}">{{ sellRecord.date }}</a>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('sellrecord_show', { 'date': sellRecord.date }) }}">show</a>
|
<a class="btn btn-primary"
|
||||||
|
href="{{ path('sellrecord_show', { 'date': sellRecord.date }) }}">voir
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('sellrecord_edit', { 'date': sellRecord.date }) }}">edit</a>
|
<a class="btn btn-primary"
|
||||||
|
href="{{ path('sellrecord_edit', { 'date': sellRecord.date }) }}">
|
||||||
|
<i class="fa fa-pencil"></i>
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
|
@ -31,7 +39,7 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('sellrecord_new') }}">Create a new sellRecord</a>
|
<a class="btn btn-primary" href="{{ path('sellrecord_new') }}">Create a new sellRecord</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('sellrecord_index') }}">Back to the list</a>
|
<a class="btn btn-primary" href="{{ path('sellrecord_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('sellrecord_index') }}">Back to the list</a>
|
<a class="btn btn-primary" href="{{ path('sellrecord_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('sellrecord_edit', { 'date': sellRecord.date }) }}">Edit</a>
|
<a class="btn btn-primary" href="{{ path('sellrecord_edit', { 'date': sellRecord.date }) }}"><a class="btn btn-primary" href="</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{{ form_start(delete_form) }}
|
{{ form_start(delete_form) }}
|
||||||
|
|
|
@ -121,25 +121,7 @@ class DefaultController extends Controller {
|
||||||
*/
|
*/
|
||||||
public function addSellingAction( Request $request ) {
|
public function addSellingAction( Request $request ) {
|
||||||
|
|
||||||
// $mockJson = "{
|
$json = json_decode( $request->getContent(), true );
|
||||||
// 'paidByClient': 20,
|
|
||||||
// 'sellingComment': 'sellingComment',
|
|
||||||
// 'activeSelling': [
|
|
||||||
// {
|
|
||||||
// 'id': 1,
|
|
||||||
// 'name': 'aaaaaa',
|
|
||||||
// 'category': 1,
|
|
||||||
// 'price': 1
|
|
||||||
// }
|
|
||||||
// ],
|
|
||||||
// 'activeFestival': {
|
|
||||||
// 'name': 'le festival',
|
|
||||||
// 'dateCreation': '2018-04-17T10:32:00.910Z',
|
|
||||||
// 'commentaire': 'le com de festival'
|
|
||||||
// }
|
|
||||||
//}";
|
|
||||||
$json = json_decode( $request->getContent(), true );
|
|
||||||
// $json = json_decode( $mockJson, true );
|
|
||||||
$currentUser = $this->getUser();
|
$currentUser = $this->getUser();
|
||||||
$m = $this->getDoctrine()->getManager();
|
$m = $this->getDoctrine()->getManager();
|
||||||
$newSellRecord = new SellRecord();
|
$newSellRecord = new SellRecord();
|
||||||
|
@ -176,6 +158,7 @@ class DefaultController extends Controller {
|
||||||
|
|
||||||
$newSellRecord->setAmount( $sumAmount );
|
$newSellRecord->setAmount( $sumAmount );
|
||||||
$newSellRecord->setDate( new \DateTime() );
|
$newSellRecord->setDate( new \DateTime() );
|
||||||
|
$newSellRecord->setUser( $currentUser );
|
||||||
$newSellRecord->setPaidByClient( $json[ 'paidByClient' ] );
|
$newSellRecord->setPaidByClient( $json[ 'paidByClient' ] );
|
||||||
// $newSellRecord->setUser( $currentUser );
|
// $newSellRecord->setUser( $currentUser );
|
||||||
$newSellRecord->setComment( $json[ 'sellingComment' ] );
|
$newSellRecord->setComment( $json[ 'sellingComment' ] );
|
||||||
|
@ -190,13 +173,13 @@ class DefaultController extends Controller {
|
||||||
|
|
||||||
// fetch back history of selling
|
// fetch back history of selling
|
||||||
$sellingRepo = $m->getRepository( 'AppBundle:SellRecord' );
|
$sellingRepo = $m->getRepository( 'AppBundle:SellRecord' );
|
||||||
$lastSellings = $sellingRepo->findBy( [], [ 'id' => 'desc' ], 0, 3 );
|
$lastSellings = $sellingRepo->findBy( [ 'user' => $currentUser->getId() ], [ 'id' => 'desc' ], 0, 3 );
|
||||||
|
|
||||||
// return var_dump( $request->getContent() );
|
// return var_dump( $request->getContent() );
|
||||||
return new JsonResponse( [
|
return new JsonResponse( [
|
||||||
"message" => "ok",
|
"message" => "ok",
|
||||||
"recent_sellings" => $lastSellings,
|
"recent_sellings" => json_encode( $lastSellings ),
|
||||||
"dump" => $json,
|
"dump" => $json,
|
||||||
] );
|
], 200 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,7 +148,7 @@ class PhpIniRequirement extends Requirement
|
||||||
}
|
}
|
||||||
|
|
||||||
if (null === $helpHtml) {
|
if (null === $helpHtml) {
|
||||||
$helpHtml = sprintf('Set <strong>%s</strong> to <strong>%s</strong> in php.ini<a href="#phpini">*</a>.',
|
$helpHtml = sprintf('Set <strong>%s</strong> to <strong>%s</strong> in php.ini<a class="btn btn-primary" href="#phpini">*</a>.',
|
||||||
$cfgName,
|
$cfgName,
|
||||||
$evaluation ? 'on' : 'off'
|
$evaluation ? 'on' : 'off'
|
||||||
);
|
);
|
||||||
|
@ -419,7 +419,7 @@ class SymfonyRequirements extends RequirementCollection
|
||||||
$this->addRequirement(
|
$this->addRequirement(
|
||||||
is_dir(__DIR__.'/../vendor/composer'),
|
is_dir(__DIR__.'/../vendor/composer'),
|
||||||
'Vendor libraries must be installed',
|
'Vendor libraries must be installed',
|
||||||
'Vendor libraries are missing. Install composer following instructions from <a href="http://getcomposer.org/">http://getcomposer.org/</a>. '.
|
'Vendor libraries are missing. Install composer following instructions from <a class="btn btn-primary" href="http://getcomposer.org/">http://getcomposer.org/</a>. '.
|
||||||
'Then run "<strong>php composer.phar install</strong>" to install them.'
|
'Then run "<strong>php composer.phar install</strong>" to install them.'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -443,7 +443,7 @@ class SymfonyRequirements extends RequirementCollection
|
||||||
$this->addPhpIniRequirement(
|
$this->addPhpIniRequirement(
|
||||||
'date.timezone', true, false,
|
'date.timezone', true, false,
|
||||||
'date.timezone setting must be set',
|
'date.timezone setting must be set',
|
||||||
'Set the "<strong>date.timezone</strong>" setting in php.ini<a href="#phpini">*</a> (like Europe/Paris).'
|
'Set the "<strong>date.timezone</strong>" setting in php.ini<a class="btn btn-primary" href="#phpini">*</a> (like Europe/Paris).'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -458,7 +458,7 @@ class SymfonyRequirements extends RequirementCollection
|
||||||
$this->addRequirement(
|
$this->addRequirement(
|
||||||
isset($timezones[@date_default_timezone_get()]),
|
isset($timezones[@date_default_timezone_get()]),
|
||||||
sprintf('Configured default timezone "%s" must be supported by your installation of PHP', @date_default_timezone_get()),
|
sprintf('Configured default timezone "%s" must be supported by your installation of PHP', @date_default_timezone_get()),
|
||||||
'Your default timezone is not supported by PHP. Check for typos in your <strong>php.ini</strong> file and have a look at the list of deprecated timezones at <a href="http://php.net/manual/en/timezones.others.php">http://php.net/manual/en/timezones.others.php</a>.'
|
'Your default timezone is not supported by PHP. Check for typos in your <strong>php.ini</strong> file and have a look at the list of deprecated timezones at <a class="btn btn-primary" href="http://php.net/manual/en/timezones.others.php">http://php.net/manual/en/timezones.others.php</a>.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -522,7 +522,7 @@ class SymfonyRequirements extends RequirementCollection
|
||||||
create_function('$cfgValue', 'return false !== stripos($cfgValue, "phar");'),
|
create_function('$cfgValue', 'return false !== stripos($cfgValue, "phar");'),
|
||||||
false,
|
false,
|
||||||
'suhosin.executor.include.whitelist must be configured correctly in php.ini',
|
'suhosin.executor.include.whitelist must be configured correctly in php.ini',
|
||||||
'Add "<strong>phar</strong>" to <strong>suhosin.executor.include.whitelist</strong> in php.ini<a href="#phpini">*</a>.'
|
'Add "<strong>phar</strong>" to <strong>suhosin.executor.include.whitelist</strong> in php.ini<a class="btn btn-primary" href="#phpini">*</a>.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -540,7 +540,7 @@ class SymfonyRequirements extends RequirementCollection
|
||||||
create_function('$cfgValue', 'return $cfgValue > 100;'),
|
create_function('$cfgValue', 'return $cfgValue > 100;'),
|
||||||
true,
|
true,
|
||||||
'xdebug.max_nesting_level should be above 100 in php.ini',
|
'xdebug.max_nesting_level should be above 100 in php.ini',
|
||||||
'Set "<strong>xdebug.max_nesting_level</strong>" to e.g. "<strong>250</strong>" in php.ini<a href="#phpini">*</a> to stop Xdebug\'s infinite recursion protection erroneously throwing a fatal error in your project.'
|
'Set "<strong>xdebug.max_nesting_level</strong>" to e.g. "<strong>250</strong>" in php.ini<a class="btn btn-primary" href="#phpini">*</a> to stop Xdebug\'s infinite recursion protection erroneously throwing a fatal error in your project.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -558,7 +558,7 @@ class SymfonyRequirements extends RequirementCollection
|
||||||
create_function('$cfgValue', 'return (int) $cfgValue === 0;'),
|
create_function('$cfgValue', 'return (int) $cfgValue === 0;'),
|
||||||
true,
|
true,
|
||||||
'string functions should not be overloaded',
|
'string functions should not be overloaded',
|
||||||
'Set "<strong>mbstring.func_overload</strong>" to <strong>0</strong> in php.ini<a href="#phpini">*</a> to disable function overloading by the mbstring extension.'
|
'Set "<strong>mbstring.func_overload</strong>" to <strong>0</strong> in php.ini<a class="btn btn-primary" href="#phpini">*</a> to disable function overloading by the mbstring extension.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -707,7 +707,7 @@ class SymfonyRequirements extends RequirementCollection
|
||||||
create_function('$cfgValue', 'return (int) $cfgValue === 0;'),
|
create_function('$cfgValue', 'return (int) $cfgValue === 0;'),
|
||||||
true,
|
true,
|
||||||
'intl.error_level should be 0 in php.ini',
|
'intl.error_level should be 0 in php.ini',
|
||||||
'Set "<strong>intl.error_level</strong>" to "<strong>0</strong>" in php.ini<a href="#phpini">*</a> to inhibit the messages when an error occurs in ICU functions.'
|
'Set "<strong>intl.error_level</strong>" to "<strong>0</strong>" in php.ini<a class="btn btn-primary" href="#phpini">*</a> to inhibit the messages when an error occurs in ICU functions.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -735,7 +735,7 @@ class SymfonyRequirements extends RequirementCollection
|
||||||
$this->addRecommendation(
|
$this->addRecommendation(
|
||||||
$this->getRealpathCacheSize() >= 5 * 1024 * 1024,
|
$this->getRealpathCacheSize() >= 5 * 1024 * 1024,
|
||||||
'realpath_cache_size should be at least 5M in php.ini',
|
'realpath_cache_size should be at least 5M in php.ini',
|
||||||
'Setting "<strong>realpath_cache_size</strong>" to e.g. "<strong>5242880</strong>" or "<strong>5M</strong>" in php.ini<a href="#phpini">*</a> may improve performance on Windows significantly in some cases.'
|
'Setting "<strong>realpath_cache_size</strong>" to e.g. "<strong>5242880</strong>" or "<strong>5M</strong>" in php.ini<a class="btn btn-primary" href="#phpini">*</a> may improve performance on Windows significantly in some cases.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -410,7 +410,7 @@ $hasMinorProblems = (bool) count($minorProblems);
|
||||||
|
|
||||||
<ul class="symfony-install-continue">
|
<ul class="symfony-install-continue">
|
||||||
<?php if ($hasMajorProblems || $hasMinorProblems): ?>
|
<?php if ($hasMajorProblems || $hasMinorProblems): ?>
|
||||||
<li><a href="config.php">Re-check configuration</a></li>
|
<li><a class="btn btn-primary" href="config.php">Re-check configuration</a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue