-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[2445] Update the related edit page to share the templates
- Loading branch information
Showing
1 changed file
with
5 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,8 @@ | ||
<!DOCTYPE html> | ||
<html | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:i18n="http://genshi.edgewall.org/i18n" | ||
xmlns:py="http://genshi.edgewall.org/" | ||
xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
<!--! Include matchers nearest first --> | ||
<xi:include href="../page.html" /> | ||
{% extends "related/pages/related_form_page.html" %} | ||
|
||
<!--! Now include the current page --> | ||
<head> | ||
<title>Edit a related item</title> | ||
</head> | ||
<body> | ||
<div class="toolbar"> | ||
${h.snippet('package/new_breadcrumb.html')} | ||
</div> | ||
|
||
<div class="primary"> | ||
<section class="module"> | ||
<div class="content"> | ||
${c.form} | ||
</div> | ||
</section> | ||
</div> | ||
|
||
<div class="secondary"> | ||
<section class="module"> | ||
<h2 class="heading"><i class="ckan-icon ckan-icon-info"></i> What are related items?</h2> | ||
<div class="content"> | ||
<p>Related Media is any app, article, visualisation or idea related to this dataset. For example, it could be a custom visualisation, pictograph or bar chart, an app using all or part of the data or even a news story that references this dataset.</p> | ||
</div> | ||
</section> | ||
</div> | ||
|
||
</body> | ||
</html> | ||
{% block title %}Edit related item - {{ super() }}{% endblock %} | ||
|
||
{# TODO: pass the same context in here so we can create links #} | ||
{% block breadcrumb_item %}{{ h.nav_link(_('Edit Related'), controller='related', action='edit', id=c.id, related_id="") }}{% endblock %} | ||
|
||
{% block page_heading %}{{ _('Edit Related Item') }}{% endblock %} |