CottageLabs / uniboard

UniBoard project
0 stars 0 forks source link

Some data not carried over when create form fails #42

Closed richard-jones closed 10 years ago

richard-jones commented 10 years ago

The following fields need to be re-entered when the create form fails:

Nimphal commented 10 years ago

This issue also crops up when a user tries to edit an advert.

Nimphal commented 10 years ago

If there is an error in the form while submitting, there is no way to keep the upload file. All modern browsers do not allow prepopulating of the upload field (for obvious security reasons) and the image does not get uploaded until the form is validated. So in the case of the form validation failure, I see no other way except to have users re-select the image they wish to upload.

Nimphal commented 10 years ago

When submitting a new advert, errors in the form no longer result in lost data (except in the upload field as discussed above). When editing an advert, the user is presented with the current advert image and the opportunity to upload a new one. The subject field now displays the data stored.

richard-jones commented 10 years ago

I'm going to suggest some tweaks to how the image placeholder works, so just re-opening this to remind myself. Will fill in the details when I've merged the generalised sale branch back into the master