diff --git a/securedrop/journalist_app/forms.py b/securedrop/journalist_app/forms.py index a66547b679..9f074effdb 100644 --- a/securedrop/journalist_app/forms.py +++ b/securedrop/journalist_app/forms.py @@ -93,9 +93,13 @@ class NewUserForm(FlaskForm): username = StringField('username', validators=[ InputRequired(message=gettext('This field is required.')), minimum_length_validation, check_invalid_usernames - ]) - first_name = StringField('first_name', validators=[name_length_validation, Optional()]) - last_name = StringField('last_name', validators=[name_length_validation, Optional()]) + ], + render_kw={'aria-describedby': 'username-notes'}, + ) + first_name = StringField('first_name', validators=[name_length_validation, Optional()], + render_kw={'aria-describedby': 'name-notes'}) + last_name = StringField('last_name', validators=[name_length_validation, Optional()], + render_kw={'aria-describedby': 'name-notes'}) password = HiddenField('password') is_admin = BooleanField('is_admin') is_hotp = BooleanField('is_hotp') diff --git a/securedrop/journalist_templates/_confirmation_modal.html b/securedrop/journalist_templates/_confirmation_modal.html index 198ac291f7..bc8b5607a8 100644 --- a/securedrop/journalist_templates/_confirmation_modal.html +++ b/securedrop/journalist_templates/_confirmation_modal.html @@ -1,17 +1,20 @@ diff --git a/securedrop/journalist_templates/_source_row.html b/securedrop/journalist_templates/_source_row.html index 2d7a29e5f2..3a53e3f3c7 100644 --- a/securedrop/journalist_templates/_source_row.html +++ b/securedrop/journalist_templates/_source_row.html @@ -1,44 +1,55 @@ {% set docs = source.documents_messages_count()['documents'] %} {% set msgs = source.documents_messages_count()['messages'] %} -
  • - -
    + + {% if source.star.starred %} - - - - {{ source.journalist_designation }} - + + + + {{ source.journalist_designation }} + {% else %} - - - - {{ source.journalist_designation }} - + + + + {{ source.journalist_designation }} + {% endif %} -
    -
    - - - - {{ ngettext('1 doc', '{num} docs', docs).format(num=docs) }} - - - - {{ ngettext('1 message', '{num} messages', msgs).format(num=msgs) }} - + + + + {{ ngettext('1 doc', '{num} docs', docs).format(num=docs) }} + + + {{ ngettext('1 message', '{num} messages', msgs).format(num=msgs) }} + + {% if source.num_unread > 0 %} - - - {{ gettext('Download') }} - {{ ngettext('1 unread', '{num} unread', source.num_unread).format(num=source.num_unread) }} - - + + {{ ngettext('1 unread', '{num} unread', source.num_unread).format(num=source.num_unread) }} + + {% else %} + + {{ ngettext('1 unread', '{num} unread', source.num_unread).format(num=source.num_unread) }} + {% endif %} -
    -
  • + + + + diff --git a/securedrop/journalist_templates/_sources_confirmation_final_modal.html b/securedrop/journalist_templates/_sources_confirmation_final_modal.html index 7742a53553..2753b3c8d4 100644 --- a/securedrop/journalist_templates/_sources_confirmation_final_modal.html +++ b/securedrop/journalist_templates/_sources_confirmation_final_modal.html @@ -1,19 +1,20 @@ diff --git a/securedrop/journalist_templates/_sources_confirmation_modal.html b/securedrop/journalist_templates/_sources_confirmation_modal.html index 7a705d9b7e..5e1513242f 100644 --- a/securedrop/journalist_templates/_sources_confirmation_modal.html +++ b/securedrop/journalist_templates/_sources_confirmation_modal.html @@ -1,32 +1,24 @@