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

Confirm page look is off #395

Open
fenekku opened this issue Mar 22, 2022 · 0 comments
Open

Confirm page look is off #395

fenekku opened this issue Mar 22, 2022 · 0 comments

Comments

@fenekku
Copy link
Contributor

fenekku commented Mar 22, 2022

Package version (if known): v8

Describe the bug

The confirm page (/confirm) look is broken

image

At NU we solved it by overriding the template to

{%- extends config.BASE_TEMPLATE %}

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

{% block page_body %}
{%- with form = send_confirmation_form %}
<div id="email-confirmation" class="ui text container">
  <div class="ui segment">
    <h3 class="ui header aligned center">{{_('Resend Confirmation Email')}}</h3>
    <div class="column ui middle">
      <p class="left floated">{{_('Enter your email address below and we will send you an email confirmation link.')}}</p>
    </div>
    <form class="ui large form" action="{{ url_for_security('login') }}" method="POST" name="login_user_form">
      {{form.hidden_tag()}}
      {{ render_field(form.email, icon="icon user", autofocus=True, errormsg='email' in form.errors) }}
      <button type="submit" class="ui fluid large primary button">
        <i class="ui sign-in icon"></i>{{_('Send Confirmation')}}
      </button>
    </form>
  </div>
</div>
{%- endwith %}
{% endblock %}
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

No branches or pull requests

1 participant