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

Prefilled contact form with subject and body queryParams #4161

Merged
merged 4 commits into from
Jun 15, 2021

Conversation

kimsible
Copy link
Contributor

@kimsible kimsible commented Jun 4, 2021

Description

This PR adds a sub-route /about/instance/contact in order to prefill the contact form with a subject and a body queryParams.
Also fixes minor CSS issues for input displaying in the contact-form.

Related issues

closes #4160

Has this been tested?

  • 👍 yes, light tests as follows are enough
  1. Enable the contact-form in the administration and configure a SMTP mail to test it.
  • Click on the contact form button in /about/instance, it should open the modal with /about/instance/contact

  • When you close the modal the router should redirect to /about/instance

  • When you click on the modal body overlay, it should keeps the input value history when re-open the modal

  • Access to /about/instance/contact?subject=My Subject&body=My Body multiline%0Aline 1%0Aline 2

  • It should display the contact form in the modal with pre-filled inputs as shown in the screenshots

  • When you click on the modal body overlay, it should keeps the input value history when re-open the modal when back browsing history

  • When you close the modal the router should redirect to /about/instance

  1. Disable the contact-form
  • When accessing to /about/instance/contact it should display a 404 error

Screenshots

Capture d’écran du 2021-06-04 15-04-40

Minor CSS fixes
Screenshot 2021-06-03 at 21-18-25 About this instance - PeerTube

@Chocobozzz Chocobozzz merged commit 5c16e6b into Chocobozzz:develop Jun 15, 2021
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.

Add subject and body queryParams with special route to prefill contact-form
2 participants