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

Add application paused toggle #241

Merged
merged 3 commits into from
Oct 8, 2023
Merged

Conversation

marlena-b
Copy link
Collaborator

@marlena-b marlena-b commented Oct 5, 2023

🔗 Issue

Fixes #229

✍️ Description

I added an application_paused toggle on the form and a button on the dropdown pets index. I also noticed that the delete button does not work, so I fixed it.

📷 Screenshots/Demos

Nagranie.z.ekranu.2023-10-5.o.11.41.36.mov

@marlena-b marlena-b force-pushed the toggle-application-paused branch from 304ac6d to d60db19 Compare October 5, 2023 09:52
@marlena-b marlena-b marked this pull request as ready for review October 5, 2023 09:58
Comment on lines 101 to 98
<div class='form-group'>
<div class="form-check form-switch">
<%= form.hidden_field :application_paused, value: false %>
<%= form.check_box :application_paused, { class: "form-check-input", role: "switch", id: "flexSwitchCheckChecked" }, true, false %>
<%= form.label :application_paused, "Pause application", class: "form-check-label", for: "flexSwitchCheckChecked" %>
</div>
</div>
Copy link
Collaborator

Choose a reason for hiding this comment

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

@marlena-b could you update your branch with main we recently updated to include bootstrap_form which might make this look strange. Could you double check?

Thanks!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed now, thank you!

@marlena-b marlena-b force-pushed the toggle-application-paused branch from a7173ec to 5c513ea Compare October 6, 2023 19:55
@marlena-b marlena-b requested a review from edwinthinks October 6, 2023 19:58
@edwinthinks edwinthinks merged commit fb8b9c0 into main Oct 8, 2023
3 checks passed
@edwinthinks edwinthinks deleted the toggle-application-paused branch October 8, 2023 02:29
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.

As a staff member, I can pause or activate applications for a pet
2 participants