Skip to content

Commit

Permalink
Update button logic to disallow on draft...
Browse files Browse the repository at this point in the history
  • Loading branch information
psi-iota committed Oct 10, 2023
1 parent 537f18e commit 7e9c221
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions guest_view_quote.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,6 @@
<div class="card">

<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">
<a class="btn btn-primary" href="#" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</a>
Expand Down Expand Up @@ -263,6 +251,19 @@
<hr class="mt-5">

<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>

Expand Down

0 comments on commit 7e9c221

Please sign in to comment.