Fakultas Ilmu Komputer UI

Commit b4cd924f authored by igor lestin sianipar's avatar igor lestin sianipar Committed by Saul Andre
Browse files

Pbi 6 halaman katalog

parent e925f4ff
......@@ -123,10 +123,12 @@
</div>
</div>
</div>
<div class="col-9 books">
{% for item in materi_list %}
<div class="card book">
<img src={{item.cover.url}} class="card-img-top" alt="cover"></img>
<img src={{item.cover.url}} class="card-img-top" alt="cover"
style="height:200px; widows: 200px;; overflow: hidden;"></img>
<div class="card-body">
<h5 class="card-title">{{item.title}}</h5>
<p class="card-text">{{item.author}}</p>
......@@ -136,9 +138,9 @@
</div>
{% endfor %}
</div>
</div>
</div>
</div>
<!-- /.container -->
</body>
......
......@@ -134,7 +134,9 @@
<div class="col-md-6">
<div class="fieldWrapper">
{{ field.label_tag }} {{ field }}
<p> </p>
{{ field.errors }}
<p> </p>
{% if field.help_text %}
<p class="help">{{ field.help_text|safe }}</p>
{% endif %}
......
......@@ -10,15 +10,17 @@ from django.http import (Http404, HttpResponse, HttpResponseRedirect,
JsonResponse)
from django.shortcuts import get_object_or_404, redirect, render
from django.template import loader
from django.views.generic import TemplateView
from django.views.generic import TemplateView, ListView
from authentication.models import User
from .forms import SuntingProfilForm, UploadMateriForm
from .models import Category, Comment, Materi
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
class DaftarKatalog(TemplateView):
paginate_by = 2
template_name = "app/katalog_materi.html"
def get_context_data(self, **kwargs):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment