Fix #445 - Added go to shop button (#512)

This commit is contained in:
noelroy
2017-06-02 21:18:11 +05:30
committed by Raphael Michel
parent caf75fafdf
commit 574fb6804f
3 changed files with 27 additions and 16 deletions

View File

@@ -4,22 +4,9 @@
{% load staticfiles %}
{% block title %}{{ request.event.name }}{% endblock %}
{% block content %}
<form action="{% eventurl request.event "presale:event.auth" %}" method="post" target="_blank">
<h1>
{{ request.event.name }}
{% if has_domain and not request.event.live %}
<input type="hidden" value="{{ new_session }}" name="session">
<button type="submit" class="btn btn-default btn-sm">
{% trans "Go to shop" %}
</button>
{% else %}
<a href="{% eventurl request.event "presale:event.index" %}" class="btn btn-default btn-sm" target="_blank">
{% trans "Go to shop" %}
</a>
{% endif %}
</h1>
</form>
<h1>
{{ request.event.name }}
</h1>
{% if actions|length > 0 %}
<div class="panel panel-danger">
<div class="panel-heading">