66 lines
2.9 KiB
HTML
66 lines
2.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Search Profile</title>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
|
|
<style type="text/css">
|
|
.form-horizontal .control-label {
|
|
text-align: left;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<!-- busy spinner -->
|
|
<div class="page-header">
|
|
<h1><img id="spinner" alt="loading" class="pull-right" src="images/spinner.gif" style="display: none;" width="32" height="32">Search Profile</h1>
|
|
</div>
|
|
|
|
<!-- categories -->
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-left">Category</th>
|
|
<th class="text-right">Rating</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="categories">
|
|
<script id="template" type="text/x-handlers-template">
|
|
{{#each categories}}
|
|
<tr>
|
|
<td class="text-left">{{description}}</td>
|
|
<td class="text-right">
|
|
<label class="radio-inline">
|
|
<input type="radio" name="category_{{id}}" value="1" {{checkMatch 1}}> Agree
|
|
</label>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="category_{{id}}" value="0" {{checkMatch 0}}> Neither
|
|
</label>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="category_{{id}}" value="-1" {{checkMatch -1}}> Disagree
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</script>
|
|
</tbody>
|
|
</table>
|
|
|
|
<!-- category adder -->
|
|
<div class="input-group">
|
|
<input type="text" class="form-control" placeholder="New category description">
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-primary"><span class="glyphicon glyphicon-plus"></span></button>
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
<script src="bower_components/jquery/dist/jquery.js"></script>
|
|
<script src="bower_components/handlebars/handlebars.js"></script>
|
|
<script src="bower_components/underscore/underscore.js"></script>
|
|
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
|
|
<script src="scripts/profile.js"></script>
|
|
</body>
|
|
</html>
|