Made first field in record listings clickable to edit modal

This commit is contained in:
johnny@pittpc.com 2019-07-30 15:14:51 -04:00
parent 56f839809a
commit dfebcaedfe
16 changed files with 45 additions and 37 deletions

View File

@ -93,7 +93,7 @@
?>
<tr>
<td><?php echo $account_name; ?></a></td>
<td><a class="text-dark" href="#" data-toggle="modal" data-target="#editAccountModal<?php echo $account_id; ?>"><?php echo $account_name; ?></a></td>
<td class="text-right text-monospace">$<?php echo number_format($balance,2); ?></td>
<td>
<div class="dropdown dropleft text-center">

View File

@ -84,7 +84,7 @@
?>
<tr>
<td><?php echo "$category_name"; ?></td>
<td><a class="text-dark" href="#" data-toggle="modal" data-target="#editCategoryModal<?php echo $category_id; ?>"><?php echo "$category_name"; ?></a></td>
<td><?php echo "$category_type"; ?></td>
<td><i class="fa fa-2x fa-circle" style="color:<?php echo $category_color; ?>;"></i></td>
<td>

View File

@ -135,7 +135,11 @@ $total_pages = ceil($total_found_rows / 10);
?>
<tr>
<td><i class="fa fa-fw text-secondary fa-<?php echo $device_icon; ?> mr-3"></i><?php echo $asset_type; ?></td>
<td>
<a class="text-dark" href="#" data-toggle="modal" data-target="#editAssetModal<?php echo $asset_id; ?>">
<i class="fa fa-fw text-secondary fa-<?php echo $device_icon; ?> mr-2"></i><?php echo $asset_type; ?>
</a>
</td>
<td>
<?php
if($asset_id == $asset_id_relation){

View File

@ -94,20 +94,22 @@ $total_pages = ceil($total_found_rows / 10);
?>
<tr>
<td class="text-center">
<?php if(!empty($contact_photo)){ ?>
<img height="48" width="48" class="img-fluid rounded-circle" src="<?php echo $contact_photo; ?>">
<?php }else{ ?>
<span class="fa-stack fa-2x">
<i class="fa fa-circle fa-stack-2x text-secondary"></i>
<span class="fa fa-stack-1x text-white"><?php echo $contact_initials; ?></span>
</span>
<br>
<a class="text-dark" href="#" data-toggle="modal" data-target="#editContactModal<?php echo $contact_id; ?>">
<?php if(!empty($contact_photo)){ ?>
<?php } ?>
<div class="text-secondary"><?php echo $contact_name; ?></div>
<img height="48" width="48" class="img-fluid rounded-circle" src="<?php echo $contact_photo; ?>">
<?php }else{ ?>
<span class="fa-stack fa-2x">
<i class="fa fa-circle fa-stack-2x text-secondary"></i>
<span class="fa fa-stack-1x text-white"><?php echo $contact_initials; ?></span>
</span>
<br>
<?php } ?>
<div class="text-secondary"><?php echo $contact_name; ?></div>
</a>
</td>
<td><?php echo $contact_title; ?></td>

View File

@ -97,7 +97,7 @@ $total_pages = ceil($total_found_rows / 10);
?>
<tr>
<td><?php echo $domain_name; ?></td>
<td><a class="text-dark" href="#" data-toggle="modal" data-target="#editDomainModal<?php echo $domain_id; ?>"><?php echo $domain_name; ?></a></td>
<td><?php echo $domain_registrar_name; ?></td>
<td><?php echo $domain_webhost_name; ?></td>
<td><?php echo $domain_expire; ?></td>

View File

@ -99,7 +99,7 @@ $total_pages = ceil($total_found_rows / 10);
?>
<tr>
<td><?php echo "$location_name"; ?></td>
<td><a class="text-dark" href="#" data-toggle="modal" data-target="#editLocationModal<?php echo $location_id; ?>"><?php echo $location_name; ?></a></td>
<td><a href="//maps.<?php echo $session_map_source; ?>.com?q=<?php echo "$location_address $location_zip"; ?>" target="_blank"><?php echo $location_address; ?></a></td>
<td><?php echo $location_phone; ?></td>
<td><?php echo $location_hours; ?></td>

View File

@ -95,7 +95,7 @@ $total_pages = ceil($total_found_rows / 10);
?>
<tr>
<td><?php echo $login_description_td; ?></td>
<td><a class="text-dark" href="#" data-toggle="modal" data-target="#editLoginModal<?php echo $login_id; ?>"><?php echo $login_description_td; ?></a></td>
<td><?php echo $login_username; ?></td>
<td><?php echo $login_password; ?></td>
<td>

View File

@ -91,7 +91,7 @@ $total_pages = ceil($total_found_rows / 10);
?>
<tr>
<td><?php echo $network_name; ?></td>
<td><a class="text-dark" href="#" data-toggle="modal" data-target="#editNetworkModal<?php echo $network_id; ?>"><?php echo $network_name; ?></a></td>
<td><?php echo $network; ?></td>
<td><?php echo $network_gateway; ?></td>
<td><?php echo $network_dhcp_range; ?></td>

View File

@ -96,7 +96,7 @@ $total_pages = ceil($total_found_rows / 10);
?>
<tr>
<td><?php echo $software_name; ?></td>
<td><a class="text-dark" href="#" data-toggle="modal" data-target="#editSoftwareModal<?php echo $software_id; ?>"><?php echo $software_name; ?></a></td>
<td><?php echo $software_type; ?></td>
<td><?php echo $software_license; ?></td>
<td>

View File

@ -107,7 +107,7 @@ $total_pages = ceil($total_found_rows / 10);
?>
<tr>
<td><?php echo $vendor_name; ?></td>
<td><a class="text-dark" href="#" data-toggle="modal" data-target="#editVendorModal<?php echo $vendor_id; ?>"><?php echo $vendor_name; ?></a></td>
<td><?php echo $vendor_description; ?></td>
<td><?php echo $vendor_account_number; ?></td>
<td>

View File

@ -105,7 +105,7 @@
?>
<tr>
<td><?php echo $receipt_attached; ?> <?php echo $expense_date; ?></td>
<td><?php echo $receipt_attached; ?> <a class="text-dark" href="#" data-toggle="modal" data-target="#editExpenseModal<?php echo $expense_id; ?>"><?php echo $expense_date; ?></a></td>
<td class="text-right text-monospace">$<?php echo number_format($expense_amount,2); ?></td>
<td><?php echo $vendor_name; ?></td>
<td><?php echo $category_name; ?></td>

View File

@ -84,7 +84,7 @@
?>
<tr>
<td><?php echo $product_name; ?></td>
<td><a class="text-dark" href="#" data-toggle="modal" data-target="#editProductModal<?php echo $product_id; ?>"><?php echo $product_name; ?></a></td>
<td><?php echo $product_description; ?></td>
<td class="text-right text-monospace">$<?php echo number_format($product_cost,2); ?></td>
<td>

View File

@ -96,7 +96,7 @@ $total_pages = ceil($total_found_rows / 10);
?>
<tr>
<td><?php echo $transfer_date; ?></td>
<td><a class="text-dark" href="#" data-toggle="modal" data-target="#editTransferModal<?php echo $transfer_id; ?>"><?php echo $transfer_date; ?></a></td>
<td><?php echo $account_name_from; ?></td>
<td><?php echo $account_name_to; ?></td>
<td class="text-right text-monospace">$<?php echo number_format($transfer_amount,2); ?></td>

View File

@ -93,7 +93,7 @@
?>
<tr>
<td><?php echo $trip_date; ?></td>
<td><a class="text-dark" href="#" data-toggle="modal" data-target="#editTripModal<?php echo $trip_id; ?>"><?php echo $trip_date; ?></a></td>
<td><?php echo $trip_purpose; ?></td>
<td><?php echo $trip_starting_location; ?></td>
<td><?php echo $trip_destination; ?></td>

View File

@ -90,17 +90,19 @@
?>
<tr>
<td class="text-center">
<?php if(!empty($avatar)){ ?>
<img height="48" width="48" class="img-fluid rounded-circle" src="<?php echo $avatar; ?>">
<?php }else{ ?>
<span class="fa-stack fa-2x">
<i class="fa fa-circle fa-stack-2x text-secondary"></i>
<span class="fa fa-stack-1x text-white"><?php echo $initials; ?></span>
</span>
<br>
<?php } ?>
<a class="text-dark" href="#" data-toggle="modal" data-target="#editUserModal<?php echo $user_id; ?>">
<?php if(!empty($avatar)){ ?>
<img height="48" width="48" class="img-fluid rounded-circle" src="<?php echo $avatar; ?>">
<?php }else{ ?>
<span class="fa-stack fa-2x">
<i class="fa fa-circle fa-stack-2x text-secondary"></i>
<span class="fa fa-stack-1x text-white"><?php echo $initials; ?></span>
</span>
<br>
<?php } ?>
<div class="text-secondary"><?php echo $name; ?></div>
<div class="text-secondary"><?php echo $name; ?></div>
</a>
</td>
<td><a href="mailto:<?php echo $email; ?>"><?php echo $email; ?></a></td>
<td>Client</td>

View File

@ -97,7 +97,7 @@
?>
<tr>
<td><?php echo $vendor_name; ?></td>
<td><a class="text-dark" href="#" data-toggle="modal" data-target="#editVendorModal<?php echo $vendor_id; ?>"><?php echo $vendor_name; ?></a></td>
<td><?php echo $vendor_description; ?></td>
<td><?php echo $vendor_account_number; ?></td>
<td>