05/07 Phase 3: initial codes

This commit is contained in:
2026-05-07 12:17:19 -04:00
parent 6e5518c103
commit ce462c57b2
107 changed files with 6365 additions and 208 deletions
+39
View File
@@ -0,0 +1,39 @@
{% extends "tenant/layouts/base.html" %}
{% block title %}Issue Gift Card{% endblock %}
{% block content %}
<div class="row justify-content-center">
<div class="col-md-5">
<div class="card shadow-sm">
<div class="card-header fw-semibold">Issue New Gift Card</div>
<div class="card-body">
{% if error %}<div class="alert alert-danger py-2">{{ error }}</div>{% endif %}
<form method="POST" novalidate>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<div class="mb-3">
<label class="form-label">Value ($) <span class="text-danger">*</span></label>
<input type="number" step="0.01" min="1" class="form-control"
name="value" required autofocus>
</div>
<div class="mb-3">
<label class="form-label">Customer <small class="text-muted">(optional)</small></label>
<select class="form-select" name="customer_id">
<option value="">— None —</option>
{% for c in customers %}
<option value="{{ c.id }}">{{ c.name }}{% if c.phone %} — {{ c.phone }}{% endif %}</option>
{% endfor %}
</select>
</div>
<div class="mb-3">
<label class="form-label">Expiry Date <small class="text-muted">(optional)</small></label>
<input type="datetime-local" class="form-control" name="expires_at">
</div>
<div class="d-flex gap-2">
<button type="submit" class="btn btn-primary">Issue Card</button>
<a href="{{ url_for('gift_cards.index') }}" class="btn btn-outline-secondary">Cancel</a>
</div>
</form>
</div>
</div>
</div>
</div>
{% endblock %}