init
This commit is contained in:
35
app/templates/admin/edit_contact.html
Normal file
35
app/templates/admin/edit_contact.html
Normal file
@@ -0,0 +1,35 @@
|
||||
{% extends "admin/base.html" %}
|
||||
|
||||
{% block title %}Edit Information - Digital Garage Sale{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Edit Information</h2>
|
||||
|
||||
<form method="post" action="{{ url_for('admin.edit_contact') }}">
|
||||
<div class="form-group">
|
||||
<label for="information">Information Text</label>
|
||||
<textarea id="information" name="information" class="form-control" rows="6">{{ contact_info.information }}</textarea>
|
||||
<small>Provide general information about your garage sale that will be displayed at the top of the page.</small>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Email Address</label>
|
||||
<input type="email" id="email" name="email" class="form-control" value="{{ contact_info.email }}" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="signal">Signal (Username or Phone Number)</label>
|
||||
<input type="text" id="signal" name="signal" class="form-control" value="{{ contact_info.signal }}">
|
||||
<small>Optional. Leave blank if you don't want to display Signal contact info.</small>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="donation_link">Donation Link</label>
|
||||
<input type="url" id="donation_link" name="donation_link" class="form-control" value="{{ contact_info.donation_link }}">
|
||||
<small>Optional. Full URL to your donation page.</small>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary">Update Information</button>
|
||||
<a href="{{ url_for('admin.dashboard') }}" class="btn" style="margin-left: 0.5rem;">Cancel</a>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user