2018-06-28 13:48:12 -04:00
|
|
|
{% extends base_template %}
|
|
|
|
{% load helpers %}
|
2020-01-25 15:56:24 +00:00
|
|
|
{% load static %}
|
2018-06-28 13:48:12 -04:00
|
|
|
|
|
|
|
{% block title %}{{ block.super }} - Config Context{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<strong>Rendered Context</strong>
|
2020-01-25 15:56:24 +00:00
|
|
|
{% include 'extras/inc/configcontext_format.html' %}
|
2018-06-28 13:48:12 -04:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2020-04-24 12:01:41 -04:00
|
|
|
{% include 'extras/inc/configcontext_data.html' with data=rendered_context format=format %}
|
2018-06-28 13:48:12 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="panel panel-default">
|
2018-09-16 00:25:20 -04:00
|
|
|
<div class="panel-heading">
|
|
|
|
<strong>Local Context</strong>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2020-11-19 11:29:18 -05:00
|
|
|
{% if object.local_context_data %}
|
|
|
|
{% include 'extras/inc/configcontext_data.html' with data=object.local_context_data format=format %}
|
2018-09-16 00:25:20 -04:00
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">None</span>
|
|
|
|
{% endif %}
|
2018-09-18 11:52:12 -04:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
2018-09-16 00:25:20 -04:00
|
|
|
<span class="help-block">
|
2020-11-06 14:33:20 -05:00
|
|
|
<i class="mdi mdi-information-outline"></i>
|
2018-09-16 00:25:20 -04:00
|
|
|
The local config context overwrites all source contexts.
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
2018-06-28 13:48:12 -04:00
|
|
|
<div class="panel-heading">
|
|
|
|
<strong>Source Contexts</strong>
|
|
|
|
</div>
|
|
|
|
{% for context in source_contexts %}
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="pull-right">
|
|
|
|
<span class="text-muted">{{ context.weight }}</span>
|
|
|
|
</div>
|
|
|
|
<a href="{{ context.get_absolute_url }}"><strong>{{ context.name }}</strong></a>
|
2018-06-29 09:44:32 -04:00
|
|
|
{% if context.description %}
|
|
|
|
<br /><small>{{ context.description }}</small>
|
|
|
|
{% endif %}
|
2020-04-24 12:01:41 -04:00
|
|
|
{% include 'extras/inc/configcontext_data.html' with data=context.data format=format %}
|
2018-06-28 13:48:12 -04:00
|
|
|
</div>
|
2018-07-10 16:16:23 -04:00
|
|
|
{% empty %}
|
|
|
|
<div class="panel-body">
|
|
|
|
<span class="text-muted">None found</span>
|
|
|
|
</div>
|
2018-06-28 13:48:12 -04:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|