mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 01:12:08 +01:00 
			
		
		
		
	Add missing card on button edit
This commit is contained in:
		@@ -5,24 +5,30 @@ SPDX-License-Identifier: GPL-3.0-or-later
 | 
			
		||||
{% load static i18n crispy_forms_tags pretty_money %}
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
<h1 class="text-white">{{ title }}</h1>
 | 
			
		||||
    <p>
 | 
			
		||||
        <a class="btn btn-default" href="{% url 'note:template_list' %}">{% trans "Buttons list" %}</a>
 | 
			
		||||
    </p>
 | 
			
		||||
    <form method="post">
 | 
			
		||||
        {% csrf_token %}
 | 
			
		||||
        {{form|crispy}}
 | 
			
		||||
        <button class="btn btn-primary" type="submit">{% trans "Submit" %}</button>
 | 
			
		||||
    </form>
 | 
			
		||||
<a class="btn btn-secondary mb-3" href="{% url 'note:template_list' %}">{% trans "Buttons list" %}</a>
 | 
			
		||||
 | 
			
		||||
    {% if price_history and price_history.1 %}
 | 
			
		||||
        <hr>
 | 
			
		||||
<div class="card bg-light">
 | 
			
		||||
    <h3 class="card-header text-center">
 | 
			
		||||
        {{ title }}
 | 
			
		||||
    </h3>
 | 
			
		||||
    <div class="card-body">
 | 
			
		||||
        <form method="post">
 | 
			
		||||
            {% csrf_token %}
 | 
			
		||||
            {{form|crispy}}
 | 
			
		||||
            <button class="btn btn-primary" type="submit">{% trans "Submit" %}</button>
 | 
			
		||||
        </form>
 | 
			
		||||
 | 
			
		||||
        {% if price_history and price_history.1 %}
 | 
			
		||||
            <hr>
 | 
			
		||||
 | 
			
		||||
            <h4>{% trans "Price history" %}</h4>
 | 
			
		||||
            <ul>
 | 
			
		||||
            {% for price in price_history %}
 | 
			
		||||
                <li>{{ price.price|pretty_money }} {% if price.time %}({% trans "Obsolete since" %} {{ price.time }}){% else %}({% trans "Current price" %}){% endif %}</li>
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
            </ul>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
        <h4>{% trans "Price history" %}</h4>
 | 
			
		||||
        <ul>
 | 
			
		||||
        {% for price in price_history %}
 | 
			
		||||
            <li>{{ price.price|pretty_money }} {% if price.time %}({% trans "Obsolete since" %} {{ price.time }}){% else %}({% trans "Current price" %}){% endif %}</li>
 | 
			
		||||
        {% endfor %}
 | 
			
		||||
        </ul>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user