|
|
|
@ -31,7 +31,7 @@ if (!empty($_GET['id']) && $database->has('payments', ['paymentid' => $_GET['id'
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<form action="action.php" method="post">
|
|
|
|
|
<form action="action.php" method="post" id="editform">
|
|
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
|
|
|
|
@ -68,7 +68,8 @@ if (!empty($_GET['id']) && $database->has('payments', ['paymentid' => $_GET['id'
|
|
|
|
|
"name" => "familyid",
|
|
|
|
|
"type" => "select",
|
|
|
|
|
"value" => $data["family"],
|
|
|
|
|
"options" => $familylist
|
|
|
|
|
"options" => $familylist,
|
|
|
|
|
"error" => "Choose a family."
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
"label" => "Amount",
|
|
|
|
@ -77,16 +78,17 @@ if (!empty($_GET['id']) && $database->has('payments', ['paymentid' => $_GET['id'
|
|
|
|
|
"type" => "number",
|
|
|
|
|
"maxlength" => 5,
|
|
|
|
|
"value" => $data["amount"],
|
|
|
|
|
"width" => 2
|
|
|
|
|
"width" => 2,
|
|
|
|
|
"error" => "Enter a dollar amount."
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
"label" => "Date",
|
|
|
|
|
"icon" => "fas fa-calendar",
|
|
|
|
|
"name" => "date",
|
|
|
|
|
"type" => "date",
|
|
|
|
|
"maxlength" => 20,
|
|
|
|
|
"value" => $data["date"],
|
|
|
|
|
"width" => 3
|
|
|
|
|
"width" => 3,
|
|
|
|
|
"error" => "Choose a date for the payment."
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
"label" => "Type",
|
|
|
|
@ -102,7 +104,8 @@ if (!empty($_GET['id']) && $database->has('payments', ['paymentid' => $_GET['id'
|
|
|
|
|
"Free" => "Free",
|
|
|
|
|
"Other" => "Other"
|
|
|
|
|
],
|
|
|
|
|
"width" => 3
|
|
|
|
|
"width" => 3,
|
|
|
|
|
"error" => "Select a payment type."
|
|
|
|
|
]
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
@ -124,6 +127,13 @@ if (!empty($_GET['id']) && $database->has('payments', ['paymentid' => $_GET['id'
|
|
|
|
|
aria-label="<?php echo $item['label']; ?>"
|
|
|
|
|
maxlength="<?php echo $item['maxlength']; ?>"
|
|
|
|
|
<?php
|
|
|
|
|
if (!empty($item['pattern'])) {
|
|
|
|
|
?>
|
|
|
|
|
pattern="<?php echo $item['pattern']; ?>"
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<?php
|
|
|
|
|
if (!empty($item['value'])) {
|
|
|
|
|
?>
|
|
|
|
|
value="<?php echo htmlspecialchars($item['value']); ?>"
|
|
|
|
@ -148,6 +158,9 @@ if (!empty($_GET['id']) && $database->has('payments', ['paymentid' => $_GET['id'
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<div class="invalid-feedback">
|
|
|
|
|
<?php echo $item['error']; ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -194,7 +207,7 @@ if (!empty($_GET['id']) && $database->has('payments', ['paymentid' => $_GET['id'
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<div class="card-footer d-flex">
|
|
|
|
|
<button type="submit" class="btn btn-success mr-1">
|
|
|
|
|
<button type="submit" class="btn btn-success mr-1" id="savebutton">
|
|
|
|
|
<i class="fas fa-save"></i> <?php $Strings->get("Save"); ?>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|