Skip to content

Commit

Permalink
[#1030] Tweaks to labels in tabbed headers, breadcrumbs and forms
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Oct 3, 2013
1 parent eddd661 commit ef068dc
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ckan/templates/admin/config.html
Expand Up @@ -10,7 +10,7 @@
<div class="form-actions">
{% set locale = h.dump_json({'content': _('Are you sure you want to reset the config?')}) %}
<a href="{% url_for controller='admin', action='reset_config' %}" class="btn btn-danger pull-left" data-module="confirm-action" data-module-i18n="{{ locale }}">{{ _('Reset') }}</a>
<button type="submit" class="btn btn-primary" name="save">{{ _('Update') }}</button>
<button type="submit" class="btn btn-primary" name="save">{{ _('Update Config') }}</button>
</div>
</form>
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/group/edit.html
Expand Up @@ -4,7 +4,7 @@
<li>{% link_for _('Groups'), controller='group', action='index' %}</li>
{% block breadcrumb_content_inner %}
<li>{% link_for group.display_name|truncate(35), controller='group', action='read', id=group.name %}</li>
<li class="active">{% link_for _('Edit'), controller='group', action='edit', id=group.name %}</li>
<li class="active">{% link_for _('Manage'), controller='group', action='edit', id=group.name %}</li>
{% endblock %}
{% endblock %}

Expand Down
4 changes: 2 additions & 2 deletions ckan/templates/group/edit_base.html
Expand Up @@ -6,12 +6,12 @@
<li>{% link_for _('Groups'), controller='group', action='index' %}</li>
{% block breadcrumb_content_inner %}
<li>{% link_for group.display_name|truncate(35), controller='group', action='read', id=group.name %}</li>
<li class="active">{% link_for _('Edit'), controller='group', action='edit', id=group.name %}</li>
<li class="active">{% link_for _('Manage'), controller='group', action='edit', id=group.name %}</li>
{% endblock %}
{% endblock %}

{% block content_action %}
{% link_for _('View group'), controller='group', action='read', id=c.group_dict.name, class_='btn', icon='eye-open' %}
{% link_for _('View'), controller='group', action='read', id=c.group_dict.name, class_='btn', icon='eye-open' %}
{% endblock %}

{% block content_primary_nav %}
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/group/new.html
Expand Up @@ -2,7 +2,7 @@

{% block subtitle %}{{ _('Create a Group') }}{% endblock %}

{% block breadcrumb_link %}{{ h.nav_link(_('Create Group'), controller='group', action='edit', id=c.group.name) }}{% endblock %}
{% block breadcrumb_link %}{{ h.nav_link(_('Create a Group'), controller='group', action='edit', id=c.group.name) }}{% endblock %}

{% block page_heading %}{{ _('Create a Group') }}{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/group/read_base.html
Expand Up @@ -9,7 +9,7 @@

{% block content_action %}
{% if h.check_access('group_update', {'id': c.group_dict.id}) %}
{% link_for _('Edit'), controller='group', action='edit', id=c.group_dict.name, class_='btn', icon='wrench' %}
{% link_for _('Manage'), controller='group', action='edit', id=c.group_dict.name, class_='btn', icon='wrench' %}
{% endif %}
{% endblock %}

Expand Down
5 changes: 2 additions & 3 deletions ckan/templates/organization/edit_base.html
Expand Up @@ -8,15 +8,14 @@
<li>{% link_for _('Organizations'), controller='organization', action='index' %}</li>
{% block breadcrumb_content_inner %}
<li>{% link_for organization.display_name|truncate(35), controller='organization', action='read', id=organization.name %}</li>
<li class="active">{% link_for _('Admin'), controller='organization', action='edit', id=organization.name %}</li>
<li class="active">{% link_for _('Manage'), controller='organization', action='edit', id=organization.name %}</li>
{% endblock %}
{% endblock %}

{% block content_action %}
{% if organization and h.check_access('organization_update', {'id': organization.id}) %}
{% link_for _('View organization'), controller='organization', action='read', id=organization.name, class_='btn', icon='eye-open' %}
{% link_for _('View'), controller='organization', action='read', id=organization.name, class_='btn', icon='eye-open' %}
{% endif %}
{# <li>{% link_for _('History'), controller='organization', action='history', id=organization.name, class_='btn', icon='undo' %}</li> #}
{% endblock %}

{% block content_primary_nav %}
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/organization/read_base.html
Expand Up @@ -9,7 +9,7 @@

{% block content_action %}
{% if h.check_access('organization_update', {'id': c.group_dict.id}) %}
{% link_for _('Admin'), controller='organization', action='edit', id=c.group_dict.name, class_='btn', icon='wrench' %}
{% link_for _('Manage'), controller='organization', action='edit', id=c.group_dict.name, class_='btn', icon='wrench' %}
{% endif %}
{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/package/read_base.html
Expand Up @@ -16,7 +16,7 @@

{% block content_action %}
{% if h.check_access('package_update', {'id':pkg.id }) %}
{% link_for _('Edit'), controller='package', action='edit', id=pkg.name, class_='btn', icon='wrench' %}
{% link_for _('Manage'), controller='package', action='edit', id=pkg.name, class_='btn', icon='wrench' %}
{% endif %}
{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/package/resource_read.html
Expand Up @@ -27,7 +27,7 @@
<ul>
{% block resource_actions_inner %}
{% if h.check_access('package_update', {'id':pkg.id }) %}
<li>{% link_for _('Edit'), controller='package', action='resource_edit', id=pkg.name, resource_id=res.id, class_='btn', icon='wrench' %}</li>
<li>{% link_for _('Manage'), controller='package', action='resource_edit', id=pkg.name, resource_id=res.id, class_='btn', icon='wrench' %}</li>
{% endif %}
{% if res.url %}
<li>
Expand Down
3 changes: 0 additions & 3 deletions ckan/templates/package/snippets/package_form.html
Expand Up @@ -38,9 +38,6 @@
<a class="btn btn-danger pull-left" href="{% url_for controller='package', action='delete', id=data.id %}" data-module="confirm-action" data-module-i18n="{{ locale }}">{% block delete_button_text %}{{ _('Delete') }}{% endblock %}</a>
{% endif %}
{% endblock %}
{% block cancel_button %}
<a class="btn" href="">{% block cancel_button_text %}{{ _('Cancel') }}{% endblock %}</a>
{% endblock %}
<button class="btn btn-primary" type="submit" name="save">{% block save_button_text %}{{ _('Next: Add Data') }}{% endblock %}</button>
</div>
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/user/snippets/login_form.html
Expand Up @@ -24,6 +24,6 @@
{{ form.checkbox('remember', label=_("Remember me"), id='field-remember', checked=true, value="63072000") }}

<div class="form-actions">
<button class="btn btn-primary" type="submit">{{ _('Log in') }}</button>
<button class="btn btn-primary" type="submit">{{ _('Login') }}</button>
</div>
</form>

0 comments on commit ef068dc

Please sign in to comment.