No puede seleccionar más de 25 temas
Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
|
- <div class="page-header">
- <h1>New Householder Name</h1>
- <a class="button button-secondary button-sm" href="/householder-names">← Back</a>
- </div>
-
- <div class="section-panel">
- <?php if (!empty($errors['_token'])): ?>
- <div class="alert alert-error"><?= e($errors['_token'][0]) ?></div>
- <?php endif; ?>
-
- <form method="POST" action="/householder-names" novalidate>
- <?= csrf_field() ?>
-
- <div class="form-grid">
- <div class="field" style="grid-column:1/-1">
- <label for="household_id">Household <span style="color:#c0392b">*</span></label>
- <select class="input <?= isset($errors['household_id']) ? 'input-error' : '' ?>"
- id="household_id" name="household_id" required>
- <option value="">Select a household…</option>
- <?php foreach ($households as $h): ?>
- <option value="<?= e($h['id']) ?>"
- <?= ((string) ($old['household_id'] ?? $defaultHouseholdId)) === (string) $h['id'] ? 'selected' : '' ?>>
- <?= e($h['address']) ?>
- </option>
- <?php endforeach; ?>
- </select>
- <?php if (isset($errors['household_id'])): ?>
- <span class="field-error"><?= e($errors['household_id'][0]) ?></span>
- <?php endif; ?>
- </div>
-
- <div class="field" style="grid-column:1/-1">
- <label for="name">Name <span style="color:#c0392b">*</span></label>
- <input class="input <?= isset($errors['name']) ? 'input-error' : '' ?>"
- type="text" id="name" name="name"
- value="<?= e((string) ($old['name'] ?? '')) ?>" required autofocus>
- <?php if (isset($errors['name'])): ?>
- <span class="field-error"><?= e($errors['name'][0]) ?></span>
- <?php endif; ?>
- </div>
-
- <div class="field" style="grid-column:1/-1">
- <label class="checkbox-label">
- <input type="checkbox" name="letter_returned" value="1"
- id="lr_check"
- <?= !empty($old['letter_returned']) ? 'checked' : '' ?>
- onchange="document.getElementById('lr_date_field').style.display=this.checked?'grid':'none'">
- Letter Returned
- </label>
- </div>
-
- <div id="lr_date_field" class="field" style="grid-column:1/-1;display:<?= !empty($old['letter_returned']) ? 'grid' : 'none' ?>">
- <label for="return_date">Return Date</label>
- <input class="input" type="datetime-local" id="return_date" name="return_date"
- value="<?= e((string) ($old['return_date'] ?? '')) ?>">
- </div>
- </div>
-
- <div class="form-actions" style="margin-top:1.5rem">
- <button class="button button-primary" type="submit">Create</button>
- <a class="button button-secondary" href="/householder-names">Cancel</a>
- </div>
- </form>
- </div>
|