Skip to content

Commit

Permalink
register: added info box for institutional email
Browse files Browse the repository at this point in the history
  • Loading branch information
0einstein0 committed Dec 13, 2024
1 parent 4257fa9 commit 125d010
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
9 changes: 9 additions & 0 deletions assets/less/zenodo-rdm/modules/popup.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,12 @@
max-width: 80vw;
white-space: break-spaces;
}

.field-info{
padding: 0.4em !important;
margin-top: -1em !important;
[data-tooltip]::after {
width: 25vw;
white-space: break-spaces;
}
}
15 changes: 14 additions & 1 deletion templates/semantic-ui/invenio_accounts/register_user.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{%- extends config.ACCOUNTS_COVER_TEMPLATE %}

{% from "invenio_accounts/_macros.html" import render_field, form_errors %}

{% macro render_field_info(message, tooltip) %}
<div class="ui small bottom attached message info field-info">
{{ message }}
<span class="ui icon" data-position="bottom center" data-tooltip="{{ tooltip }}">
<i class="circle info icon"></i>
</span>
</div>
{% endmacro %}

{% block page_body %}
<div class="ui centered container">
<h1 class="ui inverted header text-center">Research. Shared! Sign up today</h1>
Expand Down Expand Up @@ -52,7 +62,10 @@ <h1 class="ui inverted header text-center">Research. Shared! Sign up today</h1>
{{ form.hidden_tag() }}

{%- block registration_form_fields scoped %}
{{ render_field(form.email, icon="user icon", autofocus=True, errormsg=False) }}
{{ render_field(form.email, icon="user icon", autofocus=True, errormsg=False) }}
{{ render_field_info(_('Please use an institutional email address'), _('Using an institutional email address helps us verify your account and avoid accidental flagging.')) }}


{{ render_field(form.password, icon="lock icon", errormsg=False) }}

{%- if form.password_confirm %}
Expand Down

0 comments on commit 125d010

Please sign in to comment.