changed payment code to demo code
This commit is contained in:
14
backend/core/templates/admin/democode_changelist.html
Normal file
14
backend/core/templates/admin/democode_changelist.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% extends "admin/change_list.html" %}
|
||||
{% block object-tools %}
|
||||
<div style="padding: 12px 0;">
|
||||
<div style="padding: 12px 0;">
|
||||
<a href="{% url 'admin:generate-codes' %}" class="button">Generate Demo Codes</a>
|
||||
</div>
|
||||
<div style="padding: 12px 0;">
|
||||
<a href="{% url 'core:demo_codes_pdf' %}?filter_by=all" class="button">All (PDF)</a>
|
||||
<a href="{% url 'core:demo_codes_pdf' %}?filter_by=used" class="button">Used (PDF)</a>
|
||||
<a href="{% url 'core:demo_codes_pdf' %}?filter_by=available" class="button">Unused (PDF)</a>
|
||||
</div>
|
||||
</div>
|
||||
{{ block.super }}
|
||||
{% endblock %}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
{% block content %}
|
||||
<div id="content-main">
|
||||
<h2>Generate Payment Codes</h2>
|
||||
<h2>Generate Demo Codes</h2>
|
||||
<form method="post">{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" name="apply" value="Generate" class="default">
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
{% extends "admin/change_list.html" %}
|
||||
{% block object-tools %}
|
||||
<div style="padding: 12px 0;">
|
||||
<div style="padding: 12px 0;">
|
||||
<a href="{% url 'admin:generate-codes' %}" class="button">Generate Payment Codes</a>
|
||||
</div>
|
||||
<div style="padding: 12px 0;">
|
||||
<a href="{% url 'core:payment_codes_pdf' %}?filter_by=all" class="button">All (PDF)</a>
|
||||
<a href="{% url 'core:payment_codes_pdf' %}?filter_by=used" class="button">Used (PDF)</a>
|
||||
<a href="{% url 'core:payment_codes_pdf' %}?filter_by=available" class="button">Unused (PDF)</a>
|
||||
</div>
|
||||
</div>
|
||||
{{ block.super }}
|
||||
{% endblock %}
|
||||
@@ -4,11 +4,11 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>PDF payment report</title>
|
||||
<title>Demo codes report</title>
|
||||
<link rel="stylesheet" href="{% static 'css/document.css' %}">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Payment Codes Report</h1>
|
||||
<h1>Demo Codes Report</h1>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -3,7 +3,7 @@
|
||||
<section class="py-24 bg-gradient-to-br from-teal-100 to-primary flex items-center justify-center">
|
||||
<div class="max-w-md w-full mx-auto text-center shadow-2xl border border-accent rounded-2xl p-4 bg-white/90 backdrop-blur">
|
||||
<h2 class="text-3xl font-extrabold mb-6 text-accent">Payment</h2>
|
||||
<p class="text-lg text-gray-700 mb-6">Please enter your payment code to proceed to document.</p>
|
||||
<p class="text-lg text-gray-700 mb-6">Please enter your demo code to proceed to document.</p>
|
||||
|
||||
{% if success %}
|
||||
<p class="text-green-600 font-semibold mb-4">{{ success }}</p>
|
||||
|
||||
Reference in New Issue
Block a user