fargo/fargo/templates/fargo/oauth2/confirm.html

34 lines
1.0 KiB
HTML

{% extends "fargo/base.html" %}
{% load i18n %}
{% block content %}
<div id="fargo-oauth2-confirm">
{% if oauth2_document %}
{% block form-intro %}
<p>
{% blocktrans %}
The service {{ oauth2_client }} want to add the document "<a href="{{ download_url }}"><em class="filename">{{ filename }}</em></a>" to your portfolio.
{% endblocktrans %}
</p>
{% if thumbnail %}<p class="fargo-thumbnail"><img src="{{ thumbnail.src }}" height="{{ thumbnail.height }}" width="{{ thumbnail.width }}"/></p>{% endif %}
{% endblock %}
{% endif %}
{% if error_message %}
{% block error-message %}
<p>{% trans error_message %}</p>
{% endblock %}
{% endif %}
{% block form %}
<form id="send-file" method="post">
{% csrf_token %}
<div class="buttons">
{% if not error_message %}
<button name="submit">{% trans "Allow" %}</button>
{% endif %}
<button name="cancel">{% trans "Cancel" %}</button>
</div>
</form>
{% endblock %}
</div>
{% endblock %}