-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* first version of outline * status * bullet's style united * border added * different border added
- Loading branch information
1 parent
a845f1d
commit da46572
Showing
4 changed files
with
220 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Generated by Django 2.2.1 on 2020-05-23 16:37 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import theses.models | ||
import wagtail.core.blocks | ||
import wagtail.core.fields | ||
import wagtail.embeds.blocks | ||
import wagtail.images.blocks | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('wagtailcore', '0041_group_collection_permissions_verbose_name_plural'), | ||
('theses', '0036_thesiscoachingpage_body2'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='OutlineThesisSimple', | ||
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')), | ||
('outline_title', wagtail.core.fields.RichTextField()), | ||
('body', wagtail.core.fields.StreamField([('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('heading_linkable', theses.models.HeadingBlock(features=['h1', 'h2', 'h3', 'h4', 'h5', 'h6'], help_text='heading text')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('embed', wagtail.embeds.blocks.EmbedBlock()), ('rawHtml', wagtail.core.blocks.RawHTMLBlock())])), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
bases=('wagtailcore.page',), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% if link %} | ||
<a id="{{ link }}"></a> | ||
{% endif %} | ||
|
||
{{ value }} |
38 changes: 38 additions & 0 deletions
38
website/theses/templates/theses/outline_thesis_simple.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{% extends "theses/theses_base.html" %} | ||
{% load wagtailuserbar %} | ||
{% load wagtailcore_tags %} | ||
{% load static %} | ||
|
||
{% block content %} | ||
|
||
<style> | ||
.table{ | ||
outline-style: solid; | ||
outline-color: rgb(204, 204, 204); | ||
outline-width: 2px; | ||
} | ||
</style> | ||
|
||
<div class="container py-4"> | ||
<div class="row"> | ||
<div class="col-md-8 offset-md-2"> | ||
{% include_block page.outline_title %} | ||
<table class="table table-responsive mt-3 mb-2" role="grid"> | ||
|
||
<tbody class=".table-hover .table-striped"> | ||
|
||
<tr class="row-2" role="row"> | ||
<td> | ||
<div class="panel clearfix"> | ||
<h4 class="no_toc mt-1">Content</h4> | ||
{% include_block outline %} | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
{% include_block page.body %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |