33 lines
No EOL
919 B
HTML
33 lines
No EOL
919 B
HTML
{% extends 'base.html' %}
|
|
{% load crispy_forms_tags %}
|
|
|
|
{% block title %}Delete Friend Code{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container mx-auto max-w-md mt-6">
|
|
<h1 class="text-3xl font-bold mb-4">Delete Friend Code</h1>
|
|
<p class="mb-4">
|
|
Are you sure you want to delete friend code:
|
|
<span class="font-mono">{{ friend_code.friend_code }}</span>?
|
|
</p>
|
|
|
|
{% if error_message %}
|
|
<div class="alert alert-warning mb-4">
|
|
{{ error_message }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<form method="post" class="flex space-x-4">
|
|
{% csrf_token %}
|
|
<button type="submit" class="btn btn-error"
|
|
{% if disable_delete %} disabled {% endif %}>
|
|
{% if disable_delete %}
|
|
Delete Not Allowed
|
|
{% else %}
|
|
Confirm Delete
|
|
{% endif %}
|
|
</button>
|
|
<a href="{% url 'dashboard' %}?tab=friend_codes" class="btn btn-secondary">Cancel</a>
|
|
</form>
|
|
</div>
|
|
{% endblock %} |