Edit and Copy Assets is now using the new AJAX function

This commit is contained in:
johnnyq
2025-02-15 20:35:35 -05:00
parent 5f02bc07aa
commit ca0b1a1fb7
7 changed files with 931 additions and 415 deletions

View File

@@ -202,7 +202,10 @@ if (isset($_GET['asset_id'])) {
<div class="card">
<div class="card-header">
<button type="button" class="btn btn-light float-right" data-toggle="modal" data-target="#editAssetModal<?php echo $asset_id; ?>">
<button type="button" class="btn btn-light float-right"
data-toggle="ajax-modal"
data-ajax-url="ajax/ajax_asset_edit.php"
data-ajax-id="<?php echo $asset_id; ?>">
<i class="fas fa-fw fa-edit"></i>
</button>
<h3 class="text-bold"><i class="fa fa-fw text-secondary fa-<?php echo $device_icon; ?> mr-3"></i><?php echo $asset_name; ?></h3>
@@ -293,8 +296,6 @@ if (isset($_GET['asset_id'])) {
<textarea class="form-control" rows=6 id="assetNotes" placeholder="Enter quick notes here" onblur="updateAssetNotes(<?php echo $asset_id ?>)"><?php echo $asset_notes ?></textarea>
</div>
<?php require_once "modals/client_asset_edit_modal.php"; ?>
</div>
<div class="col-md-9">