Started working on tasks web view.
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
from pillar.extension import PillarExtension
|
from pillar.extension import PillarExtension
|
||||||
|
|
||||||
from .modules import blueprint
|
|
||||||
from . import task_manager
|
from . import task_manager
|
||||||
|
|
||||||
|
|
||||||
@@ -55,7 +54,10 @@ class AttractExtension(PillarExtension):
|
|||||||
|
|
||||||
:rtype: list of flask.Blueprint objects.
|
:rtype: list of flask.Blueprint objects.
|
||||||
"""
|
"""
|
||||||
return [blueprint]
|
|
||||||
|
from . import modules, tasks
|
||||||
|
|
||||||
|
return [modules.blueprint, tasks.blueprint]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def template_path(self):
|
def template_path(self):
|
||||||
|
11
attract/tasks.py
Normal file
11
attract/tasks.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import logging
|
||||||
|
|
||||||
|
from flask import Blueprint, render_template
|
||||||
|
|
||||||
|
blueprint = Blueprint('attract.tasks', __name__, url_prefix='/tasks')
|
||||||
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@blueprint.route('/')
|
||||||
|
def index():
|
||||||
|
return render_template('attract/tasks/index.html')
|
@@ -1,6 +1,27 @@
|
|||||||
| {% extends 'layout.html' %}
|
| {% extends 'attract/layout.html' %}
|
||||||
| {% block page_title %}Attract{% endblock %}
|
| {% block page_title %}Attract{% endblock %}
|
||||||
| {% block body %}
|
| {% block body %}
|
||||||
h1 Attract
|
#page-container
|
||||||
p This is Attract. Templates are found.
|
#page-header
|
||||||
|
.page-title-icons
|
||||||
|
i.pi-blender-cloud
|
||||||
|
i.pi-heart-filled
|
||||||
|
i.pi-users
|
||||||
|
.page-title
|
||||||
|
| Attract
|
||||||
|
.page-title-summary
|
||||||
|
| Manage your film project. This is about people.
|
||||||
|
|
||||||
|
#page-content
|
||||||
|
.page-triplet-container.homepage
|
||||||
|
.row
|
||||||
|
.col-md-4
|
||||||
|
h2 The edit
|
||||||
|
p one column
|
||||||
|
.col-md-4
|
||||||
|
h2 Tasks
|
||||||
|
a(href="{{ url_for('attract.tasks.index') }}") Go to task manager
|
||||||
|
.col-md-4
|
||||||
|
h2 Other stuff
|
||||||
|
p three column
|
||||||
| {% endblock %}
|
| {% endblock %}
|
||||||
|
1
src/templates/attract/layout.jade
Normal file
1
src/templates/attract/layout.jade
Normal file
@@ -0,0 +1 @@
|
|||||||
|
| {% extends 'layout.html' %}
|
21
src/templates/attract/tasks/index.jade
Normal file
21
src/templates/attract/tasks/index.jade
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
| {% extends 'attract/layout.html' %}
|
||||||
|
| {% block page_title %}Attract{% endblock %}
|
||||||
|
| {% block body %}
|
||||||
|
#page-container
|
||||||
|
#page-header
|
||||||
|
.page-title
|
||||||
|
| Attract - tasks
|
||||||
|
|
||||||
|
#page-content
|
||||||
|
.page-triplet-container.homepage
|
||||||
|
.row
|
||||||
|
.col-md-4
|
||||||
|
h2 The edit
|
||||||
|
p one column
|
||||||
|
.col-md-4
|
||||||
|
h2 Tasks
|
||||||
|
a(href="{{ url_for('attract.tasks.index') }}") Go to task manager
|
||||||
|
.col-md-4
|
||||||
|
h2 Other stuff
|
||||||
|
p three column
|
||||||
|
| {% endblock %}
|
Reference in New Issue
Block a user