{% extends "organization/edit_base.html" %} {% block subtitle -%} {{ ui.subtitle_item(_('Bulk Process')) }} {{- super() }} {%- endblock %} {% block primary_content_inner %} {%- call ui.util.call(ui.section, title=_("Bulk Process"), level=1) -%} {%- call ui.util.call(ui.form, method="POST") -%} {% if packages %} {%- call ui.util.call(ui.table, striped=true) -%} {{ ui.checkbox(name="bulk_process.select_all", value="all", label="", checked=false) }} {{ _('Dataset') }} {{ _('Status') }} {% for pkg in packages %} {{ ui.checkbox(name="dataset_" ~ pkg.id, label=" ") }} {{ ui.link(pkg.title or pkg.name, href=h.url_for(pkg.type ~ '.read', id=pkg.name)) }} {% if pkg.notes %}

{{ h.markdown_extract(pkg.notes, extract_length=80) }}

{% endif %} {% if pkg.state == 'deleted' %} {{ _('Deleted') }} {% elif pkg.private %} {{ _('Private') }} {% else %} {{ _('Public') }} {% endif %} {% endfor %} {%- endcall %} {%- call ui.util.call(ui.form_actions) -%} {%- call ui.util.call(ui.button_group) -%} {{ ui.button(_('Make public'), icon="eye", type="submit", attrs={"name": "bulk_action.public", "value": "public"}) }} {{ ui.button(_('Make private'), icon="eye-slash", type="submit", attrs={"name": "bulk_action.private", "value": "private"}) }} {{ ui.button(_('Delete'), style="danger", icon="times", type="submit", attrs={"name": "bulk_action.delete", "value": "delete"}) }} {%- endcall %} {%- endcall %} {% else %} {{ ui.empty(_('This organization has no datasets associated to it')) }} {% endif %} {%- endcall %} {{ ui.pagination(page=page.page, total=page.last_page, url_params={"id": group_dict.name}) }} {%- endcall %} {% endblock %}