mirror of
https://github.com/itflow-org/itflow
synced 2026-08-28 10:25:12 +00:00
Make Add Primary links small
This commit is contained in:
@@ -463,7 +463,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
it was: it also covers a primary contact that exists but has
|
||||
nothing worth printing. */
|
||||
if (empty($contact_id) && lookupUserPermission("module_client") >= 2) { ?>
|
||||
<a class="ajax-modal" href="#" data-modal-url="modals/contact/contact_add.php?client_id=<?= $client_id ?>&primary=1">
|
||||
<a class="ajax-modal small" href="#" data-modal-url="modals/contact/contact_add.php?client_id=<?= $client_id ?>&primary=1">
|
||||
Add Primary Contact
|
||||
</a>
|
||||
<?php } elseif (empty($contact_name) && empty($contact_phone) && empty($contact_mobile) && empty($client_email)) {
|
||||
@@ -501,7 +501,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
</td>
|
||||
<td>
|
||||
<?php if (empty($location_id) && lookupUserPermission("module_client") >= 2) { ?>
|
||||
<a class="ajax-modal" href="#" data-modal-url="modals/location/location_add.php?client_id=<?= $client_id ?>&primary=1">
|
||||
<a class="ajax-modal small" href="#" data-modal-url="modals/location/location_add.php?client_id=<?= $client_id ?>&primary=1">
|
||||
Add Primary Location
|
||||
</a>
|
||||
<?php } else {
|
||||
|
||||
@@ -76,8 +76,8 @@
|
||||
match enforceUserPermission() in agent/post/location.php;
|
||||
without that a read-only user would get a link that 403s. */ ?>
|
||||
<?php if (empty($location_id) && lookupUserPermission("module_client") >= 2) { ?>
|
||||
<div>
|
||||
<a class="ajax-modal" href="#" data-modal-url="modals/location/location_add.php?client_id=<?= $client_id ?>&primary=1">
|
||||
<div class="mb-2">
|
||||
<a class="ajax-modal small" href="#" data-modal-url="modals/location/location_add.php?client_id=<?= $client_id ?>&primary=1">
|
||||
Add Primary Location
|
||||
</a>
|
||||
</div>
|
||||
@@ -117,7 +117,7 @@
|
||||
|
||||
if (empty($contact_id) && lookupUserPermission("module_client") >= 2) { ?>
|
||||
<div>
|
||||
<a class="ajax-modal" href="#" data-modal-url="modals/contact/contact_add.php?client_id=<?= $client_id ?>&primary=1">
|
||||
<a class="ajax-modal small" href="#" data-modal-url="modals/contact/contact_add.php?client_id=<?= $client_id ?>&primary=1">
|
||||
Add Primary Contact
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user