-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from ElDeveloper/webfleshout-the-revenge
Add data type and commands selection
- Loading branch information
Showing
5 changed files
with
109 additions
and
9 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{%extends base.html%} | ||
{%extends sitebase.html%} | ||
{%block content%} | ||
<h1>404: Page not found!</h1> | ||
{%end%} |
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,48 @@ | ||
{% extends sitebase.html %} | ||
{% autoescape None %} | ||
|
||
{%block head%} | ||
<script> | ||
$(function () { | ||
$('#data-types-tabs a:first').tab('show') | ||
}) | ||
</script> | ||
{%end%} | ||
|
||
{%block content %} | ||
|
||
<h1>Select Commands</h1> | ||
|
||
<ul class="nav nav-tabs" id="data-types-tabs"> | ||
{% for data_type in data_types %} | ||
<li><a href="#{{ data_type }}" data-toggle="tab">{{ data_type }}</a></li> | ||
{% end %} | ||
</ul> | ||
|
||
<form role="form" action="/analysis/wait/" method="post"> | ||
<input type="hidden" name="analysis-id" value="{{aid}}"> | ||
<div class="tab-content" style="height:300px"> | ||
{% for data_type in data_types %} | ||
<div class="tab-pane" id="{{ data_type }}"> | ||
<table class="table"> | ||
<tr> | ||
<th style="width:20px;"></th> | ||
<th>Command</th> | ||
</tr> | ||
{% for command in commands[data_type] %} | ||
<tr> | ||
<td style="width:20px;"> | ||
<input id="{{data_type}}#{{command}}" type="checkbox" name="commands" value="{{data_type}}#{{command}}"> | ||
</td> | ||
<td> | ||
<label style="font-weight:normal;" for="{{data_type}}#{{command}}">{{command}}</label> | ||
</td> | ||
</tr> | ||
{% end %} | ||
</table> | ||
</div> | ||
{% end %} | ||
</div> | ||
<button type="submit" class="btn btn-default">Start Processing</button> | ||
</form> | ||
{% end %} |
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