[ckan-changes] [ckan/ckan] ea74e4: [#5152] Clear the upload and url_type fields if th...
Adrià Mercader
noreply at github.com
Fri Jan 10 14:45:24 UTC 2020
Branch: refs/heads/5152-wrong-resource-url
Home: https://github.com/ckan/ckan
Commit: ea74e42f6be4bc89a3ad89f367a47ce0bcd2b761
https://github.com/ckan/ckan/commit/ea74e42f6be4bc89a3ad89f367a47ce0bcd2b761
Author: amercader <amercadero at gmail.com>
Date: 2020-01-10 (Fri, 10 Jan 2020)
Changed paths:
M ckan/views/resource.py
Log Message:
-----------
[#5152] Clear the upload and url_type fields if there is a ValidationError
Also add a custom error that we can use to show a warning in the
template that users need to resubmit the file
Commit: 095b2001d390556cae834fdfbfd6fde6658f8330
https://github.com/ckan/ckan/commit/095b2001d390556cae834fdfbfd6fde6658f8330
Author: amercader <amercadero at gmail.com>
Date: 2020-01-10 (Fri, 10 Jan 2020)
Changed paths:
M ckan/public/base/css/fuchsia.css
M ckan/public/base/css/green.css
M ckan/public/base/css/main.css
M ckan/public/base/css/maroon.css
M ckan/public/base/css/red.css
M ckan/public/base/javascript/modules/image-upload.js
M ckan/public/base/less/forms.less
M ckan/templates/macros/form.html
M ckan/templates/package/snippets/resource_form.html
Log Message:
-----------
[#5152] Show a warning if there was an upload and validation errors
The previously selected File is lost and it's easy to miss it, so add a
little warning under the File button warning users to resubmit it
Compare: https://github.com/ckan/ckan/compare/ea74e42f6be4%5E...095b2001d390
More information about the ckan-changes
mailing list