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

✨ [#2306] Move newsletter form to profile detail page #1148

Merged

Conversation

stevenbal
Copy link
Contributor

@codecov-commenter
Copy link

codecov-commenter commented Apr 9, 2024

Codecov Report

Attention: Patch coverage is 55.00000% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 95.07%. Comparing base (a6864de) to head (c54ac68).

Files Patch % Lines
src/open_inwoner/accounts/views/profile.py 47.05% 9 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1148      +/-   ##
===========================================
- Coverage    95.08%   95.07%   -0.01%     
===========================================
  Files          948      948              
  Lines        33547    33542       -5     
===========================================
- Hits         31897    31891       -6     
- Misses        1650     1651       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

<div class="tabled__section">
<h2 class="h2 title" id="newsletters">{% trans "Nieuwsbrieven" %}</h2>
</div>
<form method="POST" id="newsletter-form" class="form" novalidate>
Copy link
Contributor

Choose a reason for hiding this comment

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

The top-padding for forms inside a tabled section is too big here but I can change that in an upcoming PR.

Copy link
Contributor

@Bartvaderkin Bartvaderkin left a comment

Choose a reason for hiding this comment

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

I approve it for now but I note it slowly gets a bit messy to handle multiple forms on the same view, as the standard formview handlers on the view now get mixed use.

The newsletter now claims the form_valid() while there is already an ad-hoc Plans-post-thing going on and who knows what in the future.

@stevenbal stevenbal force-pushed the feature/2306-move-newsletters-form-to-mijn-profiel branch from c435aed to c54ac68 Compare April 11, 2024 09:35
@alextreme alextreme merged commit ca95867 into develop Apr 11, 2024
15 checks passed
@alextreme alextreme deleted the feature/2306-move-newsletters-form-to-mijn-profiel branch April 11, 2024 12:51
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.

5 participants