oauth2: add templates and styles (#22681)
This commit is contained in:
parent
51faeb5a20
commit
294498a671
|
@ -70,7 +70,7 @@ div#user-files {
|
|||
}
|
||||
|
||||
div#oauth2-authorize, div#oauth2-confirm {
|
||||
margin: 0 auto 3ex auto;
|
||||
margin: 5ex auto 1ex auto;
|
||||
width: 30em;
|
||||
select {
|
||||
width: 90%;
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
{% extends "fargo/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<div class="cell">
|
||||
<h2>Choix du document :</h2>
|
||||
<div id="oauth2-authorize">
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" name="submit" value="{% trans "Choose" %}">
|
||||
<input type="submit" name="cancel" value="{% trans "Cancel" %}">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -0,0 +1,21 @@
|
|||
{% extends "fargo/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<div class="cell">
|
||||
<div id="oauth2-confirm">
|
||||
{% if error_message %}
|
||||
<p>{% trans error_message %}</p>
|
||||
<a href="{{ redirect_uri }}">{% trans "Continue to your client url" %}</a>
|
||||
{% else %}
|
||||
<p>Acceptez-vous l'ajout de <b>{{ filename }}</b> à vos documents ?</p>
|
||||
<form id="send-file" method="post" enctype="multipart/form-data" action="{% url 'oauth2-put-document-authorize' pk %}">
|
||||
{% csrf_token %}
|
||||
<input type="submit" name="submit" value="Autoriser" />
|
||||
<input type="submit" name="cancel" value="Annuler" />
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue