1
restaurant-search/client/profile.html
2015-03-03 19:32:02 +09:00

66 lines
2.8 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"></tbody>
<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}}" categoryId="{{id}}" value="1" {{checkMatch 1}}> Agree
</label>
<label class="radio-inline">
<input type="radio" name="category_{{id}}" categoryId="{{id}}" value="-1" {{checkMatch -1}}> Disagree
</label>
<label class="radio-inline">
<input type="radio" name="category_{{id}}" 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>