|
|
@@ -1,69 +0,0 @@
|
|
|
-{% extends "base_generic.html" %}
|
|
|
-{% load tags %}
|
|
|
-{% block script %}
|
|
|
-<script>
|
|
|
- $(document).ready(function(){
|
|
|
-$('form').submit(function () {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- if () {
|
|
|
- alert('CID doubled');
|
|
|
- return false;
|
|
|
- }
|
|
|
-});
|
|
|
-
|
|
|
-});
|
|
|
-</script>
|
|
|
-{% endblock %}
|
|
|
-
|
|
|
-{% block content %}
|
|
|
-
|
|
|
-<div class="container-fluid">
|
|
|
-
|
|
|
- {% if user.is_superuser %}
|
|
|
-
|
|
|
-
|
|
|
-<h3 style="margin-top: 10px">Votesoverwiev </h3>
|
|
|
-
|
|
|
-<form class="form-inline" method="POST"> {% csrf_token %}
|
|
|
- <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>
|
|
|
- <th scope="col"> CID</th>
|
|
|
- <th scope="col"> submitted</th>
|
|
|
-
|
|
|
- </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="{{ Product.pk }}"> </td>
|
|
|
- <td scope="col"> <a href="{% url 'product-detail-type' type=product.type pk=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>
|
|
|
- <td scope="col"> <input type="text" id="{{ Product.pk }}sub" name="{{ Product.pk }}.sub" placeholder="{{Product.sumbitted}}"> </td>
|
|
|
-
|
|
|
- </tr>
|
|
|
- {% endfor %}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- </table>
|
|
|
- <button class="btn border-dark rounded-0 mybtn" type="submit">Submit </button>
|
|
|
-</form>
|
|
|
-
|
|
|
-{% else %}
|
|
|
- <p>You are not authorized to view this page. </p>
|
|
|
-{% endif %}
|
|
|
- {% endblock %}
|