-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathnew_resource_not_draft.html
More file actions
23 lines (18 loc) · 973 Bytes
/
new_resource_not_draft.html
File metadata and controls
23 lines (18 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% extends "package/resource_edit_base.html" %}
{% block subtitle %}{{ _('Add resource') }} {{ g.template_title_delimiter }} {{ h.dataset_display_name(pkg) }}{% endblock %}
{% block form_title %}{{ _('Add resource') }}{% endblock %}
{% block breadcrumb_content %}
{{ super() }}
<li class="active"><a href="#">{{ _('Add New Resource') }}</a></li>
{% endblock %}
{% block form %}
{# (canada fork only): handle all errors in resource actions #}
{# TODO: upstream contrib?? #}
{% snippet resource_form_snippet, data=data, errors=errors, error_summary=error_summary, resource_validation_errors=resource_validation_errors, include_metadata=false, pkg_name=pkg_name, stage=stage, dataset_type=dataset_type %}
{% endblock %}
{% block content_primary_nav %}
<li class="active"><a href="#"><i class="fa fa-pencil"></i> {{ _('New resource') }}</a></li>
{% endblock %}
{% block secondary_content %}
{% snippet 'package/snippets/resource_help.html' %}
{% endblock %}