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

💻 6103 allow existing users to subscribe to the newsletter #6159

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ <h2 class="profile-section-body-header">{{_('settings')}}</h2>
<option value="o" {% if user_data['gender'] == "o" %}selected{% endif %}>{{_('other')}}</option>
</select>
</div>
<div class="flex flex-row items-center mb-2">
<div class="flex flex-row items-center mb-6">
<label for="country" class="inline-block w-72">{{_('country')}}</label>
<select id="country" name="country" class="personal-input">
<option value="">{{_('select')}}</option>
Expand All @@ -145,6 +145,20 @@ <h2 class="profile-section-body-header">{{_('settings')}}</h2>
{% endfor %}
</select>
</div>
<div class="flex flex-row items-center mb-2">
<label for="subscribe" class="inline-block w-72">{{_('subscribe_newsletter')}}</label>
<input type="checkbox" class="ml-auto" data-cy="subscribe" name="subscribe">
</div>
<div class="flex flex-row items-center mb-2">
<label for="pair_with_teacher">{{_('pair_with_teacher')}}</label>
<input type="checkbox" class="ml-auto" data-cy="pair_with_teacher" name="pair_with_teacher">
</div>
<div class="flex flex-row items-center mb-6">
<label for="connect_guest_teacher">{{_('connect_guest_teacher')}}</label>
<input type="checkbox" class="ml-auto" data-cy="connect_guest_teacher" name="connect_guest_teacher"
_="on click toggle [@required='true'] on #phone
toggle .hidden on #phone_number">
</div>
</form>
<button class="red-btn" onclick="hedyApp.destroy('{{_('are_you_sure')}}')" data-cy="delete_profile_button">{{_('destroy_profile')}}</button>
</div>
Expand Down
Loading