Move card footer container inside the card-footer component

This commit is contained in:
Joachim 2021-04-21 17:23:48 +02:00
parent cbccb07252
commit 58aeb72afa
3 changed files with 29 additions and 27 deletions

View file

@ -11,10 +11,8 @@
</section> </section>
{% endif %} {% endif %}
<footer class="card-footer has-background-white-bis"> {% block card-footer %}
{% block card-footer %} {% endblock %}
{% endblock %}
</footer>
{% block card-bonus %} {% block card-bonus %}
{% endblock %} {% endblock %}

View file

@ -16,22 +16,24 @@
{% endblock %} {% endblock %}
{% block card-footer %} {% block card-footer %}
<div class="card-footer-item"> <footer class="card-footer has-background-white-bis">
<p>{% blocktrans with username=report.reporter.display_name path=report.reporter.local_path %}Reported by <a href="{{ path }}">{{ username }}</a>{% endblocktrans %}</p> <div class="card-footer-item">
</div> <p>{% blocktrans with username=report.reporter.display_name path=report.reporter.local_path %}Reported by <a href="{{ path }}">{{ username }}</a>{% endblocktrans %}</p>
<div class="card-footer-item"> </div>
{{ report.created_date | naturaltime }} <div class="card-footer-item">
</div> {{ report.created_date | naturaltime }}
<div class="card-footer-item"> </div>
<form name="resolve" method="post" action="{% url 'settings-report-resolve' report.id %}"> <div class="card-footer-item">
{% csrf_token %} <form name="resolve" method="post" action="{% url 'settings-report-resolve' report.id %}">
<button class="button" type="submit"> {% csrf_token %}
{% if report.resolved %} <button class="button" type="submit">
{% trans "Re-open" %} {% if report.resolved %}
{% else %} {% trans "Re-open" %}
{% trans "Resolve" %} {% else %}
{% endif %} {% trans "Resolve" %}
</button> {% endif %}
</form> </button>
</div> </form>
</div>
</footer>
{% endblock %} {% endblock %}

View file

@ -17,9 +17,11 @@
{% endblock %} {% endblock %}
{% block card-footer %} {% block card-footer %}
<form class="card-footer-item is-flex-direction-column" method="post" action="{% url 'hide-goal' %}"> <footer class="card-footer has-background-white-bis">
{% csrf_token %} <form class="card-footer-item is-flex-direction-column" method="post" action="{% url 'hide-goal' %}">
<button type="submit" class="button is-danger is-light is-block set-display" >{% trans "Dismiss message" %}</button> {% csrf_token %}
<p class="help">{% blocktrans with path=request.user.local_path %}You can set or change your reading goal any time from your <a href="{{ path }}">profile page</a>{% endblocktrans %}</p> <button type="submit" class="button is-danger is-light is-block set-display" >{% trans "Dismiss message" %}</button>
</form> <p class="help">{% blocktrans with path=request.user.local_path %}You can set or change your reading goal any time from your <a href="{{ path }}">profile page</a>{% endblocktrans %}</p>
</form>
</footer>
{% endblock %} {% endblock %}