Skip to content

Commit

Permalink
[2445] Update the related edit page to share the templates
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Jun 5, 2012
1 parent 7309f84 commit b8367db
Showing 1 changed file with 5 additions and 36 deletions.
41 changes: 5 additions & 36 deletions ckan/templates/related/edit.html
@@ -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 %}

0 comments on commit b8367db

Please sign in to comment.