Fixed problem with button for unregistered users

This commit is contained in:
Felipe Martín 2015-09-11 21:49:58 +02:00
parent 28001b1355
commit a55fac9b5e
2 changed files with 3 additions and 7 deletions

View File

@ -10,10 +10,6 @@
}
}
.hidden {
display: none;
}
.underlined {
text-decoration: underline;
}

View File

@ -1,7 +1,7 @@
{% load i18n %}
<div data-handle="relation" data-from="detail"
data-amiibo="{{ amiibo.pk }}">
<div {% if user.is_authenticated %}data-handle="relation" data-from="detail"
data-amiibo="{{ amiibo.pk }}"{% endif %}>
{% if user.is_authenticated %}
{% if amiibo.pk in USER_AMIIBO_OWNED %}
<a href="{% url 'amiibo:user-action' amiibo=amiibo.pk action='+-trade' %}"
@ -27,7 +27,7 @@
{% else %}
<form action="{% url 'account_signup' %}" method="get">
<input type="hidden" name="next" value="{{ amiibo.get_absolute_url }}">
<button class="ui animated fade button standard">
<button type="submit" class="ui animated fade button standard">
<div class="visible content ui buttons">
<a href="#" class="ui button">{% trans 'I want this' %}</a>
<div class="or" data-text="{% trans 'or' %}"></div>