first commit
This commit is contained in:
7
assets/modules/backend/app_backend.js
Executable file
7
assets/modules/backend/app_backend.js
Executable file
@@ -0,0 +1,7 @@
|
||||
import 'jquery';
|
||||
import 'jquery.easing';
|
||||
import 'bootstrap';
|
||||
|
||||
import '../../javascript/backend/sb-admin-2';
|
||||
|
||||
import '../../styles/app_backend.scss';
|
||||
5
assets/modules/backend/app_backend_annonce.js
Executable file
5
assets/modules/backend/app_backend_annonce.js
Executable file
@@ -0,0 +1,5 @@
|
||||
import '../../../assets/styles/backend/_upload_dropZone.scss';
|
||||
|
||||
import '../../javascript/backend/annonce';
|
||||
|
||||
import '../../javascript/backend/position';
|
||||
8
assets/modules/backend/app_backend_article_service.js
Normal file
8
assets/modules/backend/app_backend_article_service.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import 'datatables.net-bs5';
|
||||
import 'cropperjs/dist/cropper.css';
|
||||
import "jquery-cropper/dist/jquery-cropper.js";
|
||||
|
||||
import '../../../assets/styles/backend/_upload_dropZone.scss';
|
||||
|
||||
import '../../javascript/backend/article';
|
||||
import '../../javascript/backend/service';
|
||||
2
assets/modules/backend/app_backend_dashboard.js
Executable file
2
assets/modules/backend/app_backend_dashboard.js
Executable file
@@ -0,0 +1,2 @@
|
||||
|
||||
import '../../javascript/backend/dashboard';
|
||||
30
assets/modules/backend/app_backend_other.js
Normal file
30
assets/modules/backend/app_backend_other.js
Normal file
@@ -0,0 +1,30 @@
|
||||
import 'datatables.net-bs5';
|
||||
|
||||
//$(document).ready(function() { });
|
||||
|
||||
/**************************************Sociétés************************************* */
|
||||
|
||||
|
||||
$('#dataTablesSociete').DataTable({
|
||||
language: {
|
||||
url: '../../assets/json/fr-FR.json',
|
||||
},
|
||||
});
|
||||
|
||||
/**************************************Catégorie************************************* */
|
||||
|
||||
//page catégorie
|
||||
$('#dataTableCategorie').DataTable({
|
||||
language: {
|
||||
url: '../../assets/json/fr-FR.json',
|
||||
},
|
||||
});
|
||||
|
||||
//page groupes
|
||||
$('#dataTableGroupes').DataTable({
|
||||
language: {
|
||||
url: '../../assets/json/fr-FR.json',
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
9
assets/modules/frontend/app_frontend.js
Executable file
9
assets/modules/frontend/app_frontend.js
Executable file
@@ -0,0 +1,9 @@
|
||||
|
||||
import '../../../assets/styles/app_frontend.scss';
|
||||
|
||||
import '../../../vendor/twbs/bootstrap/dist/js/bootstrap.js';
|
||||
|
||||
import '../../javascript/frontend/scripts.js';
|
||||
import '../../javascript/frontend/register.js';
|
||||
import '../../javascript/frontend/parrainage';
|
||||
import '../../javascript/frontend/newslettre';
|
||||
77
assets/modules/frontend/app_frontend_article_service.js
Executable file
77
assets/modules/frontend/app_frontend_article_service.js
Executable file
@@ -0,0 +1,77 @@
|
||||
import 'jquery';
|
||||
|
||||
import 'datatables.net-bs5';
|
||||
|
||||
|
||||
/**************************************Service************************************* */
|
||||
|
||||
//window.getRendezVous = getRendezVous;
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
var table = $('#dataTablesRdv').DataTable({
|
||||
language: {
|
||||
url: '../../../../assets/json/fr-FR.json',
|
||||
},
|
||||
bFilter: false,
|
||||
bInfo: false,
|
||||
pageLength: 5,
|
||||
dom: 'rtip',
|
||||
autoWidth: false, // might need this
|
||||
});
|
||||
|
||||
$("#btn-show-rdv").click(function() {
|
||||
|
||||
$.post( pathGetListRDV, {}, function( data ) {
|
||||
|
||||
$.each( data, function( key, value ) {
|
||||
var td1 = '<b>'+key+'</b>';
|
||||
|
||||
var td2 = '<div class="row">';
|
||||
$.each( value, function( key, value ) {
|
||||
td2 += '<div class="col-md-3" style="margin-bottom:7px;">';
|
||||
td2 += '<a class="btn btn-yellow" href="'+pathSelectRDV+'?id='+value.idRdv+'">'+value.debut+' - '+value.fin+'</a>';
|
||||
td2 += '</div>';
|
||||
});
|
||||
td2 += '</div>';
|
||||
|
||||
table.row.add([td1, td2]).draw(false);
|
||||
|
||||
});
|
||||
|
||||
}).fail(function(response) {
|
||||
console.error('Error: ' + response.responseText);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
/**************************************Article************************************* */
|
||||
|
||||
|
||||
$('#addPanier').click(function(){
|
||||
|
||||
var qtyVal = $('#qty-val').val();
|
||||
|
||||
window.open(pathAddArticlePanier+'?qty='+qtyVal, "_self");
|
||||
});
|
||||
|
||||
$('#qty-asc').click(function(){
|
||||
var qtyVal = $('#qty-val').val();
|
||||
if(qtyVal>1){
|
||||
qtyVal--;
|
||||
$('#qty-val').val(qtyVal);
|
||||
}
|
||||
});
|
||||
|
||||
$('#qty-desc').click(function(){
|
||||
var qtyVal = $('#qty-val').val();
|
||||
qtyVal++;
|
||||
$('#qty-val').val(qtyVal);
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user