| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- {% extends "base_generic.html" %}
- {% load tags %}
- {% block content %}
- <div class="container-fluid">
- {% if user.is_superuser %}
- <h3 style="margin-top: 10px">Votesoverwiev </h3>
- <table class="table table-sm table-hover">
- <caption>* FP = Future trends & Prototypes; AA = Animated Architecture; MA = Money Architecture; SMA = Spatial Media Art; PAUI = Participatory Architecture & Urban Interaction</caption>
- <thead class="">
- <tr>
- <th scope="col"></th>
- <th scope="col"> Product</th>
- <th scope="col"> Category</th>
- <th scope="col"> Average</th>
- {% for user in user %}
- <th scope="col"> {{user.username}}</th>
- {% endfor %}
- </tr>
- {% for Product in Product_list %}
- <tr class="{% get_sucsess Product %}" >
- <td scope="col"><img src="{{Product.media_set.first.image_small.url}}" width="50" height="50" alt="image"> </td>
- <td scope="col"> <a href="{% url 'product-detail' Product.pk %}"> {{Product.name|upper }} </a></td>
- <td scope="col">
- {% for category in Product.category.all %}
- {{category.short_name}}{% if not forloop.last %} | {% endif %}
- {% endfor %}
- </td>
- <td scope="col"> {% get_avg Product %}</td>
- {% for user in user %}
- <td scope="col"><abbr title="{% get_vote_txt Product user%}"> {% get_vote_simple Product user %} </abbr></td>
- {% endfor %}
- </tr>
- {% endfor %}
- </table>
- </div>
- {% else %}
- <p>You are not authorized to view this page. </p>
- {% endif %}
- {% endblock %}
|