2023-07-19 10:26:24 -04:00
|
|
|
{% extends 'generic/object.html' %}
|
|
|
|
{% load helpers %}
|
|
|
|
{% load plugins %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col col-md-6">
|
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">Custom Field Choice Set</h5>
|
2024-01-17 16:25:42 -05:00
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Name</th>
|
|
|
|
<td>{{ object.name }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Description</th>
|
|
|
|
<td>{{ object.description|markdown|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Base Choices</th>
|
|
|
|
<td>{{ object.get_base_choices_display|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Choices</th>
|
|
|
|
<td>{{ object.choices|length }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Order Alphabetically</th>
|
|
|
|
<td>{% checkmark object.order_alphabetically %}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Used by</th>
|
|
|
|
<td>
|
|
|
|
<ul class="list-unstyled mb-0">
|
|
|
|
{% for cf in object.choices_for.all %}
|
|
|
|
<li>{{ cf|linkify }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2023-07-19 10:26:24 -04:00
|
|
|
</div>
|
|
|
|
{% plugin_left_page object %}
|
|
|
|
</div>
|
|
|
|
<div class="col col-md-6">
|
|
|
|
<div class="card">
|
2023-07-28 11:24:21 -04:00
|
|
|
<h5 class="card-header">Choices ({{ object.choices|length }})</h5>
|
2024-01-17 16:25:42 -05:00
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Value</th>
|
|
|
|
<th>Label</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{% for value, label in choices %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ value }}</td>
|
|
|
|
<td>{{ label }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% include 'inc/paginator.html' with page=choices %}
|
2023-07-19 10:26:24 -04:00
|
|
|
</div>
|
|
|
|
{% plugin_right_page object %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col col-md-12">
|
|
|
|
{% plugin_full_width_page object %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|