First commit for a Flask-based Attract
This commit is contained in:
98
attract/application/templates/layout.html
Normal file
98
attract/application/templates/layout.html
Normal file
@@ -0,0 +1,98 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Attract</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<link href="{{ url_for('static', filename='assets/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
<link href="{{ url_for('static', filename='assets/css/chosen.min.css') }}" rel="stylesheet">
|
||||
<link href="{{ url_for('static', filename='assets/css/bootstrap-markdown.min.css') }}" rel="stylesheet">
|
||||
<link href="{{ url_for('static', filename='assets/css/dataTables.bootstrap.css') }}" rel="stylesheet">
|
||||
<link href="{{ url_for('static', filename='assets/css/attract.css') }}" rel="stylesheet">
|
||||
<link href="{{ url_for('static', filename='assets/css/bootstrap-colorpicker.min.css') }}" rel="stylesheet">
|
||||
|
||||
<link rel="shortcut icon" href="{{ url_for('static', filename='assets/ico/favicon.png') }}">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ url_for('static', filename='assets/ico/apple-touch-icon-144-precomposed.png') }}">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ url_for('static', filename='assets/ico/apple-touch-icon-114-precomposed.png') }}">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ url_for('static', filename='assets/ico/apple-touch-icon-72-precomposed.png') }}">
|
||||
<link rel="apple-touch-icon-precomposed" href="{{ url_for('static', filename='assets/ico/apple-touch-icon-57-precomposed.png') }}">
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button data-target=".navbar-collapse" data-toggle="collapse" class="navbar-toggle" type="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a href="/" class="navbar-brand">Attract</a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
|
||||
<li id="fat-menu" class="dropdown">
|
||||
<a href="#" id="drop3" class="dropdown-toggle" data-toggle="dropdown">User <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="drop3">
|
||||
<li><a role="menuitem" tabindex="-1" href="">Tasks</a></li>
|
||||
<li><a role="menuitem" tabindex="-1" href="">Profile</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a role="menuitem" tabindex="-1" href="">Log out</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div><!--/.navbar-collapse -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{% block sidebar %}
|
||||
<div class="col-md-3">
|
||||
<div class="list-group">
|
||||
<a href="{{url_for('shots.index')}}" class="list-group-item {% if title == 'shots' %}active{% endif %}">Shots</a>
|
||||
<a href="/stats" class="list-group-item {% if title == 'stats' %}active{% endif %}">Stats</a>
|
||||
</div>
|
||||
</div><!--/end col-md-3 -->
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
{% endblock %}
|
||||
</div><!--/row-->
|
||||
<hr>
|
||||
|
||||
<footer>
|
||||
<p>Attract 3 - Python powered</p>
|
||||
</footer>
|
||||
|
||||
</div><!--/.fluid-container-->
|
||||
|
||||
{% assets filters="jsmin",
|
||||
output="assets/packed/attract.js",
|
||||
"assets/js/jquery.min.js",
|
||||
"assets/js/bootstrap.min.js",
|
||||
"assets/js/jquery.dataTables.min.js",
|
||||
"assets/js/jquery.dataTables.fnGetColumnData.js",
|
||||
"assets/js/jquery.dataTables.fnFilterClear.js",
|
||||
"assets/js/jquery.dataTables.bootstrap.js",
|
||||
"assets/js/jquery.chosen.min.js",
|
||||
"assets/js/bootstrap-markdown.js",
|
||||
"assets/js/markdown.js",
|
||||
"assets/js/jquery.attract.js" %}
|
||||
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
|
||||
{% endassets %}
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
47
attract/application/templates/shots/index.html
Normal file
47
attract/application/templates/shots/index.html
Normal file
@@ -0,0 +1,47 @@
|
||||
{% extends 'layout.html' %}
|
||||
|
||||
{% block body %}
|
||||
<div class="col-md-9">
|
||||
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped" id="shots">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Shot Name</th>
|
||||
<th>Description</th>
|
||||
<th>Duration</th>
|
||||
<th>Status</th>
|
||||
<th>Tasks</th>
|
||||
<th>Notes</th>
|
||||
<th width="8%"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for shot in shots %}
|
||||
<tr id="row_{{shot['id']}}">
|
||||
<td><a href="{{url_for('shots.view', shot_id=shot['id'])}}">{{shot['name']}}</a></td>
|
||||
<td>{{shot['description']}}</td>
|
||||
<td></td>
|
||||
<td><span class="label label-default" style="background-color:<?php echo $shot['status_color'] ?>">{{shot['status']}}</span></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>
|
||||
<a class="btn btn-default btn-xs" href="/shots/edit/<?php echo $shot['shot_id'] ?>"><i class="glyphicon glyphicon-edit"></i> Edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>Shot Name</th>
|
||||
<th>Description</th>
|
||||
<th>Duration</th>
|
||||
<th>Status</th>
|
||||
<th>Tasks</th>
|
||||
<th>Notes</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
16
attract/application/templates/shots/view.html
Normal file
16
attract/application/templates/shots/view.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{% extends 'layout.html' %}
|
||||
|
||||
{% block body %}
|
||||
<div class="col-md-9">
|
||||
<h2>{{shot['name']}}</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<p>Picture goes here</p>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<p>{{shot['description']}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user