sistemazione di alcuni file js per data Tables
This commit is contained in:
parent
c78fa832a2
commit
9952c06c71
@ -8,24 +8,14 @@ use Illuminate\Notifications\Notifiable;
|
|||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Support\Facades\Hash;
|
use Illuminate\Support\Facades\Hash;
|
||||||
use Laravel\Sanctum\HasApiTokens;
|
use Laravel\Sanctum\HasApiTokens;
|
||||||
<<<<<<< HEAD
|
|
||||||
use Spatie\Permission\Traits\HasRoles;
|
use Spatie\Permission\Traits\HasRoles;
|
||||||
use Illuminate\Foundation\Auth\Access\Authorizable;
|
use Illuminate\Foundation\Auth\Access\Authorizable;
|
||||||
|
|
||||||
=======
|
|
||||||
//use LdapRecord\Laravel\Auth\Authenticatable;
|
|
||||||
|
|
||||||
use Junges\ACL\Concerns\HasGroups;
|
|
||||||
>>>>>>> 3ebca7bb4a04430aecf781bee6ba7b1a1ec56a41
|
|
||||||
|
|
||||||
|
|
||||||
class User extends Authenticatable
|
class User extends Authenticatable
|
||||||
{
|
{
|
||||||
<<<<<<< HEAD
|
|
||||||
use HasApiTokens, HasFactory, Notifiable, HasRoles,Authorizable;
|
use HasApiTokens, HasFactory, Notifiable, HasRoles,Authorizable;
|
||||||
=======
|
|
||||||
use HasApiTokens, HasFactory, Notifiable, HasGroups, SoftDeletes;
|
|
||||||
>>>>>>> 3ebca7bb4a04430aecf781bee6ba7b1a1ec56a41
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The attributes that are mass assignable.
|
* The attributes that are mass assignable.
|
||||||
@ -85,7 +75,6 @@ class User extends Authenticatable
|
|||||||
{
|
{
|
||||||
return DB::table('users')->orderBy('name')->get();
|
return DB::table('users')->orderBy('name')->get();
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
// Aggiunge un utente e assegna un ruolo
|
// Aggiunge un utente e assegna un ruolo
|
||||||
public static function addUser($params)
|
public static function addUser($params)
|
||||||
@ -99,10 +88,6 @@ class User extends Authenticatable
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
=======
|
|
||||||
|
|
||||||
|
|
||||||
>>>>>>> 3ebca7bb4a04430aecf781bee6ba7b1a1ec56a41
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
15
public/js/app/altrocontatto.js
vendored
15
public/js/app/altrocontatto.js
vendored
@ -1,10 +1,21 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#automobili').DataTable({
|
$('#automobili').DataTable({
|
||||||
responsive: true
|
responsive: true
|
||||||
|
fields: [
|
||||||
|
{
|
||||||
|
label:"Data",
|
||||||
|
type: "datetime"
|
||||||
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
});
|
|
||||||
$(document).ready(function() {
|
|
||||||
$('#contatti').DataTable({
|
$('#contatti').DataTable({
|
||||||
responsive: true
|
responsive: true
|
||||||
|
fields: [
|
||||||
|
{
|
||||||
|
label:"Data",
|
||||||
|
type: "datetime"
|
||||||
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
});
|
});
|
6
public/js/app/auto.js
vendored
6
public/js/app/auto.js
vendored
@ -1,6 +1,12 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#automobili').DataTable({
|
$('#automobili').DataTable({
|
||||||
responsive: true
|
responsive: true
|
||||||
|
fields: [
|
||||||
|
{
|
||||||
|
label:"Data",
|
||||||
|
type: "datetime"
|
||||||
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
61
public/js/app/conti_categorie.js
vendored
61
public/js/app/conti_categorie.js
vendored
@ -1,33 +1,42 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#listrapportoS').DataTable({
|
$('#listrapportoS').DataTable({
|
||||||
responsive: true
|
responsive: true,
|
||||||
|
fields: [
|
||||||
|
{
|
||||||
|
label:"Data",
|
||||||
|
type: "datetime"
|
||||||
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
});
|
|
||||||
$(document).ready(function() {
|
|
||||||
$('#listrapportoE').DataTable({
|
$('#listrapportoE').DataTable({
|
||||||
responsive: true
|
responsive: true,
|
||||||
|
fields: [
|
||||||
|
{
|
||||||
|
label:"Data",
|
||||||
|
type: "datetime"
|
||||||
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#categorie').DataTable({
|
||||||
|
responsive: true
|
||||||
|
});
|
||||||
|
});
|
||||||
|
$(document).on('click','.open_modal',function(){
|
||||||
|
var url = "/admin/categorie/modify";
|
||||||
|
var riga_id= $(this).val();
|
||||||
|
$.getJSON(url + '/' + riga_id, function (data) {
|
||||||
|
//success data
|
||||||
|
console.log(data[0]);
|
||||||
|
console.log(data[0].cat_name);
|
||||||
|
$('#H_cat_cat_name').val(data[0].cat_name);
|
||||||
|
$('#H_cat_id').val(data[0].id);
|
||||||
|
$('#myModal').modal('show');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
$(document).on('click','.open_modal_new',function(){
|
||||||
|
$('#myModal_new').modal('show');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).ready(function() {
|
|
||||||
$('#categorie').DataTable({
|
|
||||||
responsive: true
|
|
||||||
});
|
|
||||||
|
|
||||||
$(document).on('click','.open_modal',function(){
|
|
||||||
var url = "/admin/categorie/modify";
|
|
||||||
var riga_id= $(this).val();
|
|
||||||
$.getJSON(url + '/' + riga_id, function (data) {
|
|
||||||
//success data
|
|
||||||
console.log(data[0]);
|
|
||||||
console.log(data[0].cat_name);
|
|
||||||
$('#H_cat_cat_name').val(data[0].cat_name);
|
|
||||||
$('#H_cat_id').val(data[0].id);
|
|
||||||
$('#myModal').modal('show');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
$(document).on('click','.open_modal_new',function(){
|
|
||||||
$('#myModal_new').modal('show');
|
|
||||||
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
Loading…
Reference in New Issue
Block a user