Show object ID when editing items

Shows the database object ID when editing on the Notes tab, to allow for use in the API.
Needs further work as we move things to dynamic modals for editing.
This commit is contained in:
wrongecho
2024-09-10 23:04:12 +01:00
parent 760f07e665
commit 586f0f1c57
4 changed files with 183 additions and 179 deletions
+2
View File
@@ -390,6 +390,8 @@
<textarea class="form-control" rows="8" placeholder="Enter some notes" name="notes"><?php echo $asset_notes; ?></textarea>
</div>
<p class="text-muted text-right">Asset ID: <?= $asset_id ?></p>
</div>
+2
View File
@@ -276,6 +276,8 @@
</div>
</div>
<p class="text-muted text-right">Contact ID: <?= $contact_id ?></p>
</div>
</div>
+3 -5
View File
@@ -182,16 +182,12 @@
</div>
</div>
<div class="form-group">
<textarea class="form-control" rows="5" name="notes" placeholder="Notes, eg Parking Info, Building Access etc"><?php echo $location_notes; ?></textarea>
</div>
</div>
<div class="tab-pane fade" id="pills-notes<?php echo $location_id; ?>">
<div class="form-group">
<textarea class="form-control" rows="12" name="notes" placeholder="Notes, eg Parking Info, Building Access etc"><?php echo $location_notes; ?></textarea>
<textarea class="form-control" rows="8" name="notes" placeholder="Notes, eg Parking Info, Building Access etc"><?php echo $location_notes; ?></textarea>
</div>
<div class="form-group">
@@ -215,6 +211,8 @@
</div>
</div>
<p class="text-muted text-right">Location ID: <?= $location_id ?></p>
</div>
</div>
+2
View File
@@ -169,6 +169,8 @@
<textarea class="form-control" rows="12" placeholder="Enter some notes" name="notes"><?php echo $vendor_notes; ?></textarea>
</div>
<p class="text-muted text-right">Vendor ID: <?= $vendor_id ?></p>
</div>
</div>