Explorar o código

cleaned up unused templates

Juan Carlos %!s(int64=4) %!d(string=hai) anos
pai
achega
862a9342c2

+ 0 - 20
marktplatz/templates/marktplatz/generic-test.html

@@ -1,20 +0,0 @@
-{% extends "base_generic.html" %}
-{% load static %}
-
-{% block content %}
-<div class="container" style="margin-top: 20px">
-
-  {{ about_text | safe}}
-
-  {{ object.bautraeger }}
-
-  {{ object }}
-
-  {% if context %}
-  {{ context | safe}}
-
-  {% endif %}
-
-</div>
-
-{% endblock %}

+ 0 - 0
marktplatz/templates/marktplatz/about.html → marktplatz/templates/marktplatz/generic_text.html


+ 0 - 13
marktplatz/templates/marktplatz/submit.html

@@ -1,13 +0,0 @@
-{% extends "base_generic.html" %}
-{% load static %}
-
-{% block content %}
-<div class="container" style="margin-top: 20px">
-<h3>Welcome to the Media Architecture Submissions</h3><br>
-
-      {{submit_text|safe}}
-
-
-</div>
-
-{% endblock %}

+ 0 - 53
marktplatz/templates/marktplatz/voteDetail.html

@@ -1,53 +0,0 @@
-{% 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-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>
-        {% 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 %}
-

+ 0 - 69
marktplatz/templates/marktplatz/votes_cid.html

@@ -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 %}

+ 0 - 2
marktplatz/urls.py

@@ -41,7 +41,6 @@ urlpatterns = [
     path('ernaehrungsprojekt-bearbeiten/<int:pk>',  views.ErnaehrungsProjektUpdateView.as_view(), name='ernaehrungsprojekt-bearbeiten'),
     path('energyprojekt-bearbeiten/<int:pk>',       views.EnergyProjektUpdateView.as_view(),      name='energyprojekt-bearbeiten'),
 
-
     # DELETE
     path('projekt/<int:pk>/delete', views.ProductDelete.as_view(), name='product-delete'),
 
@@ -66,7 +65,6 @@ urlpatterns = [
 
 
     path('add-image/<int:pk>', views.addImageView.as_view(), name='add-image'),
-    # path('generic-test/', views.genericView.as_view(), name='generic-test'),
 
     path('pages/<slug:page>/', pagesView.as_view(template_name="marktplatz/generic.html"), name='pages-generic'),
     path('generic/', TemplateView.as_view(template_name="marktplatz/generic.html"), name='generic'),

+ 4 - 4
marktplatz/views.py

@@ -53,13 +53,13 @@ def index(request):
 
 def about(request):
     context = {}
-    context = {'about_text': Template(config.ABOUT_CONTENT).render(Context(context))}
-    return render(request, 'marktplatz/about.html', context)
+    context = {'generic_text': Template(config.ABOUT_CONTENT).render(Context(context))}
+    return render(request, 'marktplatz/generic_text.html', context)
 
 def submit(request):
     context = {}
-    context = {'submit_text': Template(config.SUBMIT_TEXT).render(Context(context))}
-    return render(request,'marktplatz/submit.html', context)
+    context = {'generic_text': Template(config.SUBMIT_TEXT).render(Context(context))}
+    return render(request,'marktplatz/generic_text.html', context)
 
 def error_404_view(request, exception):
     data = {"name": "Markplatz"}