authorization_page.html 1.03 KB
Newer Older
1 2 3 4 5 6 7
<html>
  <head>
    <link href="/static/style.css" rel="stylesheet" type="text/css">
  </head>
  <body>
    <div class="auth">
      <h1>Allow applications from {{ origin }} to access the WebDAV (by setting a cookie)? </h1>
8

9 10 11
      <p>{% if back_url %}
      You will then be redirected to '{{ back_url }}'.
      {% endif %}</p>
12 13


14 15 16 17 18 19 20 21 22 23 24 25
      <div class="list">
          {% if cookie_list %}
          List of other authorized origins:
              <ul>
                  {% for cookie in cookie_list %}
                  <li> {{ cookie }} </li>
                  {% endfor %}
              </ul>
          {% else %}
          No other origins are authorized to access the WebDAV server.
          {% endif %}
      </div>
26

27 28
      <form action="" method="post">
          <p class="cookie_reset {% if not cookie_list %}hidden{% endif %}"> <input type="checkbox" name="continue" value="true" checked> Continue allowing origins listed above </p>
29
          <button name="accept" value="ok">Allow this origin!</button>
30 31 32
      </form>
    </div>
  </body>
33
</html>