Boxtitoli_Django/templates/Homepage.html

46 lines
904 B
HTML
Raw Normal View History

2020-05-07 13:12:49 +00:00
{% extends "base.html" %}
{% block title %} LORDCHANNEL - LISTA TITOLI {% endblock title %}
2020-05-17 12:42:35 +00:00
{% block css %}
<style>
div.lcimg {
margin: 5px;
border: 1px solid #ccc;
float: left;
width: 200px;
height:300px;
}
div.lcimg:hover {
border: 1px solid #777;
}
div.lcimg img {
width: 100%;
height: 282px;
}
div.desc {
text-align: center;
overflow:hidden;
word-wrap: break-word;
}
</style>
{% endblock css %}
2020-05-07 13:12:49 +00:00
{% block content %}
<h1 class="text-center">Boxtitoli : </h1>
<div class="container">
<div class="text-center"><a href="{% url 'crea_titolo' %}">CREA UN NUOVO TITOLO</a></div>
{% for lista_titoli in titoli %}
2020-05-17 12:42:35 +00:00
<div class="lcimg desc">
<a href="{{ lista_titoli.get_absolute_url }}">{{ lista_titoli.titolo }}
<img src="{{ lista_titoli.foto }}" alt="{{ lista_titoli.titolo }}">
</a>
2020-05-07 13:12:49 +00:00
</div>
{% endfor %}
2020-05-17 12:42:35 +00:00
</div>
2020-05-07 13:12:49 +00:00
{% endblock content %}