moviewyrm/bookwyrm/templates/snippets/goal_card.html

25 lines
1 KiB
HTML
Raw Normal View History

2021-01-29 16:51:36 +00:00
{% extends 'components/card.html' %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
{% block card-header %}
<h3 class="card-header-title has-background-primary has-text-white">
2021-02-28 18:09:56 +00:00
<span class="icon icon-book is-size-3 mr-2" aria-hidden="true"></span> {% blocktrans %}{{ year }} Reading Goal{% endblocktrans %}
</h3>
{% endblock %}
{% block card-content %}
<div class="content">
2021-02-28 02:48:10 +00:00
<p>{% blocktrans %}Set a goal for how many books you'll finish reading in {{ year }}, and track your progress throughout the year.{% endblocktrans %}</p>
{% include 'snippets/goal_form.html' %}
</div>
{% endblock %}
{% block card-footer %}
<div class="card-footer-item is-flex-direction-column">
2021-02-28 02:48:10 +00:00
<button class="button is-danger is-light is-block set-display" data-id="hide-{{ year }}-reading-goal" data-value="true">{% trans "Dismiss message" %}</button>
<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>
</div>
{% endblock %}