feat: add edit icon to deal in history + new build
This commit is contained in:
parent
2c2c3b279e
commit
f682b47bd0
@ -1086,8 +1086,23 @@ ORDER BY date_sort ASC";
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="chat-content" id="chat_content_<?=$event['id']?>">
|
<div class="chat-content" id="chat_content_<?=$event['id']?>">
|
||||||
<div class="head">
|
<div class="head" style="display:flex;align-items:center;gap:8px;">
|
||||||
<span>Сделка</span>
|
<span>Сделка</span>
|
||||||
|
<?php
|
||||||
|
$deal_id_for_edit = null;
|
||||||
|
if (!empty($event['req_id'])) {
|
||||||
|
$sql_deal = "SELECT id FROM deals WHERE side_one_requisition_id = " . intval($event['req_id']) . " LIMIT 1";
|
||||||
|
$rez_deal = mysql_query($sql_deal);
|
||||||
|
if ($rez_deal && mysql_num_rows($rez_deal) > 0) {
|
||||||
|
$row_deal = mysql_fetch_assoc($rez_deal);
|
||||||
|
$deal_id_for_edit = $row_deal['id'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($deal_id_for_edit) { ?>
|
||||||
|
<a href="javascript:{}" class="no-border" onclick="if(window.editDeal){window.editDeal(<?=intval($event['req_id'])?>, <?=$deal_id_for_edit?>)}" title="Редактировать сделку" style="color:#9e9e9e;font-size:14px;">
|
||||||
|
<i class="ti-pencil"></i>
|
||||||
|
</a>
|
||||||
|
<?php } ?>
|
||||||
<?php if ($event['partner_id']) : ?><sup style="padding-left:3px; font-weight:normal;color:#dea847;" data-partner-id="<?= $event['partner_id'] ?>">от партнёра</sup><?php endif; ?>
|
<?php if ($event['partner_id']) : ?><sup style="padding-left:3px; font-weight:normal;color:#dea847;" data-partner-id="<?= $event['partner_id'] ?>">от партнёра</sup><?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="message">Запланирована сделка на <?=$d?> <?=getRusMonth($m)?> <?=$y?> в <?=date("H:i", strtotime($event['schedule_date']))?></div>
|
<div class="message">Запланирована сделка на <?=$d?> <?=getRusMonth($m)?> <?=$y?> в <?=date("H:i", strtotime($event['schedule_date']))?></div>
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
// Авто-сгенерировано: postbuild.js
|
// Авто-сгенерировано: postbuild.js
|
||||||
import '/deal/assets/index-CaM5SOXz.js';
|
import '/deal/assets/index-C02jcnWu.js';
|
||||||
1
deal/assets/index-Bg-PqcVS.css
Normal file
1
deal/assets/index-Bg-PqcVS.css
Normal file
File diff suppressed because one or more lines are too long
3532
deal/assets/index-C02jcnWu.js
Normal file
3532
deal/assets/index-C02jcnWu.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user