mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
fix : add chat presupuesto cliente
This commit is contained in:
@ -1,12 +1,12 @@
|
|||||||
<div class="accordion accordion-bordered mt-3" id="accordionChatFactura">
|
<div class="accordion accordion-bordered mt-3" id="accordionChatFactura">
|
||||||
<div class="card accordion-item active">
|
<div class="card accordion-item">
|
||||||
<h2 class="accordion-header" id="headingChatFactura">
|
<h2 class="accordion-header" id="headingChatFactura">
|
||||||
<button type="button" class="accordion-button" data-bs-toggle="collapse"
|
<button type="button" class="accordion-button" data-bs-toggle="collapse"
|
||||||
data-bs-target="#accordionChatFacturaTip" aria-expanded="false" aria-controls="accordionChatFacturaTip">
|
data-bs-target="#accordionChatFacturaTip" aria-expanded="false" aria-controls="accordionChatFacturaTip">
|
||||||
<h3><?= lang("Chat.chat") ?></h3>
|
<h3><?= lang("Chat.chat") ?></h3>
|
||||||
</button>
|
</button>
|
||||||
</h2>
|
</h2>
|
||||||
<div id="accordionChatFacturaTip" class="accordion-collapse collapse show"
|
<div id="accordionChatFacturaTip" class="accordion-collapse collapse"
|
||||||
data-bs-parent="#accordionChatFactura">
|
data-bs-parent="#accordionChatFactura">
|
||||||
<div class="accordion-body">
|
<div class="accordion-body">
|
||||||
<div class="container-xxl flex-grow-1 container-p-y" id="chat-factura" data-id="<?= $modelId ?>">
|
<div class="container-xxl flex-grow-1 container-p-y" id="chat-factura" data-id="<?= $modelId ?>">
|
||||||
|
|||||||
@ -250,13 +250,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</div><!--//.col -->
|
</div><!--//.col -->
|
||||||
|
<?= view("themes/vuexy/components/chat_presupuesto",data:["modelId" => $presupuestoEntity->id]) ?>
|
||||||
</div><!--//.row -->
|
</div><!--//.row -->
|
||||||
<?= view("themes/_commonPartialsBs/_modalConfirmDialog") ?>
|
<?= view("themes/_commonPartialsBs/_modalConfirmDialog") ?>
|
||||||
<?= view("themes/_commonPartialsBs/_modalMessageDialog") ?>
|
<?= view("themes/_commonPartialsBs/_modalMessageDialog") ?>
|
||||||
@ -313,6 +310,7 @@ window.token_ajax= {<?= csrf_token() ?? "token" ?>: <?= csrf_token() ?>v};
|
|||||||
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/bs-stepper/bs-stepper.css') ?>" />
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/bs-stepper/bs-stepper.css') ?>" />
|
||||||
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/formvalidation/dist/css/formValidation.min.css') ?>" />
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/formvalidation/dist/css/formValidation.min.css') ?>" />
|
||||||
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/dropzone/dropzone.css') ?>" />
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/dropzone/dropzone.css') ?>" />
|
||||||
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/css/pages/app-chat.css') ?>">
|
||||||
|
|
||||||
<?= $this->endSection() ?>
|
<?= $this->endSection() ?>
|
||||||
|
|
||||||
@ -332,6 +330,8 @@ window.token_ajax= {<?= csrf_token() ?? "token" ?>: <?= csrf_token() ?>v};
|
|||||||
<script src="<?= site_url('themes/vuexy/vendor/libs/two/two.js') ?>"></script>
|
<script src="<?= site_url('themes/vuexy/vendor/libs/two/two.js') ?>"></script>
|
||||||
<script src="<?= site_url('js_loader/translate_js/Presupuestos') ?>"></script>
|
<script src="<?= site_url('js_loader/translate_js/Presupuestos') ?>"></script>
|
||||||
<script src="<?= site_url('js_loader/presupuestoClienteResumen_js') ?>"></script>
|
<script src="<?= site_url('js_loader/presupuestoClienteResumen_js') ?>"></script>
|
||||||
|
<script src="<?= site_url('themes/vuexy/vendor/libs/perfect-scrollbar/perfect-scrollbar.js') ?>"></script>
|
||||||
|
|
||||||
<?php if ($presupuestoEntity->estado_id == 1) : ?>
|
<?php if ($presupuestoEntity->estado_id == 1) : ?>
|
||||||
<script src="<?= site_url('js_loader/presupuestoCliente_js') ?>"></script>
|
<script src="<?= site_url('js_loader/presupuestoCliente_js') ?>"></script>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|||||||
@ -309,12 +309,13 @@ class Chat {
|
|||||||
|
|
||||||
}
|
}
|
||||||
_handleListContactsSuccess(contacts) {
|
_handleListContactsSuccess(contacts) {
|
||||||
if (contacts) {
|
if (contacts.length) {
|
||||||
|
console.log(contacts)
|
||||||
contacts.map((c) => {
|
contacts.map((c) => {
|
||||||
this._addContactToList(c)
|
this._addContactToList(c)
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.sideBar.find("#contact-list").removeClass("d-none")
|
this.sideBar.find("#contact-list").addClass("d-none")
|
||||||
}
|
}
|
||||||
this.sideBar.find(".contact-chat").on("click", (e) => {
|
this.sideBar.find(".contact-chat").on("click", (e) => {
|
||||||
$(".contact-chat").parent().removeClass("active")
|
$(".contact-chat").parent().removeClass("active")
|
||||||
|
|||||||
Reference in New Issue
Block a user