Support for right-to-left languages (#1438)

* play around

* Flip things in presale

* Convert backend

* Remove test settings

* Safe getattr
This commit is contained in:
Raphael Michel
2019-10-15 11:41:23 +02:00
committed by GitHub
parent 4152ee4e50
commit a4d8c810ce
79 changed files with 2006 additions and 140 deletions

View File

@@ -36,7 +36,7 @@
</div>
<div class="panel-body">
{% if not settings.PRETIX_OBLIGATORY_2FA %}
<a href="{% url "control:user.settings.2fa.disable" %}" class="btn btn-primary pull-right">
<a href="{% url "control:user.settings.2fa.disable" %}" class="btn btn-primary pull-right flip">
{% trans "Disable" %}
</a>
{% endif %}
@@ -52,7 +52,7 @@
</div>
<div class="panel-body">
{% if devices|length %}
<a href="{% url "control:user.settings.2fa.enable" %}" class="btn btn-primary pull-right">
<a href="{% url "control:user.settings.2fa.enable" %}" class="btn btn-primary pull-right flip">
{% trans "Enable" %}
</a>
{% endif %}
@@ -72,7 +72,7 @@
<ul class="list-group">
{% for d in devices %}
<li class="list-group-item">
<a class="btn btn-danger btn-xs pull-right"
<a class="btn btn-danger btn-xs pull-right flip"
href="{% url "control:user.settings.2fa.delete" devicetype=d.devicetype device=d.pk %}">
Delete
</a>

View File

@@ -9,7 +9,7 @@
<fieldset>
{% if request.user.notifications_send %}
<div class="alert alert-info">
<button name="notifications_send" value="off" type="submit" class="pull-right btn btn-default">
<button name="notifications_send" value="off" type="submit" class="pull-right flip btn btn-default">
<span class="fa fa-bell-slash"></span>
{% trans "Disable" %}
</button>
@@ -18,7 +18,7 @@
</div>
{% else %}
<div class="alert alert-warning">
<button name="notifications_send" value="on" type="submit" class="pull-right btn btn-default">
<button name="notifications_send" value="on" type="submit" class="pull-right flip btn btn-default">
<span class="fa fa-bell"></span>
{% trans "Enable" %}
</button>

View File

@@ -27,7 +27,7 @@
{% trans "Alternatively, you can use your WebAuthn device." %}
</small></p>
{% endif %}
<div class="form-group text-right">
<div class="form-group text-right flip">
<button type="submit" class="btn btn-primary btn-block">
{% trans "Continue" %}
</button>

View File

@@ -46,7 +46,7 @@
<span class="fa fa-times text-danger"></span>
{% endif %}
</td>
<td class="text-right">
<td class="text-right flip">
<a href="{% url "control:user.sudo.edit" id=s.id %}" class="btn btn-default btn-sm"><i
class="fa fa-edit"></i></a>
</td>