fargo: update oauth2 styles and templates
This commit is contained in:
parent
1c21611e7f
commit
bc3c24697e
|
@ -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;
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
Reference in New Issue