Rework titles/texts on the add-device page

This commit is contained in:
Paul Konstantin Gerke 2022-10-19 21:30:09 +02:00
parent d604f6f85a
commit f559f553a0
1 changed files with 18 additions and 25 deletions

View File

@ -11,34 +11,27 @@
{% block content %} {% block content %}
<h1>{% trans "Add a device" %}</h1> <h1>{% trans "Add a device" %}</h1>
<p>
{% blocktrans trimmed %}
This page allows you to gain access to babybuddy from a
third party app or device.
{% endblocktrans %}
</p>
<div class="container-fluid"> <div class="container-fluid">
<legend>{% trans "Authentication Methods" %}</legend>
<fieldset> <fieldset>
<legend>{% trans "Device login options" %}</legend> <div class="form-group row">
<div class="form-group row"> <label class="col-sm-2 col-form-label">{% trans "Key" %}</label>
<label class="col-sm-2 col-form-label">{% trans "Key" %}</label> <div class="col-sm-10">
<div class="col-sm-10"> <form method="post">
<form method="post"> {% csrf_token %}
{% csrf_token %} <samp>{{ user.settings.api_key }}</samp>
<samp>{{ user.settings.api_key }}</samp> <input type="submit" name="api_key_regenerate" value="{% trans "Regenerate" %}" class="btn btn-danger btn-xs" />
<input type="submit" name="api_key_regenerate" value="{% trans "Regenerate" %}" class="btn btn-danger btn-xs" /> </form>
</form>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">{% trans "Login QR code" %}</label>
<div class="col-sm-10">
<div style="display:inline-block;background-color:white;" data-qr-code-content="{{ qr_code_data }}">
{% qr_from_text qr_code_data size="s" %}
</div> </div>
</div> </div>
</div> <div class="form-group row">
</fieldset> <label class="col-sm-2 col-form-label">{% trans "Login QR code" %}</label>
<div class="col-sm-10">
<div style="display:inline-block;background-color:white;" data-qr-code-content="{{ qr_code_data }}">
{% qr_from_text qr_code_data size="s" %}
</div>
</div>
</div>
</fieldset>
</div> </div>
{% endblock %} {% endblock %}