Update button logic to disallow on draft...
This commit is contained in:
@@ -96,18 +96,6 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
|
|
||||||
<div class="card-header d-print-none">
|
<div class="card-header d-print-none">
|
||||||
<div class="float-left">
|
|
||||||
<?php
|
|
||||||
if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Viewed" && strtotime($quote_expire) > strtotime("now")) {
|
|
||||||
?>
|
|
||||||
<a class="btn btn-success" href="guest_post.php?accept_quote=<?php echo $quote_id; ?>&url_key=<?php echo $url_key; ?>">
|
|
||||||
<i class="fas fa-fw fa-thumbs-up mr-2"></i>Accept
|
|
||||||
</a>
|
|
||||||
<a class="btn btn-danger" href="guest_post.php?decline_quote=<?php echo $quote_id; ?>&url_key=<?php echo $url_key; ?>">
|
|
||||||
<i class="fas fa-fw fa-thumbs-down mr-2"></i>Decline
|
|
||||||
</a>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
<a class="btn btn-primary" href="#" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</a>
|
<a class="btn btn-primary" href="#" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</a>
|
||||||
@@ -263,6 +251,19 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie
|
|||||||
<hr class="mt-5">
|
<hr class="mt-5">
|
||||||
|
|
||||||
<div class="text-center"><?php echo nl2br($config_quote_footer); ?></div>
|
<div class="text-center"><?php echo nl2br($config_quote_footer); ?></div>
|
||||||
|
<div class="">
|
||||||
|
<?php
|
||||||
|
if ($quote_status == "Sent" || $quote_status == "Viewed" && strtotime($quote_expire) > strtotime("now")) {
|
||||||
|
?>
|
||||||
|
<a class="btn btn-success" href="guest_post.php?accept_quote=<?php echo $quote_id; ?>&url_key=<?php echo $url_key; ?>">
|
||||||
|
<i class="fas fa-fw fa-thumbs-up mr-2"></i>Accept
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-danger" href="guest_post.php?decline_quote=<?php echo $quote_id; ?>&url_key=<?php echo $url_key; ?>">
|
||||||
|
<i class="fas fa-fw fa-thumbs-down mr-2"></i>Decline
|
||||||
|
</a>
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user