Skip to content
This repository was archived by the owner on Jan 26, 2021. It is now read-only.

Non-uniform behaviour in forms when they are reloaded #350

Closed
smarshy opened this issue Jun 25, 2016 · 7 comments
Closed

Non-uniform behaviour in forms when they are reloaded #350

smarshy opened this issue Jun 25, 2016 · 7 comments
Labels
Type: Bug Bug or Bug fixes. Type: Testing UI Tests, Integration Tests, Travis CI, etc.

Comments

@smarshy
Copy link
Contributor

smarshy commented Jun 25, 2016

When incorrect values are entered in the fields, in some situations the form values are erased while in other cases they are still visible.

For eg. while creating event if start date is incorrect, error message is shown but the date is not erased. However, if the same values are put in edit event form, the error message is shown and the start date vanishes

@rituranjna
Copy link

@smarshy Are you working on this ? If not, i am willing to take this task.

@smarshy
Copy link
Contributor Author

smarshy commented Aug 22, 2016

@rituranjna No, I haven't taken this up. Feel free to go ahead

@tapaswenipathak tapaswenipathak added Difficulty: Easy Type: Bug Bug or Bug fixes. Type: Testing UI Tests, Integration Tests, Travis CI, etc. labels Sep 30, 2017
@anjali-dhanuka
Copy link
Contributor

@rituranjna @smarshy @tapasweni-pathak @tonythomas01 I have found that when we edit one of the start date or end date the other automatically gets removed. I have gone through the code and I have found that Datetimepicker jquery is used in both forms but I am unable to guess why is it working fine in create form. Can you guide me how to proceed?

@anjali-dhanuka
Copy link
Contributor

please use the issue template.

@tonythomas01
Copy link
Contributor

@anjali-dhanuka Just from the start date or end date the other automatically gets removed., without looking at the code, I would assume that:

  1. both fields might be using the same id
  2. there would be something wrong about the jquery code. If you link me the file in question, I can take a look.

@anjali-dhanuka
Copy link
Contributor

@tonythomas01
Copy link
Contributor

tonythomas01 commented Aug 10, 2018

							<input class="form-control" type="text" name="start_date" id="from" name="from" value="{% if form.start_date.value %}{{ form.start_date.value|date:"SHORT_DATE_FORMAT" }}{% endif %}">

multiple name attribute, making it ugly. Well, it again depends on what is happening on the JS side.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug Bug or Bug fixes. Type: Testing UI Tests, Integration Tests, Travis CI, etc.
Projects
None yet
Development

No branches or pull requests

5 participants