Changes to be committed:
modified: modules/billing/admin.php modified: modules/billing/cart.php modified: modules/billing/css/header.css renamed: modules/billing/includes/config.inc.php -> modules/billing/includes/config.inc.php.orig modified: modules/billing/includes/menu.php modified: modules/billing/order.php modified: modules/billing/privacy.php modified: modules/billing/serverlist.php modified: modules/billing/tos.php
This commit is contained in:
parent
f0405e5998
commit
426b32b747
9 changed files with 195 additions and 85 deletions
|
|
@ -322,11 +322,11 @@ if ($db){
|
|||
// Use the previously resolved $is_admin (computed once above)
|
||||
$is_free = ((float)$row['price'] == 0.0);
|
||||
?>
|
||||
<?php if ($is_admin || $is_free): ?>
|
||||
<?php if ($is_admin || $is_free): ?>
|
||||
<td>
|
||||
<form method="post" action="" class="inline-form">
|
||||
<input type="hidden" name="create_free_for" value="<?php echo (int)$row['order_id']; ?>">
|
||||
<button type="submit" class="btn-primary"><?php echo $is_admin ? 'Create (Free)' : 'Claim (Free)'; ?></button>
|
||||
<button type="submit" class="gsw-btn"><?php echo $is_admin ? 'Create (Free)' : 'Claim (Free)'; ?></button>
|
||||
</form>
|
||||
<?php if ($is_admin): ?>
|
||||
<div style="font-size:11px;color:#666;margin-top:4px;">Admin: force-create a paid record for testing.</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue