Skip to content
Snippets Groups Projects
Commit 4e28ef4a authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Add missing headers in core module federation homepage & fix style of lookup form

parent f6e8c23f
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
{% include "@core/_frontpage_menu.twig" %} {% include "@core/_frontpage_menu.twig" %}
{% if metaentries.hosted is iterable and metaentries.hosted is not empty %} {% if metaentries.hosted is iterable and metaentries.hosted is not empty %}
<h2>{% trans %}Hosted entities{% endtrans %}</h2>
<dl> <dl>
{% for key, set in metaentries.hosted %} {% for key, set in metaentries.hosted %}
{% set metadataset = attribute(set, 'metadata-set') %} {% set metadataset = attribute(set, 'metadata-set') %}
...@@ -32,6 +33,7 @@ ...@@ -32,6 +33,7 @@
{% endif %} {% endif %}
{% if metaentries.remote is iterable and metaentries.remote is not empty %} {% if metaentries.remote is iterable and metaentries.remote is not empty %}
<h2>{% trans %}Trusted entities{% endtrans %}</h2>
{% for key, set in metaentries.remote %} {% for key, set in metaentries.remote %}
<fieldset class="fancyfieldset"> <fieldset class="fancyfieldset">
<legend>{{ mtype[key]|trans }} (Trusted)</legend> <legend>{{ mtype[key]|trans }} (Trusted)</legend>
...@@ -64,21 +66,19 @@ ...@@ -64,21 +66,19 @@
</ul> </ul>
{% if isadmin %} {% if isadmin %}
<fieldset class="fancyfieldset"> <form action="{{ metadata_url }}" method="get" class="pure-form">
<legend>Lookup metadata</legend> <p>Look up metadata for entity:
<form action="{{ metadata_url }}" method="get"> <select name="set">
<p>Look up metadata for entity: {% if metaentries.remote is defined and metaentries.remote is not empty %}
<select name="set"> {% for key, set in metaentries.remote %}
{% if metaentries.remote is defined and metaentries.remote is not empty %} <option value="{{ key|escape('html') }}">{{ mtype[key]|trans }}</option>
{% for key, set in metaentries.remote %} {% endfor %}
<option value="{{ key|escape('html') }}">{{ mtype[key]|trans }}</option> {% endif %}
{% endfor %} </select>
{% endif %} <input type="text" name="entityid" class="edge">
</select> <button class="pure-button pure-button-red" type="submit">Lookup</button>
<input type="text" name="entityid" /> </p>
<button class="btn" type="submit">Lookup </button> </form>
</p>
</form>
</fieldset> </fieldset>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
...@@ -44,6 +44,7 @@ $allLinks = [ ...@@ -44,6 +44,7 @@ $allLinks = [
$metadataHosted = []; $metadataHosted = [];
\SimpleSAML\Module::callHooks('metadata_hosted', $metadataHosted); \SimpleSAML\Module::callHooks('metadata_hosted', $metadataHosted);
var_dump($metadataHosted);
$metadata = \SimpleSAML\Metadata\MetaDataStorageHandler::getMetadataHandler(); $metadata = \SimpleSAML\Metadata\MetaDataStorageHandler::getMetadataHandler();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment