
6 changed files with 44 additions and 36 deletions
Binary file not shown.
@ -1,15 +1,45 @@ |
|||||
|
<style> |
||||
|
body{ |
||||
|
background-color: antiquewhite; |
||||
|
} |
||||
|
h2,h1,h3,h4,p{ |
||||
|
text-align: center; |
||||
|
} |
||||
|
.stran{ |
||||
|
|
||||
|
width: 60%; |
||||
|
height: auto; |
||||
|
background-color: rgb(240, 219, 162); |
||||
|
margin-left: auto; |
||||
|
margin-right: auto; |
||||
|
} |
||||
|
img { |
||||
|
display: block; |
||||
|
margin-left: auto; |
||||
|
margin-right: auto } |
||||
|
|
||||
|
.mapa{ |
||||
|
width: 600px; |
||||
|
margin-left: auto; |
||||
|
margin-right: auto; |
||||
|
} |
||||
|
</style> |
||||
|
|
||||
{% extends "base.html" %} |
{% extends "base.html" %} |
||||
{% load wagtailcore_tags %} |
{% load wagtailcore_tags %} |
||||
|
<div class="stran"> |
||||
|
|
||||
|
|
||||
{% block body_class %}template-homepage{% endblock %} |
|
||||
|
{% block body_class %}template-homepage{% endblock %} |
||||
|
|
||||
{% block extra_css %} |
|
||||
|
{% block extra_css %} |
||||
|
|
||||
|
|
||||
{% endblock extra_css %} |
|
||||
|
{% endblock extra_css %} |
||||
|
|
||||
{% block content %} |
|
||||
|
{% block content %} |
||||
|
|
||||
{{ page.body|richtext }} |
|
||||
|
{{ page.body|richtext }} |
||||
|
|
||||
{% endblock content %} |
|
||||
|
{% endblock content %} |
||||
|
</div> |
||||
|
@ -1,30 +0,0 @@ |
|||||
from django.db import models |
|
||||
|
|
||||
from modelcluster.fields import ParentalKey |
|
||||
|
|
||||
from wagtail.core.models import Page, Orderable |
|
||||
from wagtail.core.fields import RichTextField |
|
||||
from wagtail.admin.edit_handlers import FieldPanel, InlinePanel |
|
||||
from wagtail.images.edit_handlers import ImageChooserPanel |
|
||||
from wagtail.search import index |
|
||||
|
|
||||
|
|
||||
class TipyIndexPage(Page): |
|
||||
pass |
|
||||
|
|
||||
|
|
||||
class TipPage(Page): |
|
||||
popisek = models.CharField(max_length=250) |
|
||||
image = models.ForeignKey( |
|
||||
'wagtailimages.Image', on_delete=models.PROTECT, related_name='+' |
|
||||
) |
|
||||
|
|
||||
search_fields = Page.search_fields + [ |
|
||||
index.SearchField('popisek'), |
|
||||
] |
|
||||
|
|
||||
content_panels = Page.content_panels + [ |
|
||||
FieldPanel('popisek'), |
|
||||
ImageChooserPanel('image'), |
|
||||
] |
|
||||
|
|
Loading…
Reference in new issue