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

@@ -65,7 +65,7 @@
</form>
{% endif %}
</td>
<td class="text-right">
<td class="text-right flip">
{% if "can_change_event_settings" in request.eventpermset %}
<a href="{% url "plugins:badges:edit" organizer=request.event.organizer.slug event=request.event.slug layout=l.id %}" class="btn btn-default btn-sm"><i class="fa fa-edit"></i></a>
<a href="{% url "plugins:badges:delete" organizer=request.event.organizer.slug event=request.event.slug layout=l.id %}" class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></a>

View File

@@ -7,7 +7,7 @@
{% endblocktrans %}</p>
<form method="post" action="">
{% csrf_token %}
<button class="btn btn-primary pull-right helper-space-below" type="submit">
<button class="btn btn-primary pull-right flip helper-space-below" type="submit">
<span class="icon icon-upload"></span> {% trans "Continue" %}
</button>
<div class="flipped-scroll-wrapper clearfix">

View File

@@ -34,7 +34,7 @@
<label for="file">{% trans "Import file" %}: </label> <input id="file" type="file" name="file"/>
</div>
<div class="clearfix"></div>
<button class="btn btn-primary pull-right" type="submit">
<button class="btn btn-primary pull-right flip" type="submit">
<span class="icon icon-upload"></span> {% trans "Start upload" %}
</button>
</form>
@@ -65,7 +65,7 @@
<button class="btn btn-primary" type="submit">{% trans "Filter" %}</button>
</form>
{% if not request.GET.search %}
<form action="" method="post" class="helper-display-inline pull-right">
<form action="" method="post" class="helper-display-inline pull-right flip">
{% csrf_token %}
<button class="btn btn-danger" type="submit" name="discard" value="all">
<span class="fa fa-trash"></span>

View File

@@ -9,7 +9,7 @@
<p>{% blocktrans trimmed %}
You need to confirm your payment. Please click the link below to do so or start a new payment.
{% endblocktrans %}
<div class="text-right">
<div class="text-right flip">
<a href="{% eventurl event "plugins:stripe:sca" order=order.code payment=payment.pk hash=payment_hash %}"
class="btn btn-primary">
{% trans "Confirm payment" %}

View File

@@ -62,7 +62,7 @@
</form>
{% endif %}
</td>
<td class="text-right">
<td class="text-right flip">
{% if "can_change_event_settings" in request.eventpermset %}
<a href="{% url "plugins:ticketoutputpdf:edit" organizer=request.event.organizer.slug event=request.event.slug layout=l.id %}" class="btn btn-default btn-sm"><i class="fa fa-edit"></i></a>
<a href="{% url "plugins:ticketoutputpdf:delete" organizer=request.event.organizer.slug event=request.event.slug layout=l.id %}" class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></a>