refactor(bulma): convert check rescue org
This commit is contained in:
@@ -1,21 +1,34 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load custom_tags %}
|
{% load custom_tags %}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h1>
|
<div class="card-header">
|
||||||
<a href="{{ rescue_org.get_absolute_url }}">{{ rescue_org.name }}</a>
|
<div class="card-header-title">
|
||||||
</h1>
|
<h2 class="title is-2">
|
||||||
<i>{% translate 'Zuletzt geprüft:' %} {{ rescue_org.last_checked_hr }}</i>
|
<a href="{{ rescue_org.get_absolute_url_bulma }}">{{ rescue_org.name }}</a>
|
||||||
{% if rescue_org.website %}
|
</h2>
|
||||||
<p>{% translate "Website" %}: <a href="{{ rescue_org.website }}">{{ rescue_org.website }}</a></p>
|
<i>{% translate 'Zuletzt geprüft:' %} {{ rescue_org.last_checked_hr }}</i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-content">
|
||||||
|
{% if rescue_org.website %}
|
||||||
|
<a href="{{ rescue_org.website }}" target="_blank">
|
||||||
|
<i class="fas fa-globe" aria-label="{% translate "Website" %}"></i>
|
||||||
|
{{ rescue_org.website|domain }}
|
||||||
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="container-edit-buttons">
|
</div>
|
||||||
<form method="post">
|
<div class="card-footer">
|
||||||
{% csrf_token %}
|
<div class="card-footer-item is-paddingless">
|
||||||
<input type="hidden"
|
<form method="post">
|
||||||
name="rescue_organization_id"
|
{% csrf_token %}
|
||||||
value="{{ rescue_org.pk }}">
|
<input type="hidden"
|
||||||
<input type="hidden" name="action" value="checked">
|
name="rescue_organization_id"
|
||||||
<button class="btn" type="submit">{% translate "Organisation geprüft" %}</button>
|
value="{{ rescue_org.pk }}">
|
||||||
</form>
|
<input type="hidden" name="action" value="checked">
|
||||||
|
<button class="is-primary is-fullwidth" type="submit">{% translate "Organisation geprüft" %}</button>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
@@ -1,12 +1,14 @@
|
|||||||
{% extends "fellchensammlung/base_generic.html" %}
|
{% extends "fellchensammlung/base_bulma.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{% translate "Aktualitätscheck" %}</h1>
|
<h1 class="title is-1">{% translate "Aktualitätscheck" %}</h1>
|
||||||
<p>{% translate "Überprüfe ob im Tierheim neue Vermittlungen ein Zuhause suchen" %}</p>
|
<p>{% translate "Überprüfe ob im Tierheim neue Vermittlungen ein Zuhause suchen" %}</p>
|
||||||
<div class="container-cards spaced">
|
|
||||||
<h1>{% translate 'Organisation zur Überprüfung' %}</h1>
|
<div class="grid is-col-min-20">
|
||||||
{% for rescue_org in rescue_orgs %}
|
{% for rescue_org in rescue_orgs %}
|
||||||
{% include "fellchensammlung/partials/partial-check-rescue-org.html" %}
|
<div class="cell">
|
||||||
|
{% include "fellchensammlung/partials/partial-check-rescue-org.html" %}
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Reference in New Issue
Block a user