-
Notifications
You must be signed in to change notification settings - Fork 2k
/
resource_edit_base.html
40 lines (32 loc) · 1.41 KB
/
resource_edit_base.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{% extends "package/base.html" %}
{% set logged_in = true if c.userobj else false %}
{% set res = c.resource %}
{% block breadcrumb_content_selected %}{% endblock %}
{% block breadcrumb_content %}
{{ super() }}
<li>{% link_for h.resource_display_name(res)|truncate(30), controller='package', action='resource_read', id=pkg.name, resource_id=res.id %}</li>
<li class="active"><a href="">{{ _('Edit') }}</a></li>
{% endblock %}
{% block content_action %}
{% link_for _('All resources'), controller='package', action='resources', id=pkg.name, class_='btn', icon='arrow-left' %}
{% if res %}
{% link_for _('View resource'), controller='package', action='resource_read', id=pkg.name, resource_id=res.id, class_='btn', icon='eye-open' %}
{% endif %}
{% endblock %}
{% block content_primary_nav %}
{{ h.build_nav_icon('resource_edit', _('Edit resource'), id=pkg.name, resource_id=res.id) }}
{% if 'datapusher' in g.plugins %}
{{ h.build_nav_icon('resource_data', _('Resource Data'), id=pkg.name, resource_id=res.id) }}
{% endif %}
{% endblock %}
{% block primary_content_inner %}
<h1 class="hide-heading">{% block form_title %}{{ _('Edit resource') }}{% endblock %}</h1>
{% block form %}{% endblock %}
{% endblock %}
{% block secondary_content %}
{% snippet 'package/snippets/resource_info.html', res=res %}
{% endblock %}
{% block scripts %}
{{ super() }}
{% resource 'vendor/fileupload' %}
{% endblock %}