fargo: update oauth2 styles and templates

This commit is contained in:
Serghei Mihai 2018-03-30 19:05:19 +02:00
parent 1c21611e7f
commit bc3c24697e
3 changed files with 6 additions and 25 deletions

View File

@ -75,7 +75,7 @@ div#user-files {
}
}
div#oauth2-authorize, div#oauth2-confirm {
div#fargo-oauth2-authorize, div#fargo-oauth2-confirm {
margin: 5ex auto 1ex auto;
width: 30em;
select {
@ -84,6 +84,10 @@ div#oauth2-authorize, div#oauth2-confirm {
label {
display: none;
}
button {
width: 100%;
font-size: 1.4rem;
}
@media screen and (max-width: $mobile-limit) {
width: auto;
margin: 0 0.5em 3ex 0.5em;

View File

@ -3,9 +3,8 @@
{% load i18n %}
{% block content %}
<div class="cell">
<div id="fargo-oauth2-authorize">
<h2>Choix du document :</h2>
<div id="oauth2-authorize">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
@ -13,5 +12,4 @@
<input type="submit" name="cancel" value="{% trans "Cancel" %}">
</form>
</div>
</div>
{% endblock %}

View File

@ -1,21 +0,0 @@
{% 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">
{% csrf_token %}
<input type="submit" name="submit" value="Autoriser" />
<input type="submit" name="cancel" value="Annuler" />
</form>
{% endif %}
</div>
</div>
{% endblock %}