Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects

Add Mapping Saml configuration UI

Merged Vincent SIMONIN requested to merge saml_config_ui into main
7 files
+ 236
101
Compare changes
  • Side-by-side
  • Inline
Files
7
{% extends 'generic/object.html' %}
{% block extra_controls %}
<a href="{% url 'plugins:netbox_rps_plugin:httpheader_add' %}?mapping={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-sm btn-primary">
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add HTTP Header
</a>
<a href="{% url 'plugins:netbox_rps_plugin:httpheader_add' %}?mapping={{ object.pk }}&return_url={{ object.get_absolute_url }}"
class="btn btn-sm btn-primary">
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add HTTP Header
</a>
{% if not object.saml_config %}
<a href="{% url 'plugins:netbox_rps_plugin:samlconfig_add' %}?mapping={{ object.pk }}&return_url={{ object.get_absolute_url }}"
class="btn btn-sm btn-primary">
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add <abbr
title="Security Assertion Markup Language">SAML</abbr> Configuration
</a>
{% endif %}
{% endblock %}
{% block content %}
<div class="row mb-3">
<div class="col col-md-6">
<div class="card">
<h5 class="card-header">MAPPINGS</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<tr>
<th scope="row">Name</th>
<td>{{ object.source }}</td>
</tr>
<tr>
<th scope="row">Comment</th>
<td>
{% if object.Comment %}
{{ object.Comment }}
<div class="row mb-3">
<div class="col col-md-6">
<div class="card">
<h5 class="card-header">MAPPINGS</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<tr>
<th scope="row">Name</th>
<td>{{ object.source }}</td>
</tr>
<tr>
<th scope="row">Comment</th>
<td>
{% if object.Comment %}
{{ object.Comment }}
{% else %}
{{ ''|placeholder }}
{{ ''|placeholder }}
{% endif %}
</td>
</tr>
</table>
</div>
</tr>
</table>
</div>
{% include 'inc/panels/custom_fields.html' %}
{% include 'inc/panels/tags.html' %}
</div>
<div class="col col-md-6">
<div class="card">
<h5 class="card-header">Details</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<tr>
<th scope="row">Source</th>
<td>{{ object.source }}</td>
</tr>
<tr>
<th scope="row">Target</th>
<td>{{ object.target }}</td>
</tr>
<tr>
<th scope="row">Authentication</th>
<td>{{ object.authentication }}</td>
</tr>
<tr>
<th scope="row">Testing page</th>
<td>{{ object.testingpage }}</td>
</tr>
<tr>
<th scope="row">Webdav</th>
<td>{{ object.webdav }}</td>
</tr>
<tr>
<th scope="row">Comment</th>
<td>
{% if object.Comment %}
{{ object.Comment }}
{% else %}
{{ ''|placeholder }}
{% endif %}
</td>
</tr>
</table>
</div>
{% include 'inc/panels/custom_fields.html' %}
{% include 'inc/panels/tags.html' %}
</div>
<div class="col col-md-6">
<div class="card">
<h5 class="card-header">Details</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<tr>
<th scope="row">Source</th>
<td>{{ object.source }}</td>
</tr>
<tr>
<th scope="row">Target</th>
<td>{{ object.target }}</td>
</tr>
<tr>
<th scope="row">Authentication</th>
<td>{{ object.authentication }}</td>
</tr>
<tr>
<th scope="row">Testing page</th>
<td>{{ object.testingpage }}</td>
</tr>
<tr>
<th scope="row">Webdav</th>
<td>{{ object.webdav }}</td>
</tr>
<tr>
<th scope="row">Comment</th>
<td>
{% if object.Comment %}
{{ object.Comment }}
{% else %}
{{ ''|placeholder }}
{% endif %}
</td>
</tr>
</table>
</div>
</div>
{% if object.saml_config %}
<div class="card">
<h5 class="card-header">SAML Configuration</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<tr>
<th scope="row">ACS URL</th>
<td>{{ object.saml_config.acs_url }}</td>
</tr>
<tr>
<th scope="row">Logout URL</th>
<td>{{ object.saml_config.logout_url }}</td>
</tr>
<tr>
<th scope="row">Force AuthnRequest</th>
<td>{{ object.saml_config.force_nauth }}</td>
</tr>
</table>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock content %}
Loading