Skip to content

Commit

Permalink
Working group_list.html
Browse files Browse the repository at this point in the history
  • Loading branch information
toavina committed Nov 15, 2024
1 parent 089f7a8 commit fe35d30
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ckanext/dms/templates/package/group_list.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{% ckan_extends %}
{% extends "package/read_base.html" %}
{% import 'macros/form.html' as form %}

{% block primary_content_inner %}
<h2 class="hide-heading">{{ _('Categories') }}</h2>

{% if group_dropdown %}
<form class="add-to-group" method="post">
{{ h.csrf_input() }}
<select id="field-add_group" name="group_added" data-module="autocomplete">
{% for option in group_dropdown %}
<option value="{{ option[0] }}"> {{ option[1] }}</option>
Expand All @@ -17,10 +18,11 @@ <h2 class="hide-heading">{{ _('Categories') }}</h2>

{% if pkg_dict.groups %}
<form method="post">
{{ h.csrf_input() }}
{% snippet 'group/snippets/group_list.html', groups=pkg_dict.groups %}
</form>
{% else %}
<p class="empty">{{ _('There are no categories associated with this dataset') }}</p>
{% endif %}

{% endblock %}
{% endblock %}

0 comments on commit fe35d30

Please sign in to comment.