<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>I</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="lib/alertdialogs/css/jquery.alerts.css" rel="stylesheet" type="text/css" media="screen" />
<link href="lib/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
</head>
<body>
<div class="container-fluid">
<div class="navbar">
<div class="container-fluid">
<div class="underline">
<div class="top-head">
<div class="row">
<a class="big-title brand" href="#">I</a>
</div>
<div class="row">
<span>Welcome, Tom</span>
<a class="pull-right" href="index.html"><i class="icon-off"></i><span class="underline">Logout</span></a>
</div>
</div>
</div>
</div>
</div>
<div class="row-fluid">
<div class="sidebar-nav well">
<div class="nav">
<li><a href="accounts.html">U</a></li>
<li><a href="devicesmanagement.html">D</a></li>
<li class="active"><a href="testcasemanagement.html">T</a></li>
</div>
</div>
<div class="main-content">
<div class="page-header">
<span class="h2-small">TestCase List</span>
<a class="pull-right" role="button" id="addcasebut"><i class="icon-plus"></i>Add Case</a>
</div>
<div class="container-fluid">
<form class="form
pull-right form-horizontal">
<input id="searchiput" type="text" class="search-query">
<i id="search" class="icon-search move-left"></i></input>
</form>
</div>
<div id="distable">
<table class="table table-bordered">
<thead>
<tr>
<th><input id="checkstats" type="checkbox"/></th>
<th>Id</th>
<th>CaseName</th>
<th>Roles</th>
<th>stats</th>
<th>Action</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="devicetable" class="container-fluid" style="display: none;">
<table class="table table-bordered">
<thead>
<tr>
<th><input id="checkstats" type="checkbox"/></th>
<th>Id</th>
<th>CaseName</th>
<th>Roles</th>
<th>stats</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr title="testcase" class="{{item}}">
<td><input type="checkbox"/></td>
<td>{{_id}}</td>
<td>{{name}}</td>
<td>{{roles}}</td>
<td>{{state}}</td>
<td>
<a title="edit"><i class="icon-edit"></i></a>
<a title="start"><i class="icon-play"></i></a>
<a title="stop"><i class="icon-pause"></i></a>
<a title="remove"><i class="icon-remove"></i></a>
<a title="output"><i class="icon-file"></i></a>
</td>
</tr>
</tbody>
</table>
</div>
<div id="tabs" class="container-fluid" style="display: none;">
<ul class="nav nav-tabs" id="service-tabs">
<li id="listats"><a href="#stats" data-toggle="tab">Running Status</a></li>
<li id="liroles"><a href="#roles" data-toggle="tab">Roles</a></li>
<li id="lilog"><a href="#rolelog" data-toggle="tab">Rolelog</a></li>
<a id="closestatus" class="pull-right"><i class="icon-remove"></i></a>
</ul>
<div class="tab-content">
<div class="tab-pane" id="stats">
<fieldset>
<legend >TestCase Running Status</legend>
<div id="runstatus" class="container" width="500" height="250" >
</div>
</fieldset>
</div>
<div class="tab-pane" id="roles">
<fieldset>
<legend>The Roles of The TestCase</legend>
<div id="rolestatus" class="container" width="500" height="250" >
</div>
</fieldset>
</div>
<div class="tab-pane " id="rolelog">
<fieldset>
<legend>The Log of The Device</legend>
<div id="devicestatus" class="container" width="500" height="250" style="display: none;">
<table class="table table-bordered">
<thead>
<tr>
<th>LogTime</th>
<th>LogMsg</th>
</tr>
</thead>
<tbody id="logtable">
</tbody>
</table>
</div>
</fieldset>
</div>
</div>
</div>
<div id="outputtable" class="container-fluid" style="display: none;">
<fieldset>
<legend >TestCase OutPut</legend>
<a id="closeoutputtable" class="pull-right"><i class="icon-remove"></i></a>
<div>
<table class="table table-bordered">
<thead>
<tr>
<th>OutputTime</th>
<th>Role</th>
<th>Output</th>
</tr>
</thead>
<tbody id="output">
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- popup window for Add -->
<!-- ko with: creatingPlan -->
<div id="addcase" class="modal hide fade" role="dialog" ">
<div class="modal-header">
<h3>add testcase</h3>
</div>
<div class="modal-body">
<img id="loading" src="images/loading.gif" style="display:none;">
<form name="form" method="POST" enctype="multipart/form-data">
<p>Please select a file and click Upload button</p>
<div class="control-group">
<input type="file" name="fileToUpload" id="fileToUpload"/>
</div>
<div class="pull-right">
<button id="uploadsubmit" class="btn btn-save">upload</button>
<button id="uploadclose"
class="btn">Close</button>
</div>
</form>
</div>
</div>
<!-- popup window for Add -->
<!-- ko with: creatingPlan -->
<div id="updatecase" class="container-fluid modal mediummodal hide fade" tabindex="-1" >
<div id="modalhead" class="modal-header">
<button type="button" class="close" id="close">x</button>
<span class="text-left"><label>Attached Device To TestCase</label></span>
</div>
<!--modalbody-->
<div class="modal-body">
<form class="form-horizontal ">
<div class="control-group required">
<label class="control-label">TestCaseName:</label>
<div class="controls">
<input id="testcaseid" class="input-large hide" type="text" style="display:none;"/>
<input id="testcasename" class="input-large" type="text"/>
</div>
</div>
<div id="lists" class="row container-fluid">
<div id="devicelist" class="span0 container-fluid well-large" ></div>
<div id="displaydevicelist" class="span0 container-fluid well-large" style="display: none;">
<label>DevicesList</label>
<select id="deviceselect" size="5" multiple="multiple" class="selet-pending">
<option class="{{item}}" value ="{{_id}}">{{name}}</option>
</select>
</div>
</div>
</form>
<div id="helplist" class="span0 container-fluid well-large"></div>
</div>
<div class="pull-right">
<button id="save" class="btn btn-save">Save</button>
<button id="close1"
class="btn">Close</button>
</div>
</div>
<!-- /ko -->
<script type="text/javascript" src="lib/jquery/jquery.js"></script>
<script type="text/javascript" src="lib/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="lib/json2.js"></script>
<script type="text/javascript" src="lib/json2Template.js"></script>
<script type="text/javascript" src="lib/upload/ajaxfileupload.js"></script>
<script type="text/javascript" src="js/testcase.js"></script>
<script type="text/javascript" src="lib/alertdialogs/js/jquery.ui.draggable.js"></script>
<script type="text/javascript" src="lib/alertdialogs/js/jquery.alerts.js"></script>
</body>
</html>