Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py-taxi-service-forms #412

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

yaroslav-mazurkevych
Copy link

image
image
image
image
image
image

Copy link

@Sofbog Sofbog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i will recommend make different color of delete and update buttons for better user experience

taxi/views.py Outdated
model = Car
fields = "__all__"
success_url = reverse_lazy("taxi:car-list")
template_name = "taxi/car_form.html"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really need template_name , fix it all over the code

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still not fixed...
Fix everywhere


<form action="" method="post">
{% csrf_token %}
<input type="submit" value="Yes, delete" class="btn btn-danger" />
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will be a good option for the user to cancel deletion , that’s why we have an extra step before deleting something

{{ form|crispy }}
<input class="btn btn-primary" type="submit" value="Submit">
</form>
{% endblock %}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a newline at the end of the all files where it missing

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still no blank line at the end of several files

taxi/views.py Outdated
model = Car
fields = "__all__"
success_url = reverse_lazy("taxi:car-list")
template_name = "taxi/car_form.html"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still not fixed...
Fix everywhere

{{ form|crispy }}
<input class="btn btn-primary" type="submit" value="Submit">
</form>
{% endblock %}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still no blank line at the end of several files

Delete template names
Copy link

@Sofbog Sofbog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants