05/07 Phase 3: initial codes
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
{% extends "tenant/layouts/base.html" %}
|
||||
{% block title %}Settings{% endblock %}
|
||||
{% block content %}
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-7">
|
||||
<h4 class="fw-bold mb-4"><i class="bi bi-gear me-2"></i>Settings</h4>
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ url_for('settings.save') }}" novalidate>
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
|
||||
<h6 class="fw-semibold text-muted mb-3">Booking</h6>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Advance Booking Days</label>
|
||||
<input type="number" class="form-control" name="booking_advance_days"
|
||||
value="{{ settings.get('booking_advance_days', '30') }}" min="1" max="365">
|
||||
<div class="form-text">How many days ahead customers can book online.</div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<div class="form-check form-switch">
|
||||
<input class="form-check-input" type="checkbox" name="auto_confirm_bookings"
|
||||
value="true" id="auto_confirm"
|
||||
{{ 'checked' if settings.get('auto_confirm_bookings') == 'true' }}>
|
||||
<label class="form-check-label" for="auto_confirm">Auto-confirm online bookings</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h6 class="fw-semibold text-muted mb-3 mt-4">Reviews</h6>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Review Request Delay (minutes after checkout)</label>
|
||||
<input type="number" class="form-control" name="review_request_delay_minutes"
|
||||
value="{{ settings.get('review_request_delay_minutes', '60') }}" min="0">
|
||||
</div>
|
||||
<div class="row g-2 mb-3">
|
||||
<div class="col">
|
||||
<label class="form-label">Google Review URL</label>
|
||||
<input type="url" class="form-control" name="google_review_url"
|
||||
value="{{ settings.get('google_review_url', '') }}" placeholder="https://g.page/…">
|
||||
</div>
|
||||
<div class="col">
|
||||
<label class="form-label">Yelp Review URL</label>
|
||||
<input type="url" class="form-control" name="yelp_review_url"
|
||||
value="{{ settings.get('yelp_review_url', '') }}" placeholder="https://yelp.com/…">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h6 class="fw-semibold text-muted mb-3 mt-4">Receipt</h6>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Receipt Footer Note</label>
|
||||
<textarea class="form-control" name="receipt_footer_note" rows="2">{{ settings.get('receipt_footer_note', '') }}</textarea>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary">Save Settings</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user