File: disco.twig

package info (click to toggle)
simplesamlphp 1.19.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 43,240 kB
  • sloc: php: 200,806; javascript: 15,025; xml: 3,336; sh: 265; perl: 82; makefile: 70; python: 5
file content (56 lines) | stat: -rw-r--r-- 2,688 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{% set pagetitle = 'selectidp'|trans %}
{% extends "base.twig" %}

{% block preload %}
    <link rel="stylesheet" media="screen" href="/{{ baseurlpath }}module.php/discopower/assets/css/uitheme1.12.1/jquery-ui.min.css">
    <link rel="stylesheet" media="screen" href="/{{ baseurlpath }}module.php/discopower/assets/css/disco.css">
{% endblock %}
{% block postload %}
    <script src="/{{ baseurlpath }}module.php/discopower/assets/js/jquery-ui-1.12.1.min.js"></script>
    <script src="/{{ baseurlpath }}module.php/discopower/assets/js/jquery.livesearch.js"></script>
    <script src="/{{ baseurlpath }}module.php/discopower/assets/js/{{ score }}.js"></script>
    <script src="/{{ baseurlpath }}module.php/discopower/assets/js/tablist.js"></script>
{% endblock %}

{% block content %}
    {% if faventry is not empty %}
    <div class="favourite">{{ '{disco:previous_auth}'|trans }}
        <strong>{{ faventry.translated|escape('html') }}</strong>
        <form id="idpselectform" method="get" action="{{ urlpattern }}">
            <input type="hidden" name="entityID" value="{{ entityID|escape('html') }}" />
            <input type="hidden" name="return" value="{{ return|escape('html') }}" />
            <input type="hidden" name="returnIDParam" value="{{ returnIDParam|escape('html') }}" />
            <input type="hidden" name="idpentityid" value="{{ faventry.entityid|escape('html') }}" />
            <input type="submit" name="formsubmit" id="favouritesubmit" value="{{ '{disco:login_at}'|trans }} {{ faventry.translated|escape('html') }}" />
    </form>
    </div>
    {% endif %}

    <div id="tabdiv">
        <ul class="tabset_tabs">
        {% for tab, idps in idplist %}
            {% if idps is not empty %}
            <li class="tab-link{% if loop.first %}current{% endif %}" data-tab="{{ tab }}"><a href="#{{ tab }}"><span>{{ tabNames[tab]|trans }}</span></a></li>
            {% endif %}
        {% endfor %}
        </ul>

        {% for tab, idps in idplist %}
        {% if idps is not empty %}
          <div id="{{ tab }}" class="tabset_content{% if loop.first %} current{% endif %}">
          <div class="inlinesearch">
              <p>{{ '{discopower:tabs:incremental_search}'|trans }}</p>
              <form id="idpselectform" method="get">
                  <input class="inlinesearch" type="text" value="" name="query_{{ tab }}" id="query_{{ tab }}" />
              </form>
          </div>
          <div class="metalist" id="list_{{ tab }}">
          {% for entityid, entity in idps %}
              {{ entity.html|raw }}
          {% endfor %}
          </div>
          </div>
        {% endif %}
        {% endfor %}
    </div>
{% endblock %}