mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
arraglando la tabla tarifas con la forma nueva
This commit is contained in:
@ -462,4 +462,5 @@ class App extends BaseConfig
|
||||
* @var bool
|
||||
*/
|
||||
public $CSPEnabled = false;
|
||||
|
||||
}
|
||||
|
||||
91
ci4/app/Config/Basics.php
Normal file
91
ci4/app/Config/Basics.php
Normal file
@ -0,0 +1,91 @@
|
||||
<?php
|
||||
|
||||
// Open-Source License Information:
|
||||
/*
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2019-2021 Agung Sugiarto (https://agungsugiarto.github.io)
|
||||
|
||||
Copyright (c) 2020-2021 Gökhan Ozar (https://www.ozar.net/)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
|
||||
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
namespace Config;
|
||||
|
||||
use CodeIgniter\Config\BaseConfig;
|
||||
|
||||
class Basics extends BaseConfig {
|
||||
|
||||
public $appName = 'Safekat';
|
||||
|
||||
public $i18n = 'Spanish';
|
||||
|
||||
public $languages = [
|
||||
'en' => 'English',
|
||||
'es' => 'Spanish',
|
||||
];
|
||||
|
||||
|
||||
public $languageFlags = [
|
||||
'en' => 'us',
|
||||
'es' => 'es',
|
||||
];
|
||||
|
||||
|
||||
public $authImplemented = false;
|
||||
|
||||
|
||||
|
||||
|
||||
public $theme = [
|
||||
'name' => 'vuexy',
|
||||
'body-sm' => false,
|
||||
'navbar' => [
|
||||
'bg' => 'gray',
|
||||
'type' => 'dark',
|
||||
'border' => true,
|
||||
'user' => [
|
||||
'visible' => true,
|
||||
'shadow' => 0,
|
||||
],
|
||||
],
|
||||
'sidebar' => [
|
||||
'type' => 'dark',
|
||||
'shadow' => 4,
|
||||
'border' => false,
|
||||
'compact' => true,
|
||||
'links' => [
|
||||
'bg' => 'black', // only works with AdminLTE theme
|
||||
'shadow' => 1,
|
||||
],
|
||||
'brand' => [
|
||||
'bg' => 'gray-dark',
|
||||
'logo' => [
|
||||
'icon' => 'favicon.ico', // path to image | this example icon on public root folder.
|
||||
'text' => 'sk_test',
|
||||
'shadow' => 2,
|
||||
],
|
||||
],
|
||||
'user' => [
|
||||
'visible' => true,
|
||||
'shadow' => 2,
|
||||
],
|
||||
],
|
||||
'footer' => [
|
||||
'fixed' => false,
|
||||
'organization' => 'Your Awesome Company',
|
||||
'orglink' => 'https://www.ozar.net/',
|
||||
],
|
||||
];
|
||||
|
||||
}
|
||||
@ -45,19 +45,19 @@ $routes->group('', [], function($routes) {
|
||||
$routes->post('allmenuitems', 'Paises::allItemsSelect', ['as' => 'select2ItemsOfPaises']);
|
||||
$routes->post('menuitems', 'Paises::menuItems', ['as' => 'menuItemsOfPaises']);
|
||||
});
|
||||
|
||||
|
||||
$routes->group('tarifaacabado', ['namespace' => 'App\Controllers\Tarifas'], function ($routes) {
|
||||
$routes->get('', 'Tarifaacabado::index', ['as' => 'tarifaacabadoList']);
|
||||
$routes->get('index', 'Tarifaacabado::index', ['as' => 'tarifaacabadoIndex']);
|
||||
$routes->get('list', 'Tarifaacabado::index', ['as' => 'tarifaacabadoList2']);
|
||||
$routes->get('add', 'Tarifaacabado::add', ['as' => 'newTarifaacabado']);
|
||||
$routes->post('add', 'Tarifaacabado::add', ['as' => 'createTarifaacabado']);
|
||||
$routes->get('edit/(:num)', 'Tarifaacabado::edit/$1', ['as' => 'editTarifaacabado']);
|
||||
$routes->post('edit/(:num)', 'Tarifaacabado::edit/$1', ['as' => 'updateTarifaacabado']);
|
||||
$routes->get('delete/(:num)', 'Tarifaacabado::delete/$1', ['as' => 'deleteTarifaacabado']);
|
||||
$routes->post('create', 'Tarifaacabado::create', ['as' => 'ajaxCreateTarifaacabado']);
|
||||
$routes->put('(:num)/update', 'Tarifaacabado::update/$1', ['as' => 'ajaxUpdateTarifaacabado']);
|
||||
$routes->post('(:num)/edit', 'Tarifaacabado::edit/$1', ['as' => 'updateTarifaacabado']);
|
||||
$routes->post('datatable', 'Tarifaacabado::datatable', ['as' => 'dataTableOfTarifasacabado']);
|
||||
$routes->post('allmenuitems', 'Tarifaacabado::allItemsSelect', ['as' => 'select2ItemsOfTarifasacabado']);
|
||||
$routes->post('menuitems', 'Tarifaacabado::menuItems', ['as' => 'menuItemsOfTarifasacabado']);
|
||||
});
|
||||
$routes->resource('tarifaacabado', ['namespace' => 'App\Controllers\Tarifas', 'controller' => 'Tarifaacabado', 'except' => 'show,new,create,update']);
|
||||
|
||||
$routes->group('users', ['namespace' => 'App\Controllers\Usuarios'], function ($routes) {
|
||||
$routes->get('', 'Users::index', ['as' => 'userList']);
|
||||
@ -80,7 +80,7 @@ $routes->group('', [], function($routes) {
|
||||
$routes->get('delete/(:num)', 'Group::delete/$1', ['as' => 'deleteGroup']);
|
||||
$routes->get('add', 'Group::add', ['as' => 'newGroup']);
|
||||
});
|
||||
$routes->resource('group', ['namespace' => 'App\Controllers\Usuarios', 'controller' => 'UserGroups', 'except' => 'show,new,create,update']);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user