Add full_width and limited_width templates.

This commit is contained in:
Stephan Porada 2019-10-24 13:13:34 +02:00
parent 6f8a8dbc77
commit dce834c9a1
22 changed files with 101 additions and 28 deletions

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block page_content %}
<div class="page-header">

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block page_content %}
<div class="page-header">

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block page_content %}
<div class="page-header">

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "full_width.html.j2" %}
{% block page_content %}
<div class="col s12">

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block page_content %}
<div class="col s12 m6">

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block page_content %}
<div class="col s12 m8">

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block page_content %}
<div class="col s12 m4">

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block page_content %}
<div class="col s12 m4">

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block page_content %}
<div class="col s12 m4">

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block page_content %}
<div class="col s12 m4">

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block title %}Opaque - Confirm your account{% endblock %}

View File

@ -24,8 +24,8 @@
{% if current_user.is_dark == True %}
DarkReader.enable({
brightness: 100,
contrast: 90,
sepia: 10
contrast: 100,
sepia: 0
});
{% else %}
DarkReader.disable();
@ -182,15 +182,9 @@
</header>
<main class="grey lighten-5">
<div class="container">
<div class="row">
<div class="col s12">
<h2>{% if title %}{{ title }}{% else %}Unnamed page{% endif %}</h2>
</div>
{% block page_content %}
{% block main_block %}
{% endblock %}
</div>
</div>
</main>
<footer class="page-footer">

View File

@ -0,0 +1,11 @@
{% extends "base.html.j2" %}
{% block main_block %}
<div class="row">
<div class="col s12">
<h2>{% if title %}{{ title }}{% else %}Unnamed page{% endif %}</h2>
</div>
{% block page_content %}
{% endblock %}
</div>
{% endblock %}

View File

@ -0,0 +1,13 @@
{% extends "base.html.j2" %}
{% block main_block %}
<div class="container">
<div class="row">
<div class="col s12">
<h2>{% if title %}{{ title }}{% else %}Unnamed page{% endif %}</h2>
</div>
{% block page_content %}
{% endblock %}
</div>
</div>
{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block page_content %}
<script>
@ -84,6 +84,7 @@
<!-- Confirm deletion of job with modal dialogue
Modal Trigger-->
<a href="#modal-confirm-delete" class="waves-effect waves-light btn red modal-trigger"><i class="material-icons left">delete</i>Delete Corpus</a>
<a href="{{ url_for('main.corpus_analysis', corpus_id=corpus.id) }}" class="waves-effect waves-light btn "><i class="material-icons left">help</i>Analyse</a>
<!-- Modal Strucutre -->
<div id="modal-confirm-delete" class="modal">
<div class="modal-content">

View File

@ -0,0 +1,54 @@
{% extends "full_width.html.j2" %}
{% block page_content %}
<div class="col s12 m9 l9">
<div class="card">
<div class="card-content">
<span class="card-title">Query Results</span>
<table class="responsive highlight">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
{% for i in range(0,51) %}
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
<div class="col s12 m3 l3 sticky">
<div class="card">
<div class="card-content">
<span class="card-title">Card Title</span>
<table class="responsive highlight">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
</div>
</div>
</div>
{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block page_content %}
<div class="col s12 m4">

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block page_content %}
<div class="col s12 m4">

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block page_content %}
<script>

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block page_content %}
<div class="col s12 m4">

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block page_content %}
<div class="col s12 m4">

View File

@ -1,4 +1,4 @@
{% extends "base.html.j2" %}
{% extends "limited_width.html.j2" %}
{% block page_content %}
<div class="col s12 m4">