mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 19:41:11 +00:00
Fancier UI around OTP codes
This commit is contained in:
parent
170aa7460a
commit
e11811d461
1 changed files with 23 additions and 1 deletions
|
@ -46,7 +46,29 @@
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<section class="column is-narrow">
|
<section class="column is-narrow">
|
||||||
<figure class="m-4">{{ qrcode | safe }}</figure>
|
<figure class="m-4">{{ qrcode | safe }}</figure>
|
||||||
<div> {{ code | safe }} </div>
|
<details class="details-panel box">
|
||||||
|
<summary>
|
||||||
|
<span role="heading" aria-level="3" class="title is-6">
|
||||||
|
{% trans "Use setup key" %}
|
||||||
|
<span class="details-close icon icon-x" aria-hidden="true"></span>
|
||||||
|
</span>
|
||||||
|
</summary>
|
||||||
|
<dl class="block">
|
||||||
|
<dt class="has-text-weight-bold mr-5 is-pulled-left">
|
||||||
|
{% trans "Account name:" %}
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<code>{{ user.username }}</code>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt class="has-text-weight-bold mr-5 is-pulled-left">
|
||||||
|
{% trans "Code:" %}
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<code>{{ code | safe }}</code>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</details>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label" for="id_otp">{% trans "Enter the code from your app:" %}</label>
|
<label class="label" for="id_otp">{% trans "Enter the code from your app:" %}</label>
|
||||||
{{ form.otp }}
|
{{ form.otp }}
|
||||||
|
|
Loading…
Reference in a new issue