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

@@ -2,6 +2,7 @@
{% load staticfiles %} {% load staticfiles %}
{% load i18n %} {% load i18n %}
{% load statici18n %} {% load statici18n %}
{% load eventurl %}
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
@@ -78,6 +79,22 @@
{% endfor %} {% endfor %}
</ul> </ul>
</li> </li>
{% if request.event %}
<li>
{% if has_domain and not request.event.live %}
<form action="{% eventurl request.event "presale:event.auth" %}" method="post" target="_blank">
<input type="hidden" value="{{ new_session }}" name="session">
<button type="submit" class="btn btn-link" id="button-shop">
<i class="fa fa-eye"></i> {% trans "Go to shop" %}
</button>
</form>
{% else %}
<a href="{% eventurl request.event "presale:event.index" %}" title="{% trans "Go to Shop" %}" target="_blank">
<i class="fa fa-eye"></i> {% trans "Go to shop" %}
</a>
{% endif %}
</li>
{% endif %}
</ul> </ul>
<ul class="nav navbar-nav navbar-top-links navbar-right"> <ul class="nav navbar-nav navbar-top-links navbar-right">
{% for nav in nav_topbar %} {% for nav in nav_topbar %}

View File

@@ -4,22 +4,9 @@
{% load staticfiles %} {% load staticfiles %}
{% block title %}{{ request.event.name }}{% endblock %} {% block title %}{{ request.event.name }}{% endblock %}
{% block content %} {% block content %}
<form action="{% eventurl request.event "presale:event.auth" %}" method="post" target="_blank"> <h1>
<h1> {{ request.event.name }}
{{ request.event.name }} </h1>
{% 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>
{% if actions|length > 0 %} {% if actions|length > 0 %}
<div class="panel panel-danger"> <div class="panel panel-danger">
<div class="panel-heading"> <div class="panel-heading">

View File

@@ -46,6 +46,13 @@ nav.navbar .danger, nav.navbar .danger:hover, nav.navbar .danger:active {
.nav-pills { .nav-pills {
margin-bottom: 10px; margin-bottom: 10px;
} }
#button-shop {
padding: 15px;
min-height: 50px;
border: none;
}
.product-row { .product-row {
padding: 10px 0; padding: 10px 0;