Skip to content

Commit

Permalink
[#586] Adds error_summary to add stage 3 and tidies up errors after b…
Browse files Browse the repository at this point in the history
…ootstrap upgrade
  • Loading branch information
johnmartin authored and amercader committed Mar 26, 2013
1 parent 56a9548 commit 420b692
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions ckan/public/base/less/forms.less
Expand Up @@ -372,11 +372,11 @@ textarea {
background: @errorBorder;
margin: -@inputBorderRadius 0 0;
color: @inputBackground;
width: 216px;
width: 208px;
}

.control-medium .error-block {
width: 326px;
width: 318px;
}

.control-full .error-block {
Expand All @@ -385,16 +385,15 @@ textarea {

.control-group.error .input-prepend .error-block,
.control-custom.error .error-block {
margin-left: -1px;
width: auto;
}

.control-custom.error .error-block {
width: 409px;
width: 401px;
}

.control-select.error .error-block {
width: 204px;
width: 196px;
}

// Stages
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/package/new_package_metadata.html
Expand Up @@ -2,4 +2,4 @@

{% block subtitle %}{{ _('Add metadata to the dataset') }}{% endblock %}

{% block form %}{{ h.snippet('package/snippets/package_metadata_form.html', data=data, errors=errors, include_metadata=false, pkg_name=pkg_name) }}{% endblock %}
{% block form %}{{ h.snippet('package/snippets/package_metadata_form.html', data=data, errors=errors, error_summary=error_summary, include_metadata=false, pkg_name=pkg_name) }}{% endblock %}

0 comments on commit 420b692

Please sign in to comment.