Allow editing gift card numbers

master
Skylar Ittner 6 years ago
parent 89adf1c3ac
commit 9fc5912d10

@ -706,6 +706,7 @@ switch ($VARS['action']) {
returnToSender("card_x_added", $code);
} else {
$database->update('certificates', [
'certcode' => $code,
'amount' => $amount
], [
'certid' => $VARS['id']

@ -62,7 +62,7 @@ if (!$editing) {
<div class="card-body row">
<div class="form-group col-sm-6">
<label for="code"><i class="fas fa-hashtag"></i> <?php lang("card number"); ?></label>
<input type="text" class="form-control disabled" id="code" value="<?php echo $carddata['code']; ?>" disabled />
<input type="text" class="form-control" id="code" name="code" value="<?php echo htmlspecialchars($carddata['code']); ?>" />
</div>
<div class="form-group col-sm-6">
<label for="balance"><i class="fas fa-balance-scale"></i> <?php lang("balance"); ?></label>
@ -71,7 +71,6 @@ if (!$editing) {
</div>
<input type="hidden" name="id" value="<?php echo $carddata['id']; ?>" />
<input type="hidden" name="code" value="<?php echo $carddata['code']; ?>" />
<input type="hidden" name="action" value="editcertificate" />
<input type="hidden" name="source" value="certificates" />

Loading…
Cancel
Save