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

[Ellipsis] Add a "Close form" button to the form details page #10

Closed
wants to merge 1 commit into from

Conversation

ellipsis-dev-beta[bot]
Copy link

Summary:

Issue: #8
Plan feedback: Approved by @ellipsis-dev[bot]

Implementation:

  1. Add 'Close form' button to the form details page
    • In the file /src/pages/forms/[id].tsx, add a new button component that will be used to close the form. This button should be red and disabled when is_open is false. When is_open is true, the button should be clickable. The button should be placed next to the 'View live form' button.
  2. Update the 'Close form' button to handle click event
    • In the file /src/pages/forms/[id].tsx, update the 'Close form' button to handle click events. When the button is clicked, it should call a function that updates the is_open field of the form in the database to false.

Report:

Step Result Details
1
Add 'Close form' button to the form details pageAdded 'Close form' button to the form details page
2
Update the 'Close form' button to handle click eventAdded a click event handler to the 'Close form' button

Something look wrong?: If this Pull Request doesn't contain the expected changes, add more information to #8. Then, add the ellipsis:create label to try again. For more information, check the documentation.

Generated with ❤️ by ellipsis.dev

@hbrooks hbrooks closed this Jan 17, 2024
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.

1 participant