Skip to content

Commit

Permalink
Template tweak so that the correct help text appears on the correct p…
Browse files Browse the repository at this point in the history
…ages
  • Loading branch information
johnmartin authored and tobes committed Dec 20, 2012
1 parent 8552974 commit 7514904
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
16 changes: 1 addition & 15 deletions ckan/templates/group/base_form_page.html
@@ -1,4 +1,4 @@
{% extends "page.html" %}
{% extends "group/index.html" %}

{% block breadcrumb_content %}
<li>{{ h.nav_link(_('Groups'), controller='group', action='index') }}</li>
Expand All @@ -15,17 +15,3 @@ <h1 class="page-heading">{% block page_heading %}{{ _('Group Form') }}{% endbloc
</div>
</div>
{% endblock %}

{% block secondary_content %}
<div class="module module-narrow module-shallow">
<h2 class="module-heading"><i class="icon-large icon-info-sign"></i> {{ _('What are Groups?') }}</h2>
<div class="module-content">
{% trans %}
<p>Whilst tags are great at collecting datasets together, there are
occasions when you want to restrict users from editing a collection.</p>
<p>A group can be set-up to specify which users have permission to add or
remove datasets from it.</p>
{% endtrans %}
</div>
</div>
{% endblock %}
6 changes: 6 additions & 0 deletions ckan/templates/organization/edit.html
Expand Up @@ -3,3 +3,9 @@
{% block subtitle %}{{ _('Edit a Organization') }}{% endblock %}

{% block page_heading %}{{ _('Edit a Organization') }}{% endblock %}

{% block secondary_content %}
{% if organization %}
{% snippet 'snippets/organization.html', organization=organization %}
{% endif %}
{% endblock %}
3 changes: 2 additions & 1 deletion ckan/templates/organization/edit_base.html
@@ -1,4 +1,4 @@
{% extends "page.html" %}
{% extends "organization/index.html" %}

{% set organization = c.group_dict %}

Expand Down Expand Up @@ -43,6 +43,7 @@
{% endblock %}

{% block secondary_content %}
{{ super() }}
{% if organization %}
{% snippet 'snippets/organization.html', organization=organization %}
{% endif %}
Expand Down

0 comments on commit 7514904

Please sign in to comment.