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

@@ -70,7 +70,7 @@
<span class="label label-success">{% trans "On sale" %}</span>
{% endif %}
</td>
<td class="text-right">
<td class="text-right flip">
<a href="{% url "control:event.index" organizer=e.organizer.slug event=e.slug %}"
class="btn btn-sm btn-default" title="{% trans "Open event dashboard" %}"
data-toggle="tooltip">

View File

@@ -82,7 +82,7 @@
</ul>
{% endif %}
</td>
<td class="text-right">
<td class="text-right flip">
{% if not d.initialized %}
<a href="{% url "control:organizer.device.connect" organizer=request.organizer.slug device=d.id %}"
class="btn btn-primary btn-sm"><i class="fa fa-link"></i>

View File

@@ -80,7 +80,7 @@
<div class="col-md-5 col-lg-6">
{% bootstrap_field form.default layout='inline' form_group_class="" %}
</div>
<div class="col-md-2 col-lg-1 text-right">
<div class="col-md-2 col-lg-1 text-right flip">
<button type="button" class="btn btn-danger" data-formset-delete-button>
<i class="fa fa-trash"></i></button>
</div>
@@ -100,7 +100,7 @@
<div class="col-md-5 col-lg-6">
{% bootstrap_field formset.empty_form.default layout='inline' form_group_class="" %}
</div>
<div class="col-md-2 col-lg-1 text-right">
<div class="col-md-2 col-lg-1 text-right flip">
<button type="button" class="btn btn-danger" data-formset-delete-button>
<i class="fa fa-trash"></i></button>
</div>

View File

@@ -37,7 +37,7 @@
</span>
{% endif %}
</td>
<td class="text-right">
<td class="text-right flip">
<button type="submit" name="remove-member" value="{{ u.id }}"
class="btn btn-danger btn-sm btn-block">
<i class="fa fa-times"></i> {% trans "Remove" %}
@@ -57,7 +57,7 @@
<span class="fa fa-repeat"></span>
</button>
</td>
<td class="text-right">
<td class="text-right flip">
<button type="submit" name="remove-invite" value="{{ i.id }}"
class="btn btn-danger btn-sm btn-block">
<i class="fa fa-times"></i> {% trans "Remove" %}
@@ -76,7 +76,7 @@
be sent an email with an invitation.
{% endblocktrans %}
</td>
<td class="text-right">
<td class="text-right flip">
<button type="submit" class="btn btn-primary btn-sm btn-block">
<i class="fa fa-plus"></i> {% trans "Add" %}
</button>
@@ -103,7 +103,7 @@
<td>
{{ t.name }}
</td>
<td class="text-right">
<td class="text-right flip">
<button type="submit" name="remove-token" value="{{ t.id }}"
class="btn btn-danger btn-sm btn-block">
<i class="fa fa-times"></i> {% trans "Remove" %}
@@ -117,7 +117,7 @@
<td>
{% bootstrap_field add_token_form.name layout='inline' %}<br>
</td>
<td class="text-right">
<td class="text-right flip">
<button type="submit" class="btn btn-primary btn-sm btn-block">
<i class="fa fa-plus"></i> {% trans "Add" %}
</button>

View File

@@ -42,7 +42,7 @@
{{ t.eventcount }}
{% endif %}
</td>
<td class="text-right">
<td class="text-right flip">
<a href="{% url "control:organizer.team" organizer=request.organizer.slug team=t.id %}"
class="btn btn-default btn-sm"><i class="fa fa-list"></i></a>
<a href="{% url "control:organizer.team.edit" organizer=request.organizer.slug team=t.id %}"

View File

@@ -26,7 +26,7 @@
<span class="fa fa-hourglass fa-fw"></span>
{{ c.execution_time|floatformat:2 }}s
</div>
<div class="col-md-2 col-xs-8 text-right">
<div class="col-md-2 col-xs-8 text-right flip">
{% if c.success %}
<span class="label label-success">
<span class="fa fa-check-circle fa-fw"></span>

View File

@@ -61,7 +61,7 @@
</ul>
{% endif %}
</td>
<td class="text-right">
<td class="text-right flip">
<a href="{% url "control:organizer.webhook.edit" organizer=request.organizer.slug webhook=w.id %}"
class="btn btn-default btn-sm" data-toggle="tooltip" title="{% trans "Edit" %}">
<i class="fa fa-edit"></i>