astuce texte

This commit is contained in:
Kayn Ty 2018-05-24 15:48:49 +02:00
parent 9aa584dbcb
commit ff118f64a6
No known key found for this signature in database
GPG Key ID: 55B09AA0ED327CD3
6 changed files with 19 additions and 4 deletions

View File

@ -1,6 +1,7 @@
{% verbatim %}
<div class="row">
<div class="category-listing well" ng-repeat="c in categories">
<div class="category-listing col-md-6 col-xs-12" ng-repeat="c in categories">
<h2>
{{ c.name }}
@ -26,5 +27,6 @@
</button>
</span>
</div>
</div>
{% endverbatim %}

View File

@ -5,7 +5,15 @@
<div class="col-xs-6">
<h1>Produits</h1></div>
<div class="col-xs-6">
<a class="btn btn-primary pull-right" href="{{ path('product_new') }}">Nouveau produit</a>
<span class="alert alert-info pull-right">
astuce: Utilisez
<a href="{{ path('import') }}">
l'import de masse
</a>
pour créer plusieurs produits et catégories à la fois
</span>
</div>
</div>

View File

@ -3,7 +3,7 @@
display: inline-block;
margin-right: 1rem;
margin-bottom: 1rem;
width: 50%;
width: 100%;
}
.product-button {
width: 80%;

View File

View File

@ -1,6 +1,5 @@
// require('../../../node_modules/canvasjs/dist/canvasjs.3');
var $ = require('jquery');
// JS is equivalent to the normal "bootstrap" package
// no need to set this to a variable, just require it
@ -15,6 +14,7 @@ $(document).ready(function () {
console.log('hello console for main.js');
var stuff = ['initialstuff'];
angular
.module('caisse', [])
.controller('CaisseCtrl', ['$scope', '$http', function ($scope, $http, stuff) {
@ -137,6 +137,10 @@ angular
});
};
/**
* sell one product, assuming the client has the right amount of money
* @param product
*/
$scope.expressSell = function (product) {
$scope.addProduct(product);
$scope.sendForm();
@ -144,7 +148,7 @@ angular
$scope.recentId = 0;
$scope.logger = function (stuff) {
console.log('logger', stuff);
}
};
$scope.sendForm = function () {
console.log('$scope.sellingComment', this.sellingComment);
let lesParams = {

View File

@ -46,6 +46,7 @@ class FestivalController extends Controller {
if ( $form->isSubmitted() && $form->isValid() ) {
$em = $this->getDoctrine()->getManager();
$em->persist( $festival );
$em->persist( $this->getUser() );
$em->flush();
return $this->redirectToRoute( 'festival_show', [ 'id' => $festival->getId() ] );