Projet

Général

Profil

« Précédent | Suivant » 

Révision c1bcb3b6

Ajouté par Serghei Mihai il y a environ 9 ans

login templates names spelling fix (#6828)

Voir les différences:

uauth/templates/uauth/login_successful.html
1
{% load i18n %}
2
<html>
3
  <head>
4
    <title>{% trans "Authentication succeed" %}</title>
5
  </head>
6
  <body>
7
    {% block content %}
8
    {% endblock %}
9
    {% block page-end %}
10
    <script type="text/javascript">
11
      document.forms[0].submit();
12
    </script>
13
    {% endblock %}
14
  </body>
15
</html>
uauth/templates/uauth/login_successfull.html
1
{% load i18n %}
2
<html>
3
  <head>
4
    <title>{% trans "Authentication succeed" %}</title>
5
  </head>
6
  <body>
7
    {% block content %}
8
    {% endblock %}
9
    {% block page-end %}
10
    <script type="text/javascript">
11
      document.forms[0].submit();
12
    </script>
13
    {% endblock %}
14
  </body>
15
</html>
uauth/templates/uauth/meraki_login_successful.html
1
{% extends "uauth/login_successful.html" %}
2
{% load i18n %}
3

  
4
{% block content %}
5
  <h3>{% trans "You are successfully authenticated" %}</h3>
6
  {% if next_url %}
7
  <p>
8
  {% blocktrans %}
9
  You'll be redirected to {{ next_url }} shortly...
10
  {% endblocktrans %}
11
  </p>
12
  {% endif %}
13
  <form action="{{ hotspot_url }}?{{ params }}" method="post">
14
    <input type="hidden" name="username" value="{{ data.username }}" />
15
    <input type="hidden" name="password" value="{{ data.password }}" />
16
    <input type="hidden" name="accept" value="Login" />
17
  </form>
18
{% endblock %}
uauth/templates/uauth/meraki_login_successfull.html
1
{% extends "uauth/login_successfull.html" %}
2
{% load i18n %}
3

  
4
{% block content %}
5
  <h3>{% trans "You are successfully authenticated" %}</h3>
6
  {% if next_url %}
7
  <p>
8
  {% blocktrans %}
9
  You'll be redirected to {{ next_url }} shortly...
10
  {% endblocktrans %}
11
  </p>
12
  {% endif %}
13
  <form action="{{ hotspot_url }}?{{ params }}" method="post">
14
    <input type="hidden" name="username" value="{{ data.username }}" />
15
    <input type="hidden" name="password" value="{{ data.password }}" />
16
    <input type="hidden" name="accept" value="Login" />
17
  </form>
18
{% endblock %}
uauth/templates/uauth/pfsense_login_successful.html
1
{% extends "uauth/login_successful.html" %}
2
{% load i18n %}
3

  
4
{% block content %}
5
  <h3>{% trans "You are successfully authenticated" %}</h3>
6
  {% if next_url %}
7
  <p>
8
  {% blocktrans %}
9
  You'll be redirected to {{ next_url }} shortly...
10
  {% endblocktrans %}
11
  </p>
12
  {% endif %}
13
  <form action="{{ hotspot_url }}?{{ params }}" method="post">
14
    <input type="hidden" name="auth_user" value="{{ data.username }}" />
15
    <input type="hidden" name="auth_pass" value="{{ data.password }}" />
16
    <input type="hidden" name="accept" value="Continue" />
17
  </form>
18
{% endblock %}
uauth/templates/uauth/pfsense_login_successfull.html
1
{% extends "uauth/login_successfull.html" %}
2
{% load i18n %}
3

  
4
{% block content %}
5
  <h3>{% trans "You are successfully authenticated" %}</h3>
6
  {% if next_url %}
7
  <p>
8
  {% blocktrans %}
9
  You'll be redirected to {{ next_url }} shortly...
10
  {% endblocktrans %}
11
  </p>
12
  {% endif %}
13
  <form action="{{ hotspot_url }}?{{ params }}" method="post">
14
    <input type="hidden" name="auth_user" value="{{ data.username }}" />
15
    <input type="hidden" name="auth_pass" value="{{ data.password }}" />
16
    <input type="hidden" name="accept" value="Continue" />
17
  </form>
18
{% endblock %}
uauth/views.py
57 57
                                         'password': password
58 58
                                     }
59 59
                            })
60
                return render_to_response('uauth/%s_login_successfull.html' % organization.hotspot_type,
60
                return render_to_response('uauth/%s_login_successful.html' % organization.hotspot_type,
61 61
                                          context)
62 62
        return render_to_response('uauth/login_failed.html', context)
63 63

  

Formats disponibles : Unified diff