{#- To do (0.6.0): the datasets that lack a publisher and/or a contact point, where an editor sets them. Each row the viewer may edit has a box and its own choices; the same bar above and below the list holds the choices for the ticked rows, so it is seen at once and still at hand after a long list. One Save, in either bar, saves it all: every row's own choices, and the bar's choices on the ticked rows (a row's own choice comes first; views._todo_plan). Only what a row lacks can be chosen, and nothing already set is overwritten (cleanup.assign); what is set has an Edit link to the dataset's form, and what is missing stands out. ``assign`` comes from views._assign_choices and is none when the viewer may edit none of the rows. A search and filters on tags (all of them) and organisations (any of them) narrow the list, so datasets on one theme can get the same publisher or contact point at once. Every link and form of the page leads back to the filters or the list, not to the top of the page, and the messages of a save are shown at the list. With JavaScript (assign-links.js): "Select all", a count on the Save button, rows marked while ticked or chosen and not saved, a question before leaving the page with any of that unsaved, "Create new…" in each list and the scroll position kept over a save; (todo-filters.js) the filters apply as soon as something is chosen. The second tab is the clean-up page. -#} {% extends "actor_registry/base.html" %} {% block subtitle %}{{ _('To do') }}{% endblock %} {% block breadcrumb_content %}
{{ _('Select datasets in the list and choose here what they should get. Save saves this and the choices on every row. Only what is missing is filled in.') }}
{% endif %}{{ _('Datasets that lack a publisher or a contact point. Choose on the rows, or select several datasets and choose what they should all get, and save it all at once. Only what is missing can be set here; to change what is already set, use Edit on the row.') }}
{% if facets.chosen %}{%- if facets.tags or filters.tag %}{{ _('Choose a tag to add it. With several tags, the list shows the datasets that have all of them.') }} {% endif -%} {%- if facets.organizations or filters.org %}{{ _('With several organizations, it shows the datasets of any of them.') }} {% endif -%} {{ _('Remove a filter with ×.') }}
{% endif %} {% set show_text = _('Show datasets that lack') %}{{ _('No datasets match the filters.') if filters else _('Nothing to do here.') }}
{% else %} {% if assign %} {#- "Create new…" in a list opens one of these (assign-links.js); it is saved at once, like the dataset form's quick create, and chosen in that list. -#} {% for kind, title, endpoint in [('publisher', _('New publisher'), h.url_for('actor_registry.actors_quick_create')), ('contact_point', _('New contact point'), h.url_for('actor_registry.contactpoints_quick_create'))] %} {% endfor %} {% endif %} {{ pager.pager() }} {% endif %} {% endblock %}