Small UI improvements to the settings interface (#3223)

This commit is contained in:
Oliver 2022-06-18 17:33:59 +10:00 committed by GitHub
parent eeff6074e7
commit eb255e84d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 9 deletions

View File

@ -154,7 +154,9 @@
</form>
{% else %}
<p>{% trans 'You currently have no social network accounts connected to this account.' %}</p>
<div class='alert alert-block alert-warning'>
{% trans 'There are no social network accounts connected to this account.' %}
</div>
{% endif %}
</div>
@ -198,9 +200,9 @@
</table>
{% else %}
<p><strong>{% trans 'Warning:'%}</strong>
{% trans "You currently do not have any factors set up." %}
</p>
<div class='alert alert-block alert-warning'>
{% trans "Multifactor authentication is not configured for your account" %}
</div>
{% endif %}
</div>
@ -224,7 +226,7 @@
<form method="post" action="{% url 'session_delete_other' %}">
{% csrf_token %}
<button type="submit" class="btn btn-sm btn-default btn-danger" title='{% trans "Log out active sessions (except this one)" %}'>
{% trans "Log Out Active Sessions" %}
<span class='fas fa-sign-out-alt'></span> {% trans "Log Out Active Sessions" %}
</button>
</form>
{% endif %}

View File

@ -34,7 +34,7 @@
{% csrf_token %}
<input name='next' type='hidden' value='{% url "settings" %}'>
<label for='theme' class=' requiredField'>
{% trans "Select theme" %}
<h6>{% trans "Select theme" %}</h6>
</label>
<div class='form-group input-group mb-3'>
<select id='theme' name='theme' class='select form-control'>
@ -62,7 +62,7 @@
{% csrf_token %}
<input name="next" type="hidden" value="{% url 'settings' %}">
<label for='language' class=' requiredField'>
{% trans "Select language" %}
<h6>{% trans "Select language" %}</h6>
</label>
<div class='form-group input-group mb-3'>
<select name="language" class="select form-control w-25">
@ -100,8 +100,11 @@
</form>
</div>
<div class="col-sm-6">
<h4>{% trans "Help the translation efforts!" %}</h4>
<p>{% blocktrans with link="https://crowdin.com/project/inventree" %}Native language translation of the web application is <a href="{{link}}">community contributed via crowdin</a>. Contributions are welcomed and encouraged.{% endblocktrans %}</p>
<div class='alert alert-block alert-success'>
<h5>{% trans "Help the translation efforts!" %}</h5>
<p>{% trans "Native language translation of the web application is community contributed via crowdin. Contributions are welcomed and encouraged." %}</p>
<p><a href="https://crowdin.com/project/inventree">{% trans "InvenTree Translation Project" %}</a></p>
</div>
</div>
</div>