2017-10-25 20:35:57 -04:00
{% extends 'lemoncurry/layout.html' %}
2017-10-27 06:32:14 -04:00
{% load static %}
{% block styles %}
< link rel = "stylesheet" type = "text/stylus" href = "{% static 'lemonauth/css/indie.styl' %}" / >
{% endblock %}
2017-10-25 20:35:57 -04:00
{% block main %}
< div class = "container" >
2017-10-28 23:39:30 -04:00
< form class = "card" method = "post" action = "{% url 'lemonauth:indie_approve' %}" >
2017-10-27 06:32:14 -04:00
< h4 class = "card-header h-x-app" >
{% if app %}< img class = "u-logo p-name" src = "{{ app.logo | first }}" alt = "{{ app.name | first }}" / > {% endif %}
2017-10-26 22:26:21 -04:00
sign in to
2017-10-27 06:32:14 -04:00
{% if app %}{{ app.name | first }}{% endif %}
{% if app %}({% endif %}< a class = "u-url code{% if not app %} p-name{% endif %}" href = "{{ params.client_id }}" > {{ params.client_id }}< / a > {% if app %}){% endif %}?
2017-10-25 20:35:57 -04:00
< / h4 >
< div class = "card-body" >
2017-10-28 23:39:30 -04:00
< p class = "card-text" > do you want to confirm your identity, < a class = "code" href = "{{ me }}" > {{ me }}< / a > , with this app?< / p >
2017-10-26 22:26:21 -04:00
< p class = "card-text" > < small > you will be redirected to < a class = "code" href = "{{ params.redirect_uri }}" > {{ params.redirect_uri }}< / a > after authorising this app< / small > < / p >
2017-10-25 20:35:57 -04:00
< / div >
< div class = "card-footer" >
2017-10-26 22:26:21 -04:00
< button class = "btn btn-success" type = "submit" >
2017-10-25 20:35:57 -04:00
< i class = "fa fa-check" > < / i >
approve
< / button >
< / div >
{% csrf_token %}
2017-10-28 23:39:30 -04:00
< input name = "me" type = "hidden" value = "{{ me }}" / >
< input name = "client_id" type = "hidden" value = "{{ params.client_id }}" / >
< input name = "redirect_uri" type = "hidden" value = "{{ params.redirect_uri }}" / >
{% if params.state %}< input name = "state" type = "hidden" value = "{{ params.state }}" / > {% endif %}
< input name = "response_type" type = "hidden" value = "{{ params.response_type }}" / >
2017-10-25 20:35:57 -04:00
< / form >
< / div >
{% endblock %}