frontend
This commit is contained in:
0
services/__init__.py
Normal file
0
services/__init__.py
Normal file
BIN
services/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
services/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
BIN
services/__pycache__/admin.cpython-310.pyc
Normal file
BIN
services/__pycache__/admin.cpython-310.pyc
Normal file
Binary file not shown.
BIN
services/__pycache__/apps.cpython-310.pyc
Normal file
BIN
services/__pycache__/apps.cpython-310.pyc
Normal file
Binary file not shown.
BIN
services/__pycache__/models.cpython-310.pyc
Normal file
BIN
services/__pycache__/models.cpython-310.pyc
Normal file
Binary file not shown.
3
services/admin.py
Normal file
3
services/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
services/apps.py
Normal file
6
services/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class ServicesConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'services'
|
||||
54
services/migrations/0001_initial.py
Normal file
54
services/migrations/0001_initial.py
Normal file
@@ -0,0 +1,54 @@
|
||||
# Generated by Django 5.0.8 on 2024-09-09 14:51
|
||||
|
||||
import django.db.models.deletion
|
||||
import wagtail.fields
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('wagtailcore', '0094_alter_page_locale'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='ServicesPage',
|
||||
fields=[
|
||||
('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.page')),
|
||||
('sf1title', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf1text', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf1img', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf2title', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf2text', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf2img', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf3title', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf3text', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf3img', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf4title', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf4text', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf4img', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf5title', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf5text', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf5img', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf5subf1', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf5subf1img', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf5subf2', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf5subf2img', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf5subf3', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf5subf3img', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf5subf4', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf5subf4img', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf5subf5', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf5subf5img', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf5subf6', wagtail.fields.RichTextField(blank=True)),
|
||||
('sf5subf6img', wagtail.fields.RichTextField(blank=True)),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
},
|
||||
bases=('wagtailcore.page',),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,148 @@
|
||||
# Generated by Django 5.0.8 on 2024-09-10 17:21
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('services', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf5img',
|
||||
new_name='section_five_img',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf5text',
|
||||
new_name='section_five_text',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf5title',
|
||||
new_name='section_five_title',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf4img',
|
||||
new_name='section_four_img',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf4text',
|
||||
new_name='section_four_text',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf4title',
|
||||
new_name='section_four_title',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf1img',
|
||||
new_name='section_one_img',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf1text',
|
||||
new_name='section_one_text',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf1title',
|
||||
new_name='section_one_title',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf3img',
|
||||
new_name='section_three_img',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf3text',
|
||||
new_name='section_three_text',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf3title',
|
||||
new_name='section_three_title',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf2img',
|
||||
new_name='section_two_img',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf2text',
|
||||
new_name='section_two_text',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf2title',
|
||||
new_name='section_two_title',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf5subf5',
|
||||
new_name='sub_section_five',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf5subf5img',
|
||||
new_name='sub_section_five_img',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf5subf4',
|
||||
new_name='sub_section_four',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf5subf4img',
|
||||
new_name='sub_section_four_img',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf5subf1',
|
||||
new_name='sub_section_one',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf5subf1img',
|
||||
new_name='sub_section_one_img',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf5subf6',
|
||||
new_name='sub_section_six',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf5subf6img',
|
||||
new_name='sub_section_six_img',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf5subf3',
|
||||
new_name='sub_section_three',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf5subf3img',
|
||||
new_name='sub_section_three_img',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf5subf2',
|
||||
new_name='sub_section_two',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='servicespage',
|
||||
old_name='sf5subf2img',
|
||||
new_name='sub_section_two_img',
|
||||
),
|
||||
]
|
||||
0
services/migrations/__init__.py
Normal file
0
services/migrations/__init__.py
Normal file
BIN
services/migrations/__pycache__/0001_initial.cpython-310.pyc
Normal file
BIN
services/migrations/__pycache__/0001_initial.cpython-310.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
services/migrations/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
services/migrations/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
98
services/models.py
Normal file
98
services/models.py
Normal file
@@ -0,0 +1,98 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models
|
||||
from wagtail.fields import RichTextField
|
||||
from wagtail.admin.panels import FieldPanel, MultiFieldPanel
|
||||
from wagtail.models import Page
|
||||
|
||||
class ServicesPage(Page):
|
||||
section_one_title = RichTextField(blank=True)
|
||||
section_one_text = RichTextField(blank=True)
|
||||
section_one_img = RichTextField(blank=True)
|
||||
|
||||
|
||||
section_two_title = RichTextField(blank=True)
|
||||
section_two_text = RichTextField(blank=True)
|
||||
section_two_img = RichTextField(blank=True)
|
||||
|
||||
section_three_title = RichTextField(blank=True)
|
||||
section_three_text = RichTextField(blank=True)
|
||||
section_three_img = RichTextField(blank=True)
|
||||
|
||||
|
||||
section_four_title = RichTextField(blank=True)
|
||||
section_four_text = RichTextField(blank=True)
|
||||
section_four_img = RichTextField(blank=True)
|
||||
|
||||
|
||||
section_five_title = RichTextField(blank=True)
|
||||
section_five_text = RichTextField(blank=True)
|
||||
section_five_img = RichTextField(blank=True)
|
||||
|
||||
|
||||
sub_section_one = RichTextField(blank=True)
|
||||
sub_section_one_img = RichTextField(blank=True)
|
||||
|
||||
sub_section_two = RichTextField(blank=True)
|
||||
sub_section_two_img = RichTextField(blank=True)
|
||||
|
||||
sub_section_three = RichTextField(blank=True)
|
||||
sub_section_three_img = RichTextField(blank=True)
|
||||
|
||||
sub_section_four = RichTextField(blank=True)
|
||||
sub_section_four_img = RichTextField(blank=True)
|
||||
|
||||
sub_section_five = RichTextField(blank=True)
|
||||
sub_section_five_img = RichTextField(blank=True)
|
||||
|
||||
sub_section_six = RichTextField(blank=True)
|
||||
sub_section_six_img = RichTextField(blank=True)
|
||||
|
||||
|
||||
|
||||
content_panels = Page.content_panels + [
|
||||
MultiFieldPanel([
|
||||
FieldPanel('section_one_title'),
|
||||
FieldPanel('section_one_text'),
|
||||
FieldPanel('section_one_img'),
|
||||
], heading="Section 1"),
|
||||
|
||||
MultiFieldPanel([
|
||||
FieldPanel('section_two_title'),
|
||||
FieldPanel('section_two_text'),
|
||||
FieldPanel('section_two_img'),
|
||||
], heading="Section 2"),
|
||||
|
||||
MultiFieldPanel([
|
||||
FieldPanel('section_three_title'),
|
||||
FieldPanel('section_three_text'),
|
||||
FieldPanel('section_three_img'),
|
||||
], heading="Section 3"),
|
||||
|
||||
MultiFieldPanel([
|
||||
FieldPanel('section_four_title'),
|
||||
FieldPanel('section_four_text'),
|
||||
FieldPanel('section_four_img'),
|
||||
], heading="Section 4"),
|
||||
|
||||
MultiFieldPanel([
|
||||
FieldPanel('section_five_title'),
|
||||
FieldPanel('section_five_text'),
|
||||
FieldPanel('section_five_img'),
|
||||
], heading="Section 5"),
|
||||
|
||||
MultiFieldPanel([
|
||||
FieldPanel('sub_section_one'),
|
||||
FieldPanel('sub_section_one_img'),
|
||||
FieldPanel('sub_section_two'),
|
||||
FieldPanel('sub_section_two_img'),
|
||||
FieldPanel('sub_section_three'),
|
||||
FieldPanel('sub_section_three_img'),
|
||||
FieldPanel('sub_section_four'),
|
||||
FieldPanel('sub_section_four_img'),
|
||||
FieldPanel('sub_section_five'),
|
||||
FieldPanel('sub_section_five_img'),
|
||||
FieldPanel('sub_section_six'),
|
||||
FieldPanel('sub_section_six_img'),
|
||||
], heading="Section 5 Subfields"),
|
||||
]
|
||||
3
services/tests.py
Normal file
3
services/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
3
services/views.py
Normal file
3
services/views.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
Reference in New Issue
Block a user