mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'dev/proveedores' into 'main'
Arreglado el inscribir un nuevo usuario. Se creará otra rama para hacer lo de los proveedores See merge request jjimenez/safekat!33
This commit is contained in:
@ -50,9 +50,12 @@ class Integration extends BaseController
|
|||||||
if(!empty($user)){
|
if(!empty($user)){
|
||||||
foreach (keywordEmail()??[] as $item){
|
foreach (keywordEmail()??[] as $item){
|
||||||
$field = str_replace(['[','user_',']'],'',$item);
|
$field = str_replace(['[','user_',']'],'',$item);
|
||||||
$body = str_replace('['.$item.']',$user[$field],$body);
|
if(str_contains($body, $field)){
|
||||||
|
$body = str_replace('['.$item.']',$user->{$field},$body);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->sendMail($subject,unescape($body),$email)){
|
if($this->sendMail($subject,unescape($body),$email)){
|
||||||
return $json ? json_encode(["return" => true]) : true;
|
return $json ? json_encode(["return" => true]) : true;
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@ -365,7 +365,7 @@ class login extends BaseController
|
|||||||
$rules = [
|
$rules = [
|
||||||
'first_name' => 'required',
|
'first_name' => 'required',
|
||||||
'last_name' => 'required',
|
'last_name' => 'required',
|
||||||
'email' => 'required|valid_email|is_unique[user.email]',
|
'email' => 'required|valid_email|is_unique[auth_user.email]',
|
||||||
'password' => 'required|min_length[8]'
|
'password' => 'required|min_length[8]'
|
||||||
];
|
];
|
||||||
$rules_error = [
|
$rules_error = [
|
||||||
@ -385,9 +385,10 @@ class login extends BaseController
|
|||||||
'min_length' => lang("App.login_rules_password_m")
|
'min_length' => lang("App.login_rules_password_m")
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($this->validate($rules,$rules_error)){
|
if ($this->validate($rules,$rules_error)){
|
||||||
if($listPost = $this->request->getPost()) {
|
if($listPost = $this->request->getPost()) {
|
||||||
|
|
||||||
if($settings['captcha_register']??false){
|
if($settings['captcha_register']??false){
|
||||||
if($settings['captcha_gateway'] == 'recaptcha'){
|
if($settings['captcha_gateway'] == 'recaptcha'){
|
||||||
if(isset($listPost['g-recaptcha-response'])){
|
if(isset($listPost['g-recaptcha-response'])){
|
||||||
@ -426,8 +427,8 @@ class login extends BaseController
|
|||||||
}
|
}
|
||||||
$phpass = new PasswordHash(8, true);
|
$phpass = new PasswordHash(8, true);
|
||||||
$userToken = md5(uniqid(rand(), true));
|
$userToken = md5(uniqid(rand(), true));
|
||||||
$this->user_model->save([
|
$this->user_model->skipValidation(true)->save([
|
||||||
'group' => $settings['default_role'],
|
//'group' => $settings['default_role'],
|
||||||
'first_name' => $listPost['first_name'],
|
'first_name' => $listPost['first_name'],
|
||||||
'last_name' => $listPost['last_name'],
|
'last_name' => $listPost['last_name'],
|
||||||
'mobile' => '',
|
'mobile' => '',
|
||||||
@ -438,7 +439,12 @@ class login extends BaseController
|
|||||||
'last_ip' => '::1',
|
'last_ip' => '::1',
|
||||||
'language' => $settings['default_language'],
|
'language' => $settings['default_language'],
|
||||||
'token' => $userToken,
|
'token' => $userToken,
|
||||||
'status' => true
|
'status' => 1,
|
||||||
|
'address' => '',
|
||||||
|
'city' => '',
|
||||||
|
'state' => '',
|
||||||
|
'country' => '',
|
||||||
|
'zip_code' => '',
|
||||||
]);
|
]);
|
||||||
//Get Data Template
|
//Get Data Template
|
||||||
$templates = $this->template_model->findAll();
|
$templates = $this->template_model->findAll();
|
||||||
@ -450,6 +456,7 @@ class login extends BaseController
|
|||||||
try {
|
try {
|
||||||
$this->integration->send_email($listPost['email'],$template['subject'],$template['body'],$phpass->HashPassword(MD5($listPost['email'])));
|
$this->integration->send_email($listPost['email'],$template['subject'],$template['body'],$phpass->HashPassword(MD5($listPost['email'])));
|
||||||
}catch (\Exception $e){
|
}catch (\Exception $e){
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,8 +11,8 @@ class Maquina extends \CodeIgniter\Entity\Entity
|
|||||||
"is_padre" => false,
|
"is_padre" => false,
|
||||||
"tipo" => null,
|
"tipo" => null,
|
||||||
"velocidad" => 0.0,
|
"velocidad" => 0.0,
|
||||||
"ancho" => null,
|
"ancho" => 100.0,
|
||||||
"alto" => null,
|
"alto" => 100.0,
|
||||||
"ancho_impresion" => 0.0,
|
"ancho_impresion" => 0.0,
|
||||||
"alto_impresion" => 0.0,
|
"alto_impresion" => 0.0,
|
||||||
"alto_click" => 0.0,
|
"alto_click" => 0.0,
|
||||||
@ -27,10 +27,10 @@ class Maquina extends \CodeIgniter\Entity\Entity
|
|||||||
"precio_tinta_color" => 0.0,
|
"precio_tinta_color" => 0.0,
|
||||||
"velocidad_corte" => 0.0,
|
"velocidad_corte" => 0.0,
|
||||||
"precio_hora_corte" => 0.0,
|
"precio_hora_corte" => 0.0,
|
||||||
"metrosxminuto" => null,
|
"metrosxminuto" => 0.0,
|
||||||
"forzar_num_formas_horizontales_portada" => null,
|
"forzar_num_formas_horizontales_portada" => null,
|
||||||
"forzar_num_formas_verticales_portada" => null,
|
"forzar_num_formas_verticales_portada" => null,
|
||||||
"observaciones" => null,
|
"observaciones" => "",
|
||||||
"is_deleted" => 0,
|
"is_deleted" => 0,
|
||||||
"created_at" => null,
|
"created_at" => null,
|
||||||
"updated_at" => null,
|
"updated_at" => null,
|
||||||
|
|||||||
@ -7,15 +7,14 @@ class UserEntity extends \CodeIgniter\Entity\Entity
|
|||||||
{
|
{
|
||||||
protected $attributes = [
|
protected $attributes = [
|
||||||
"id_user" => null,
|
"id_user" => null,
|
||||||
"group" => null,
|
|
||||||
"first_name" => null,
|
"first_name" => null,
|
||||||
"last_name" => null,
|
"last_name" => null,
|
||||||
"date_birth" => null,
|
"date_birth" => null,
|
||||||
"address" => null,
|
"address" => "",
|
||||||
"city" => null,
|
"city" => "",
|
||||||
"state" => null,
|
"state" => "",
|
||||||
"country" => null,
|
"country" => "",
|
||||||
"zip_code" => null,
|
"zip_code" => "",
|
||||||
"mobile" => null,
|
"mobile" => null,
|
||||||
"email" => null,
|
"email" => null,
|
||||||
"password" => null,
|
"password" => null,
|
||||||
@ -24,8 +23,8 @@ class UserEntity extends \CodeIgniter\Entity\Entity
|
|||||||
"picture" => "/assets/img/default-user.png",
|
"picture" => "/assets/img/default-user.png",
|
||||||
"language" => null,
|
"language" => null,
|
||||||
"tfa" => false,
|
"tfa" => false,
|
||||||
"tfa_secret" => null,
|
"tfa_secret" => "",
|
||||||
"tfa_code" => null,
|
"tfa_code" => "",
|
||||||
"blocked" => null,
|
"blocked" => null,
|
||||||
"email_confirmed" => 0,
|
"email_confirmed" => 0,
|
||||||
"token" => null,
|
"token" => null,
|
||||||
|
|||||||
@ -199,7 +199,7 @@ class MaquinaModel extends \App\Models\GoBaseModel
|
|||||||
],
|
],
|
||||||
"observaciones" => [
|
"observaciones" => [
|
||||||
"max_length" => "Maquinas.validation.observaciones.max_length",
|
"max_length" => "Maquinas.validation.observaciones.max_length",
|
||||||
"required" => "Maquinas.validation.observaciones.required",
|
//"required" => "Maquinas.validation.observaciones.required",
|
||||||
],
|
],
|
||||||
"orden_planning" => [
|
"orden_planning" => [
|
||||||
"integer" => "Maquinas.validation.orden_planning.integer",
|
"integer" => "Maquinas.validation.orden_planning.integer",
|
||||||
|
|||||||
@ -1,223 +1,299 @@
|
|||||||
<h6>Datos de la Máquina</h6>
|
<div class="row">
|
||||||
<div class="row g-3">
|
<div class="col-md-12 col-lg-12 px-4">
|
||||||
<div class="col-md-3">
|
|
||||||
<label for="nombre" class="form-label">
|
<div class="row">
|
||||||
<?= lang('Maquinas.nombre') ?>*
|
|
||||||
</label>
|
|
||||||
<input type="text" id="nombre" name="nombre" required maxLength="255" class="form-control"
|
|
||||||
value="<?= old('nombre', $maquina->nombre) ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="min" class="form-label">
|
|
||||||
<?= lang('Maquinas.min') ?>*
|
|
||||||
</label>
|
|
||||||
<input type="number" id="min" name="min" required placeholder="1" maxLength="11"
|
|
||||||
class="form-control" value="<?= old('min', $maquina->min) ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="max" class="form-label">
|
|
||||||
<?= lang('Maquinas.max') ?>*
|
|
||||||
</label>
|
|
||||||
<input type="number" id="max" name="max" required placeholder="1000000" maxLength="11"
|
|
||||||
class="form-control" value="<?= old('max', $maquina->max) ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="velocidad" class="form-label">
|
|
||||||
<?= lang('Maquinas.velocidad') ?>*
|
|
||||||
</label>
|
|
||||||
<input type="number" id="velocidad" name="velocidad" required placeholder="0.00" maxLength="8"
|
|
||||||
step="0.01" class="form-control" value="<?= old('velocidad', $maquina->velocidad) ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<label for="tipo" class="form-label">
|
|
||||||
<?= lang('Maquinas.tipo') ?>*
|
|
||||||
</label>
|
|
||||||
<select id="tipo" name="tipo" required class="form-control select2" style="width: 100%;">
|
|
||||||
<option value="" selected="selected"><?= lang('Basic.global.pleaseSelectOne') ?></option>
|
|
||||||
<option value="impresion"<?= $maquina->tipo == 'impresion' ? ' selected' : '' ?>><?= lang('Maquinas.impresion') ?></option>
|
|
||||||
<option value="manipulado"<?= $maquina->tipo == 'manipulado' ? ' selected' : '' ?>><?= lang('Maquinas.manipulado') ?></option>
|
|
||||||
<option value="acabado"<?= $maquina->tipo == 'acabado' ? ' selected' : '' ?>><?= lang('Maquinas.acabado') ?></option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!--Propiedades-->
|
<div class="col-md-4 col-lg-4 px-4">
|
||||||
<div class="col-md-2">
|
<div class="mb-3">
|
||||||
<label for="ancho" class="form-label">
|
<label for="nombre" class="form-label">
|
||||||
<?= lang('Maquinas.ancho') ?>*
|
<?=lang('Maquinas.nombre') ?>*
|
||||||
</label>
|
</label>
|
||||||
<input type="number" id="ancho" name="ancho" maxLength="8" step="0.01" class="form-control"
|
<input type="text" id="nombre" name="nombre" maxLength="255" class="form-control" value="<?=old('nombre', $maquina->nombre) ?>">
|
||||||
value="<?= old('ancho', $maquina->ancho) ?>">
|
</div><!--//.col -->
|
||||||
</div>
|
</div><!--//.mb-3 -->
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="alto" class="form-label">
|
<div class="col-lg-2 px-4">
|
||||||
<?= lang('Maquinas.alto') ?>*
|
<div class="mb-3">
|
||||||
</label>
|
<label for="min" class="form-label">
|
||||||
<input type="number" id="alto" name="alto" maxLength="8" step="0.01" class="form-control"
|
<?=lang('Maquinas.min') ?>*
|
||||||
value="<?= old('alto', $maquina->alto) ?>">
|
</label>
|
||||||
</div>
|
<input type="number" id="min" name="min" placeholder="1" maxLength="11" class="form-control" value="<?=old('min', $maquina->min) ?>">
|
||||||
<div class="col-md-3">
|
</div>
|
||||||
<label for="anchoImpresion" class="form-label">
|
</div><!--//.col -->
|
||||||
<?= lang('Maquinas.anchoImpresion') ?>*
|
|
||||||
</label>
|
|
||||||
<input type="number" id="anchoImpresion" name="ancho_impresion" required placeholder="0.00"
|
|
||||||
maxLength="8" step="0.01" class="form-control"
|
|
||||||
value="<?= old('ancho_impresion', $maquina->ancho_impresion) ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<label for="altoImpresion" class="form-label">
|
|
||||||
<?= lang('Maquinas.altoImpresion') ?>*
|
|
||||||
</label>
|
|
||||||
<input type="number" id="altoImpresion" name="alto_impresion" required placeholder="0.00"
|
|
||||||
maxLength="8" step="0.01" class="form-control"
|
|
||||||
value="<?= old('alto_impresion', $maquina->alto_impresion) ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="altoClick" class="form-label">
|
|
||||||
<?= lang('Maquinas.altoClick') ?>*
|
|
||||||
</label>
|
|
||||||
<input type="number" id="altoClick" name="alto_click" required placeholder="0.00" maxLength="8"
|
|
||||||
step="0.01" class="form-control" value="<?= old('alto_click', $maquina->alto_click) ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!--Produccion-->
|
<div class="col-lg-2 px-4">
|
||||||
<div class="col-md-3">
|
<div class="mb-3">
|
||||||
<label for="duracionJornada" class="form-label">
|
<label for="max" class="form-label">
|
||||||
<?= lang('Maquinas.duracionJornada') ?>*
|
<?=lang('Maquinas.max') ?>*
|
||||||
</label>
|
</label>
|
||||||
<input type="number" id="duracionJornada" name="duracion_jornada" required placeholder="8"
|
<input type="number" id="max" name="max" placeholder="1000000" maxLength="11" class="form-control" value="<?=old('max', $maquina->max) ?>">
|
||||||
maxLength="11" class="form-control"
|
</div>
|
||||||
value="<?= old('duracion_jornada', $maquina->duracion_jornada) ?>">
|
</div><!--//.col -->
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<label for="ordenPlanning" class="form-label">
|
|
||||||
<?= lang('Maquinas.ordenPlanning') ?>*
|
|
||||||
</label>
|
|
||||||
<input type="number" id="ordenPlanning" name="orden_planning" required placeholder="1"
|
|
||||||
maxLength="11" class="form-control"
|
|
||||||
value="<?= old('orden_planning', $maquina->orden_planning) ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<label for="forzarNumFormasHorizontalesPortada" class="form-label">
|
|
||||||
<?= lang('Maquinas.forzarNumFormasHorizontalesPortada') ?>
|
|
||||||
</label>
|
|
||||||
<input type="number" id="forzarNumFormasHorizontalesPortada"
|
|
||||||
name="forzar_num_formas_horizontales_portada" maxLength="11" class="form-control"
|
|
||||||
value="<?= old('forzar_num_formas_horizontales_portada', $maquina->forzar_num_formas_horizontales_portada) ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<label for="forzarNumFormasVerticalesPortada" class="form-label">
|
|
||||||
<?= lang('Maquinas.forzarNumFormasVerticalesPortada') ?>
|
|
||||||
</label>
|
|
||||||
<input type="number" id="forzarNumFormasVerticalesPortada"
|
|
||||||
name="forzar_num_formas_verticales_portada" maxLength="11" class="form-control"
|
|
||||||
value="<?= old('forzar_num_formas_verticales_portada', $maquina->forzar_num_formas_verticales_portada) ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-md-12">
|
|
||||||
<label for="observaciones" class="form-label">
|
|
||||||
<?= lang('Maquinas.observaciones') ?>
|
|
||||||
</label>
|
|
||||||
<textarea rows="3" id="observaciones" name="observaciones"
|
|
||||||
class="form-control">
|
|
||||||
<?= old('observaciones', $maquina->observaciones) ?>
|
|
||||||
</textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-3 mt-4 mb-4">
|
<div class="col-lg-2 px-4">
|
||||||
<div class="form-check form-check-inline">
|
<div class="mb-3">
|
||||||
<input type="checkbox"
|
<label for="velocidad" class="form-label">
|
||||||
id="isPadre"
|
<?=lang('Maquinas.velocidad') ?>*
|
||||||
name="is_padre"
|
</label>
|
||||||
value="1"
|
<input type="number" id="velocidad" name="velocidad" placeholder="0.00" maxLength="8" step="0.01" class="form-control" value="<?=old('velocidad', $maquina->velocidad) ?>">
|
||||||
class="form-check-input"<?= $maquina->is_padre == true ? 'checked' : ''; ?>
|
</div>
|
||||||
>
|
</div><!--//.col -->
|
||||||
<label for="isPadre" class="form-check-label">
|
|
||||||
<?= lang('Maquinas.isPadre') ?>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="selectVariante" class="col-md-3" style="display:none">
|
|
||||||
<select id="padreId" name="padre_id" class="form-control select2" style="width: 100%;">
|
|
||||||
<?php if (isset($maquinaList) && is_array($maquinaList) && !empty($maquinaList)) :
|
|
||||||
foreach ($maquinaList as $k => $v) : ?>
|
|
||||||
<option value="<?= $k ?>"<?= $k == $maquina->padre_id ? ' selected' : '' ?>>
|
|
||||||
<?= $v ?>
|
|
||||||
</option>
|
|
||||||
<?php endforeach;
|
|
||||||
endif; ?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3 mt-4 mb-4">
|
|
||||||
<div class="form-check form-check-inline">
|
|
||||||
<input type="checkbox"
|
|
||||||
id="isRotativa"
|
|
||||||
name="is_rotativa"
|
|
||||||
value="1"
|
|
||||||
class="form-check-input"<?= $maquina->is_rotativa == true ? 'checked' : ''; ?>
|
|
||||||
>
|
|
||||||
<label for="isPadre" class="form-check-label">
|
|
||||||
<?= lang('Maquinas.isRotativa') ?>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-3 mt-4 mb-4">
|
<div class="col-lg-2 px-4">
|
||||||
<div class="form-check form-check-inline">
|
<div class="mb-3">
|
||||||
<input type="checkbox"
|
<label for="tipo" class="form-label">
|
||||||
id="isTinta"
|
<?=lang('Maquinas.tipo') ?>*
|
||||||
name="is_tinta"
|
</label>
|
||||||
value="1"
|
<select id="tipo" name="tipo" class="form-control select2bs" style="width: 100%;" >
|
||||||
class="form-check-input"<?= $maquina->is_tinta == true ? 'checked' : ''; ?>
|
<option value="" selected="selected"><?=lang('Basic.global.pleaseSelectOne') ?></option>
|
||||||
>
|
<option value="impresion"<?=$maquina->tipo == 'impresion' ? ' selected':'' ?>><?= lang('Maquinas.impresion') ?></option>
|
||||||
<label for="isPadre" class="form-check-label">
|
<option value="manipulado"<?=$maquina->tipo == 'manipulado' ? ' selected':'' ?>><?= lang('Maquinas.manipulado') ?></option>
|
||||||
<?= lang('Maquinas.isTinta') ?>
|
<option value="acabado"<?=$maquina->tipo == 'acabado' ? ' selected':'' ?>><?= lang('Maquinas.acabado') ?></option>
|
||||||
</label>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div><!--//.col -->
|
||||||
|
|
||||||
<?php if ($maquina->is_rotativa == false): ?>
|
</div><!--//.row -->
|
||||||
<div class="row" id="datosRotativa" style="display:none">
|
|
||||||
<?php else: ?>
|
|
||||||
<div class="row" id="datosRotativa">
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="precioTintaNegro" class="form-label">
|
<div class="row">
|
||||||
<?= lang('Maquinas.precioTintaNegro') ?>
|
|
||||||
</label>
|
<div class="col-lg-2 px-4">
|
||||||
<input type="number" id="precioTintaNegro" name="precio_tinta_negro" placeholder="0.00"
|
<div class="mb-3">
|
||||||
maxLength="8" step="0.01" class="form-control"
|
<label for="ancho" class="form-label">
|
||||||
value="<?= old('precio_tinta_negro', $maquina->precio_tinta_negro) ?>">
|
<?=lang('Maquinas.ancho') ?>*
|
||||||
</div>
|
</label>
|
||||||
<div class="col-md-2">
|
<input type="number" id="ancho" name="ancho" placeholder="100.0" maxLength="8" step="0.01" class="form-control" value="<?=old('ancho', $maquina->ancho) ?>">
|
||||||
<label for="precioTintaColor" class="form-label">
|
</div>
|
||||||
<?= lang('Maquinas.precioTintaColor') ?>
|
</div><!--//.col -->
|
||||||
</label>
|
|
||||||
<input type="number" id="precioTintaColor" name="precio_tinta_color" placeholder="0.00"
|
<div class="col-lg-2 px-4">
|
||||||
maxLength="8" step="0.01" class="form-control"
|
<div class="mb-3">
|
||||||
value="<?= old('precio_tinta_color', $maquina->precio_tinta_color) ?>">
|
<label for="alto" class="form-label">
|
||||||
</div>
|
<?=lang('Maquinas.alto') ?>*
|
||||||
<div class="col-md-2">
|
</label>
|
||||||
<label for="velocidadCorte" class="form-label">
|
<input type="number" id="alto" name="alto" placeholder="100.0" maxLength="8" step="0.01" class="form-control" value="<?=old('alto', $maquina->alto) ?>">
|
||||||
<?= lang('Maquinas.velocidadCorte') ?>
|
</div>
|
||||||
</label>
|
</div><!--//.col -->
|
||||||
<input type="number" id="velocidadCorte" name="velocidad_corte" placeholder="0.00" maxLength="8"
|
|
||||||
step="0.01" class="form-control"
|
<div class="col-lg-2 px-4">
|
||||||
value="<?= old('velocidad_corte', $maquina->velocidad_corte) ?>">
|
<div class="mb-3">
|
||||||
</div>
|
<label for="anchoImpresion" class="form-label">
|
||||||
<div class="col-md-2">
|
<?=lang('Maquinas.anchoImpresion') ?>*
|
||||||
<label for="precioHoraCorte" class="form-label">
|
</label>
|
||||||
<?= lang('Maquinas.precioHoraCorte') ?>
|
<input type="number" id="anchoImpresion" name="ancho_impresion" placeholder="0.00" maxLength="8" step="0.01" class="form-control" value="<?=old('ancho_impresion', $maquina->ancho_impresion) ?>">
|
||||||
</label>
|
</div>
|
||||||
<input type="number" id="precioHoraCorte" name="precio_hora_corte" placeholder="0.00"
|
</div><!--//.col -->
|
||||||
maxLength="8" step="0.01" class="form-control"
|
|
||||||
value="<?= old('precio_hora_corte', $maquina->precio_hora_corte) ?>">
|
<div class="col-lg-2 px-4">
|
||||||
</div>
|
<div class="mb-3">
|
||||||
<div class="col-md-2">
|
<label for="altoImpresion" class="form-label">
|
||||||
<label for="metrosxminuto" class="form-label">
|
<?=lang('Maquinas.altoImpresion') ?>*
|
||||||
<?= lang('Maquinas.metrosxminuto') ?>
|
</label>
|
||||||
</label>
|
<input type="number" id="altoImpresion" name="alto_impresion" placeholder="0.00" maxLength="8" step="0.01" class="form-control" value="<?=old('alto_impresion', $maquina->alto_impresion) ?>">
|
||||||
<input type="number" id="metrosxminuto" name="metrosxminuto" placeholder="48" maxLength="31"
|
</div>
|
||||||
step="0.01" class="form-control"
|
</div><!--//.col -->
|
||||||
value="<?= old('metrosxminuto', $maquina->metrosxminuto) ?>">
|
|
||||||
</div>
|
<div class="col-lg-2 px-4">
|
||||||
</div>
|
<div class="mb-3">
|
||||||
|
<label for="altoClick" class="form-label">
|
||||||
|
<?=lang('Maquinas.altoClick') ?>*
|
||||||
|
</label>
|
||||||
|
<input type="number" id="altoClick" name="alto_click" placeholder="0.00" maxLength="8" step="0.01" class="form-control" value="<?=old('alto_click', $maquina->alto_click) ?>">
|
||||||
|
</div>
|
||||||
|
</div><!--//.col -->
|
||||||
|
|
||||||
|
</div><!--//.row -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-lg-2 px-4">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="duracionJornada" class="form-label" >
|
||||||
|
<?=lang('Maquinas.duracionJornada') ?>*
|
||||||
|
</label>
|
||||||
|
<input type="number" id="duracionJornada" name="duracion_jornada" placeholder="8" maxLength="11" class="form-control" value="<?=old('duracion_jornada', $maquina->duracion_jornada) ?>">
|
||||||
|
</div>
|
||||||
|
</div><!--//.col -->
|
||||||
|
|
||||||
|
<div class="col-lg-2 px-4">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="ordenPlanning" class="form-label">
|
||||||
|
<?=lang('Maquinas.ordenPlanning') ?>*
|
||||||
|
</label>
|
||||||
|
<input type="number" id="ordenPlanning" name="orden_planning" placeholder="1" maxLength="11" class="form-control" value="<?=old('orden_planning', $maquina->orden_planning) ?>">
|
||||||
|
</div>
|
||||||
|
</div><!--//.col -->
|
||||||
|
|
||||||
|
<div class="col-lg-2 px-4">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="forzarNumFormasHorizontalesPortada" class="form-label">
|
||||||
|
<?=lang('Maquinas.forzarNumFormasHorizontalesPortada') ?>
|
||||||
|
</label>
|
||||||
|
<input type="number" id="forzarNumFormasHorizontalesPortada" name="forzar_num_formas_horizontales_portada" maxLength="11" class="form-control" value="<?=old('forzar_num_formas_horizontales_portada', $maquina->forzar_num_formas_horizontales_portada) ?>">
|
||||||
|
</div>
|
||||||
|
</div><!--//.col -->
|
||||||
|
|
||||||
|
<div class="col-lg-2 px-4">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="forzarNumFormasVerticalesPortada" class="form-label">
|
||||||
|
<?=lang('Maquinas.forzarNumFormasVerticalesPortada') ?>
|
||||||
|
</label>
|
||||||
|
<input type="number" id="forzarNumFormasVerticalesPortada" name="forzar_num_formas_verticales_portada" maxLength="11" class="form-control" value="<?=old('forzar_num_formas_verticales_portada', $maquina->forzar_num_formas_verticales_portada) ?>">
|
||||||
|
</div>
|
||||||
|
</div><!--//.col -->
|
||||||
|
|
||||||
|
<div class="col-lg-1 px-6">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="isTinta" class="form-label">
|
||||||
|
<?=lang('Maquinas.isRotativa') ?>
|
||||||
|
</label>
|
||||||
|
<div class="form-check">
|
||||||
|
<label for="isRotativa" class="form-check-label">
|
||||||
|
<input type="checkbox" id="isRotativa" name="is_rotativa" value="1" class="form-check-input"<?=$maquina->is_rotativa== true ? 'checked' : ''; ?>>
|
||||||
|
</label>
|
||||||
|
</div><!--//.form-check -->
|
||||||
|
</div>
|
||||||
|
</div><!--//.col -->
|
||||||
|
|
||||||
|
<div class="col-lg-1 px-6">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="isTinta" class="form-label">
|
||||||
|
<?=lang('Maquinas.isTinta') ?>
|
||||||
|
</label>
|
||||||
|
<div class="form-check">
|
||||||
|
<label for="isTinta" class="form-check-label">
|
||||||
|
<input type="checkbox" id="isTinta" name="is_tinta" value="1" class="form-check-input"<?=$maquina->is_tinta== true ? 'checked' : ''; ?>>
|
||||||
|
</label>
|
||||||
|
</div><!--//.form-check -->
|
||||||
|
</div>
|
||||||
|
</div><!--//.col -->
|
||||||
|
|
||||||
|
<div class="col-lg-2 px-6">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="isPadre" class="form-label">
|
||||||
|
<?=lang('Maquinas.isPadre') ?>
|
||||||
|
</label>
|
||||||
|
<div class="form-check">
|
||||||
|
<label for="isPadre" class="form-check-label">
|
||||||
|
<input type="checkbox" id="isPadre" name="is_padre" value="1" class="form-check-input"<?=$maquina->is_padre== true ? 'checked' : ''; ?>>
|
||||||
|
</label>
|
||||||
|
</div><!--//.form-check -->
|
||||||
|
</div>
|
||||||
|
</div><!--//.col -->
|
||||||
|
|
||||||
|
|
||||||
|
</div><!--//.row -->
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-lg-2 px-4">
|
||||||
|
|
||||||
|
</div><!--//.col -->
|
||||||
|
|
||||||
|
<div class="col-lg-2 px-4">
|
||||||
|
|
||||||
|
</div><!--//.col -->
|
||||||
|
|
||||||
|
<div class="col-lg-2 px-4">
|
||||||
|
|
||||||
|
</div><!--//.col -->
|
||||||
|
|
||||||
|
<div class="col-lg-2 px-4">
|
||||||
|
|
||||||
|
</div><!--//.col -->
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-lg-2 px-4">
|
||||||
|
|
||||||
|
</div><!--//.col -->
|
||||||
|
|
||||||
|
<div class="col-lg-2 px-4">
|
||||||
|
<div id="selectVariante" class="mb-3" style="display:none">
|
||||||
|
<label for="padreId" class="form-label">
|
||||||
|
<?=lang('Maquinas.padreId') ?>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<select id="padreId" name="padre_id" class="form-control select2bs2" style="width: 100%;" >
|
||||||
|
<?php if ( isset($maquinaList) && is_array($maquinaList) && !empty($maquinaList) ) :
|
||||||
|
foreach ($maquinaList as $k => $v) : ?>
|
||||||
|
<option value="<?=$k ?>"<?=$k==$maquina->padre_id ? ' selected':'' ?>>
|
||||||
|
<?=$v ?>
|
||||||
|
</option>
|
||||||
|
<?php endforeach;
|
||||||
|
endif; ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div><!--//.col -->
|
||||||
|
|
||||||
|
</div><!--//.row -->
|
||||||
|
|
||||||
|
<?php if($maquina->is_rotativa== false): ?>
|
||||||
|
<div class="row" id="datosRotativa" style="display:none">
|
||||||
|
<?php else: ?>
|
||||||
|
<div class="row" id="datosRotativa">
|
||||||
|
<?php endif; ?>
|
||||||
|
<div class="col-lg-2 px-4">
|
||||||
|
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="precioTintaNegro" class="form-label">
|
||||||
|
<?=lang('Maquinas.precioTintaNegro') ?>
|
||||||
|
</label>
|
||||||
|
<input type="number" id="precioTintaNegro" name="precio_tinta_negro" placeholder="0.00" maxLength="8" step="0.01" class="form-control" value="<?=old('precio_tinta_negro', $maquina->precio_tinta_negro) ?>">
|
||||||
|
</div><!--//.mb-3 -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-lg-2 px-4">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="precioTintaColor" class="form-label">
|
||||||
|
<?=lang('Maquinas.precioTintaColor') ?>
|
||||||
|
</label>
|
||||||
|
<input type="number" id="precioTintaColor" name="precio_tinta_color" placeholder="0.00" maxLength="8" step="0.01" class="form-control" value="<?=old('precio_tinta_color', $maquina->precio_tinta_color) ?>">
|
||||||
|
</div><!--//.mb-3 -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-lg-2 px-4">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="velocidadCorte" class="form-label">
|
||||||
|
<?=lang('Maquinas.velocidadCorte') ?>
|
||||||
|
</label>
|
||||||
|
<input type="number" id="velocidadCorte" name="velocidad_corte" placeholder="0.00" maxLength="8" step="0.01" class="form-control" value="<?=old('velocidad_corte', $maquina->velocidad_corte) ?>">
|
||||||
|
</div><!--//.mb-3 -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-lg-2 px-4">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="precioHoraCorte" class="form-label">
|
||||||
|
<?=lang('Maquinas.precioHoraCorte') ?>
|
||||||
|
</label>
|
||||||
|
<input type="number" id="precioHoraCorte" name="precio_hora_corte" placeholder="0.00" maxLength="8" step="0.01" class="form-control" value="<?=old('precio_hora_corte', $maquina->precio_hora_corte) ?>">
|
||||||
|
</div><!--//.mb-3 -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-lg-2 px-4">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="metrosxminuto" class="form-label">
|
||||||
|
<?=lang('Maquinas.metrosxminuto') ?>
|
||||||
|
</label>
|
||||||
|
<input type="number" id="metrosxminuto" name="metrosxminuto" placeholder="48" maxLength="31" step="0.01" class="form-control" value="<?=old('metrosxminuto', $maquina->metrosxminuto) ?>">
|
||||||
|
</div><!--//.mb-3 -->
|
||||||
|
</div><!--//.col -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 px-4">
|
||||||
|
<label for="observaciones" class="form-label">
|
||||||
|
<?=lang('Maquinas.observaciones') ?>
|
||||||
|
</label>
|
||||||
|
<textarea rows="2" id="observaciones" name="observaciones" style="height: 5em;" class="form-control"><?=old('observaciones', $maquina->observaciones) ?></textarea>
|
||||||
|
</div><!--//.col -->
|
||||||
|
</div><!--//.row -->
|
||||||
|
|
||||||
|
|
||||||
|
</div><!--//.col -->
|
||||||
|
|
||||||
|
</div><!-- //.row -->
|
||||||
@ -43,13 +43,24 @@
|
|||||||
<form id="sendForm" class="mb-3" action="<?=site_url("login/store")?>" method="POST">
|
<form id="sendForm" class="mb-3" action="<?=site_url("login/store")?>" method="POST">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="username" class="form-label">Username</label>
|
<label for="first_name" class="form-label"><?= lang("App.login_first_name") ?></label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
id="username"
|
id="first_name"
|
||||||
name="username"
|
name="first_name"
|
||||||
placeholder="Enter your username"
|
placeholder=<?= lang("App.login_first_name_ph") ?>
|
||||||
|
autofocus
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="last_name" class="form-label"><?= lang("App.login_last_name") ?></label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
class="form-control"
|
||||||
|
id="last_name"
|
||||||
|
name="last_name"
|
||||||
|
placeholder=<?= lang("App.login_last_name_ph") ?>
|
||||||
autofocus
|
autofocus
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user