diff --git a/customize_cas/templates/_partials/ens_logo.html b/customize_cas/templates/_partials/ens_logo.html new file mode 100644 index 0000000..dd087ed --- /dev/null +++ b/customize_cas/templates/_partials/ens_logo.html @@ -0,0 +1,4 @@ +{% load static %} +{% load i18n %} + + diff --git a/customize_cas/templates/_partials/head.html b/customize_cas/templates/_partials/head.html new file mode 100644 index 0000000..5ac8b21 --- /dev/null +++ b/customize_cas/templates/_partials/head.html @@ -0,0 +1,8 @@ +{% load static %} +{% load i18n %} + + + + {% trans "ENS student authentication" %} + + diff --git a/customize_cas/templates/_partials/header.html b/customize_cas/templates/_partials/header.html new file mode 100644 index 0000000..5081337 --- /dev/null +++ b/customize_cas/templates/_partials/header.html @@ -0,0 +1,11 @@ +{% load static %} +{% load i18n %} +
+ {% include "_partials/ens_logo.html" %} +
+
+ {% blocktrans %}Central Authentication Service{% endblocktrans %} +
+
{% blocktrans %}ENS Students{% endblocktrans %}
+
+
diff --git a/customize_cas/templates/_partials/messages.html b/customize_cas/templates/_partials/messages.html new file mode 100644 index 0000000..4cafe73 --- /dev/null +++ b/customize_cas/templates/_partials/messages.html @@ -0,0 +1,9 @@ +{% if messages %} + +{% endif %} diff --git a/customize_cas/templates/cas_server/base.html b/customize_cas/templates/cas_server/base.html new file mode 100644 index 0000000..5f4f357 --- /dev/null +++ b/customize_cas/templates/cas_server/base.html @@ -0,0 +1,27 @@ +{% load static %} +{% load i18n %} +{% get_current_language as current_language %} + + + + + {% include "_partials/head.html" %} + {% block "extra_head" %}{% endblock %} + + + {% include "_partials/header.html" %} + +
+ {% include "_partials/messages.html" %} + + {% block content %} + {% endblock %} +
+ +
+ {% include "_partials/ens_logo.html" %} +
+ + {% block "extra_foot" %}{% endblock %} + + diff --git a/customize_cas/templates/cas_server/form.html b/customize_cas/templates/cas_server/form.html new file mode 100644 index 0000000..10e73e7 --- /dev/null +++ b/customize_cas/templates/cas_server/form.html @@ -0,0 +1,33 @@ +{% load cas_server %} + +{% if form.non_field_errors %} + +{% endif %} + +{% for field in form %}{% if not field|is_hidden %} +
{% spaceless %} + {% if field.errors %} + + {% endif %} +
+
+ +
+ {{field}} +
+{% endspaceless %}
+{% else %}{{field}}{% endif %}{% endfor %} diff --git a/customize_cas/templates/cas_server/logged.html b/customize_cas/templates/cas_server/logged.html new file mode 100644 index 0000000..8609f48 --- /dev/null +++ b/customize_cas/templates/cas_server/logged.html @@ -0,0 +1,43 @@ +{% extends "cas_server/base.html" %} +{% load i18n %} + +{% block content %} +
+

{% trans "Logged in successfully" %}

+ +

{% blocktrans %} + You have successfully logged into the Central Authentication Service. + {% endblocktrans %}

+

{% blocktrans %} + When you are done using ENS students' services, you can log out to prevent + anyone unauthorized from accessing your sessions on this computer. + {% endblocktrans %}

+
+ +
+
+
+
+ +
+ +
+
+ {% if settings.CAS_FEDERATE and request.COOKIES.remember_provider %} +
+
+
+ +
+ +
+
+ {% endif %} + +
+{% endblock %} + diff --git a/customize_cas/templates/cas_server/login.html b/customize_cas/templates/cas_server/login.html new file mode 100644 index 0000000..12435ae --- /dev/null +++ b/customize_cas/templates/cas_server/login.html @@ -0,0 +1,16 @@ +{% extends "cas_server/base.html" %} +{% load i18n %} + +{% block content %} + +

{% blocktrans %} + Please log in with your Clipper credentials +{% endblocktrans %}

+ +
+ {% csrf_token %} + {% include "cas_server/form.html" %} + + +
+{% endblock %} diff --git a/customize_cas/templates/cas_server/logout.html b/customize_cas/templates/cas_server/logout.html new file mode 100644 index 0000000..28f8d4b --- /dev/null +++ b/customize_cas/templates/cas_server/logout.html @@ -0,0 +1,11 @@ +{% extends "cas_server/base.html" %} +{% load static %} +{% load i18n %} + +{% block content %} +

{% trans "Clipper logout" %}

+

{% blocktrans %} + You have been successfully logged out from your Clipper account. +{% endblocktrans %}

+{% endblock %} + diff --git a/customize_cas/templates/cas_server/warn.html b/customize_cas/templates/cas_server/warn.html new file mode 100644 index 0000000..e5dab36 --- /dev/null +++ b/customize_cas/templates/cas_server/warn.html @@ -0,0 +1,11 @@ +{% extends "cas_server/base.html" %} +{% load static %} +{% load i18n %} + +{% block content %} +
+{% csrf_token %} +{% include "cas_server/form.html" %} + +
+{% endblock %}