2018-11-26 21:09:04 +00:00
{% extends "administration/base.html" %}
2018-11-16 08:10:35 +00:00
{% load i18n %}
2018-11-26 21:09:04 +00:00
{% load utils %}
2018-12-26 16:17:24 +00:00
{% load admin_reflection %}
2018-11-16 08:10:35 +00:00
2018-11-26 21:09:04 +00:00
{% block content %}
< div class = "container" >
2019-02-25 12:31:11 +00:00
< h1 > < span class = "pficon-resource-pool" > < / span > {% trans "Sources" %}< / h1 >
2019-02-24 21:39:09 +00:00
< span > {% trans "External Sources which can be used to get Identities into passbook, for example Social Providers like Twiter and GitHub or Enterprise Providers like ADFS and LDAP." %}< / span >
< hr >
< div class = "dropdown" >
< button class = "btn btn-primary dropdown-toggle" type = "button" id = "createDropdown" data-toggle = "dropdown" >
{% trans 'Create...' %}
< span class = "caret" > < / span >
< / button >
< ul class = "dropdown-menu" role = "menu" aria-labelledby = "createDropdown" >
{% for type, name in types.items %}
< li role = "presentation" > < a role = "menuitem" tabindex = "-1"
2019-02-27 14:48:33 +00:00
href="{% url 'passbook_admin:source-create' %}?type={{ type }}& back={{ request.get_full_path }}">{{ name }}< / a > < / li >
2018-12-26 16:17:24 +00:00
{% endfor %}
2019-02-24 21:39:09 +00:00
< / ul >
< / div >
< hr >
< table class = "table table-striped table-bordered" >
< thead >
< tr >
< th > {% trans 'Name' %}< / th >
< th > {% trans 'Class' %}< / th >
2019-02-25 13:10:10 +00:00
< th > {% trans 'Additional Info' %}< / th >
2019-02-24 21:39:09 +00:00
< th > < / th >
< / tr >
< / thead >
< tbody >
{% for source in object_list %}
< tr >
< td > {{ source.name }}< / td >
< td > {{ source|fieldtype }}< / td >
2019-02-25 13:10:10 +00:00
< td > {{ source.additional_info }}< / td >
2019-02-24 21:39:09 +00:00
< td >
< a class = "btn btn-default btn-sm"
href="{% url 'passbook_admin:source-update' pk=source.uuid %}?back={{ request.get_full_path }}">{% trans 'Edit' %}< / a >
< a class = "btn btn-default btn-sm"
href="{% url 'passbook_admin:source-delete' pk=source.uuid %}?back={{ request.get_full_path }}">{% trans 'Delete' %}< / a >
{% get_links source as links %}
{% for name, href in links %}
< a class = "btn btn-default btn-sm"
href="{{ href }}?back={{ request.get_full_path }}">{% trans name %}< / a >
{% endfor %}
< / td >
< / tr >
{% endfor %}
< / tbody >
< / table >
2018-11-16 08:10:35 +00:00
< / div >
2018-12-18 12:27:01 +00:00
{% endblock %}