hide search and buy form when user is not authenticated

This commit is contained in:
Konrad Mohrfeldt 2012-02-06 00:25:38 +01:00
parent d050ef9c13
commit 2d1b9faeca
1 changed files with 8 additions and 6 deletions

View File

@ -36,9 +36,11 @@
{% endif %} {% endif %}
</ul> </ul>
<form class="navbar-search pull-right"> {% if user.is_authenticated %}
<form class="navbar-search pull-right">
<span class="brand balance">Kontostand: {{ user.get_profile.balance|floatformat:2 }} €</span> <span class="brand balance">Kontostand: {{ user.get_profile.balance|floatformat:2 }} €</span>
<input placeholder="Suche und kaufe..." class="search-query autocomplete" <input placeholder="Suche und kaufe..." class="search-query autocomplete"
type="search" name="search_term" value="Lade Daten..." type="search" name="search_term" value="Lade Daten..."
disabled="disabled" /> disabled="disabled" />
</form> </form>
{% endif %}