Zahlungserinnerungen added

This commit is contained in:
Isaak Buslovich 2024-01-29 19:53:01 +01:00
parent e9b2b71226
commit 8bef4f81e0
3 changed files with 23 additions and 0 deletions

View File

@ -76,6 +76,13 @@ def add_invoice():
return "An error occurred while adding the invoice", 500
# Other imports and routes...
@app.route('/zahlungserinnerungen')
def zahlungserinnerungen():
return render_htmx_or_full('partials/zahlungserinnerungen.html', 'index.html')
@app.route('/flottenmanagement')
def flottenmanagement():
return render_htmx_or_full('partials/flottenmanagement.html', 'index.html')

View File

@ -70,6 +70,10 @@
<span class="material-icons menu-icon">account_balance_wallet</span>
<span class="menu-label">Buchhaltung</span>
</div>
<div class="menu-item" hx-get="/zahlungserinnerungen" hx-trigger="click" hx-target="#main-content">
<span class="material-icons menu-icon">notifications_active</span>
<span class="menu-label">Zahlungserinnerungen</span>
</div>
<div class="menu-item" hx-get="/flottenmanagement" hx-trigger="click" hx-target="#main-content">
<span class="material-icons menu-icon">directions_car</span>
<span class="menu-label">Flottenmanagement</span>

View File

@ -0,0 +1,12 @@
<div class="payment-reminders">
<h2>Zahlungserinnerungen</h2>
<p>Hier kannst du automatische Erinnerungen an die Kunden versenden.</p>
<form method="post" hx-post="/send-reminder" hx-target="#reminder-status">
<div class="form-group">
<label for="customer-email">Kunden-E-Mail:</label>
<input id="customer-email" name="customer-email" type="email" required>
</div>
<button class="button" type="submit">Erinnerung senden</button>
</form>
<div id="reminder-status"></div>
</div>