58 lines
2.6 KiB
HTML
58 lines
2.6 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">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<!-- categories -->
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>Category</th>
|
|
<th>Rating</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="categories"></tbody>
|
|
<script id="template" type="text/x-handlers-template">
|
|
{{#each categories}}
|
|
<tr class="category_{{id}}">
|
|
<td><button type="button" data-categoryId="{{id}}" class="btn btn-xs btn-danger">×</button></td>
|
|
<td>{{description}}</td>
|
|
<td>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="category_{{id}}" data-categoryId="{{id}}" value="1" {{checkMatch 1}}> Agree
|
|
</label>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="category_{{id}}" data-categoryId="{{id}}" value="-1" {{checkMatch -1}}> Disagree
|
|
</label>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="category_{{id}}" data-categoryId="{{id}}" value="0" {{checkMatch 0}}> Neither
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</script>
|
|
</table>
|
|
|
|
<!-- category adder -->
|
|
<div class="input-group">
|
|
<input type="text" class="form-control" id="newCategory" placeholder="New category description">
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-primary" id="addCategory"><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>
|