Skip to content

Commit

Permalink
Minor survey UX improvements
Browse files Browse the repository at this point in the history
- submit button label in email dialog
- no period at end of email subject
- centered lock icon
- correct button margin
  • Loading branch information
ThiefMaster committed Mar 5, 2024
1 parent 57980ee commit 3f82454
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _process(self):
num = len(form.recipients.data)
flash(ngettext('Your email has been sent.', '{} emails have been sent.', num).format(num))
return jsonify_data(flash=True)
return jsonify_form(form)
return jsonify_form(form, submit=_('Send'))

def _send_emails(self, form, recipients):
for recipient in recipients:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% macro get_subject() -%}
Survey "{survey_title}" for event "{event_title}" has started.
Survey "{survey_title}" for event "{event_title}" has started
{%- endmacro %}

{% macro get_html_body() -%}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% if survey.private and survey.state.name in ('active_and_clean', 'active_and_answered') %}
<div class="action-box highlight">
<div class="section">
<div class="icon icon-lock"></div>
<div class="icon icon-lock-center"></div>
<div class="text">
<div class="label">
{%- trans %}The survey is private{% endtrans -%}
Expand All @@ -24,7 +24,7 @@
{%- endtrans %}
</div>
<div class="toolbar">
<button class="i-button icon-mail right highlight js-requires-selected-row send-mails-btn"
<button class="i-button icon-mail highlight js-requires-selected-row send-mails-btn"
data-href="{{ url_for('surveys.send_links', survey) }}"
data-title="{% trans %}Send survey links{% endtrans %}"
data-method="POST"
Expand Down

0 comments on commit 3f82454

Please sign in to comment.