Started working on tasks web view.

This commit is contained in:
2016-09-07 11:43:18 +02:00
parent b67436919e
commit 32a4abfa47
5 changed files with 61 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
from pillar.extension import PillarExtension
from .modules import blueprint
from . import task_manager
@@ -55,7 +54,10 @@ class AttractExtension(PillarExtension):
:rtype: list of flask.Blueprint objects.
"""
return [blueprint]
from . import modules, tasks
return [modules.blueprint, tasks.blueprint]
@property
def template_path(self):

11
attract/tasks.py Normal file
View 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')

View File

@@ -1,6 +1,27 @@
| {% extends 'layout.html' %}
| {% extends 'attract/layout.html' %}
| {% block page_title %}Attract{% endblock %}
| {% block body %}
h1 Attract
p This is Attract. Templates are found.
#page-container
#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 %}

View File

@@ -0,0 +1 @@
| {% extends 'layout.html' %}

View 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 %}