refactor(bulma): convert check rescue org
This commit is contained in:
@@ -1,21 +1,34 @@
|
||||
{% load i18n %}
|
||||
{% load custom_tags %}
|
||||
<div class="card">
|
||||
<h1>
|
||||
<a href="{{ rescue_org.get_absolute_url }}">{{ rescue_org.name }}</a>
|
||||
</h1>
|
||||
<i>{% translate 'Zuletzt geprüft:' %} {{ rescue_org.last_checked_hr }}</i>
|
||||
{% if rescue_org.website %}
|
||||
<p>{% translate "Website" %}: <a href="{{ rescue_org.website }}">{{ rescue_org.website }}</a></p>
|
||||
<div class="card-header">
|
||||
<div class="card-header-title">
|
||||
<h2 class="title is-2">
|
||||
<a href="{{ rescue_org.get_absolute_url_bulma }}">{{ rescue_org.name }}</a>
|
||||
</h2>
|
||||
<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 %}
|
||||
<div class="container-edit-buttons">
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<input type="hidden"
|
||||
name="rescue_organization_id"
|
||||
value="{{ rescue_org.pk }}">
|
||||
<input type="hidden" name="action" value="checked">
|
||||
<button class="btn" type="submit">{% translate "Organisation geprüft" %}</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="card-footer-item is-paddingless">
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<input type="hidden"
|
||||
name="rescue_organization_id"
|
||||
value="{{ rescue_org.pk }}">
|
||||
<input type="hidden" name="action" value="checked">
|
||||
<button class="is-primary is-fullwidth" type="submit">{% translate "Organisation geprüft" %}</button>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@@ -1,12 +1,14 @@
|
||||
{% extends "fellchensammlung/base_generic.html" %}
|
||||
{% extends "fellchensammlung/base_bulma.html" %}
|
||||
{% load i18n %}
|
||||
{% 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>
|
||||
<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 %}
|
||||
{% include "fellchensammlung/partials/partial-check-rescue-org.html" %}
|
||||
<div class="cell">
|
||||
{% include "fellchensammlung/partials/partial-check-rescue-org.html" %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user