1 files added
3 files modified
| New file |
| | |
| | | # Generated by Django 4.1.7 on 2023-02-24 15:13 |
| | | |
| | | from django.db import migrations |
| | | import wagtail.fields |
| | | |
| | | |
| | | class Migration(migrations.Migration): |
| | | |
| | | dependencies = [ |
| | | ('situation', '0001_initial'), |
| | | ] |
| | | |
| | | operations = [ |
| | | migrations.RenameField( |
| | | model_name='situationpage', |
| | | old_name='body', |
| | | new_name='briefIntroduction', |
| | | ), |
| | | migrations.AddField( |
| | | model_name='situationpage', |
| | | name='makeASpeech', |
| | | field=wagtail.fields.RichTextField(blank=True), |
| | | ), |
| | | ] |
| | |
| | | |
| | | |
| | | class SituationPage(Page): |
| | | body = RichTextField(blank=True) |
| | | briefIntroduction = RichTextField(blank=True) |
| | | makeASpeech = RichTextField(blank=True) |
| | | |
| | | content_panels = Page.content_panels + [ |
| | | FieldPanel("body", classname="full"), |
| | | FieldPanel("briefIntroduction", classname="full"), |
| | | FieldPanel("makeASpeech", classname="full"), |
| | | ] |
| | |
| | | {% endif %} |
| | | |
| | | {# Global stylesheets #} |
| | | <link rel="stylesheet" type="text/css" href="{% static 'css/museum.css' %}"> |
| | | <link rel="stylesheet" type="text/css" href="{% static 'css/base.css' %}"> |
| | | <link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap.min.css' %}"> |
| | | <link rel="stylesheet" type="text/css" href="{% static 'css/all.min.css' %}"> |
| | | {% block extra_css %} |
| | |
| | | {% extends "base.html" %} |
| | | {% load static %} |
| | | {% load wagtailcore_tags %} |
| | | {% load wagtailcore_tags wagtailimages_tags %} |
| | | {% block body_class %}template-homepage{% endblock %} |
| | | |
| | | {% block extra_css %} |
| | | |
| | | <link rel="stylesheet" href="{% static 'css/welcome_page.css' %}"> |
| | | <link rel="stylesheet" href="{% static 'css/situation.css' %}"> |
| | | {% endblock extra_css %} |
| | | |
| | | {% block content %} |
| | | {#{% include 'home/welcome_page.html' %}#} |
| | | <div style="color: blue">{{ page.body|richtext }}</div> |
| | | {% include 'base/header.html' %} |
| | | <div><img src="{% static 'img/sitbody.png' %}" width="100%" /> |
| | | <div class="situation"></div> |
| | | <div class="situation-c"></div> |
| | | <div class="situation-r"></div> |
| | | <div class="situation-l"></div> |
| | | <div class="situation-y"></div> |
| | | <div class="situation-m"></div> |
| | | <div class="situation-cha">简介</div> |
| | | <div class="sitbrie">{{ page.briefIntroduction|richtext }}</div> |
| | | </div> |
| | | |
| | | {% endblock content %} |