1
restaurant-search/client/profile.html

66 lines
2.8 KiB
HTML
Raw Normal View History

2015-02-26 10:18:33 +00:00
<!DOCTYPE html>
<html>
<head>
2015-03-01 09:08:48 +00:00
<title>Search Profile</title>
2015-02-26 10:18:33 +00:00
<meta http-equiv="content-type" content="text/html; charset=utf-8">
2015-02-27 08:32:15 +00:00
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
2015-03-01 09:08:48 +00:00
<style type="text/css">
.form-horizontal .control-label {
text-align: left;
}
</style>
2015-02-26 10:18:33 +00:00
</head>
<body>
<div class="container">
<!-- busy spinner -->
<div class="page-header">
2015-03-01 09:08:48 +00:00
<h1><img id="spinner" alt="loading" class="pull-right" src="images/spinner.gif" style="display: none;" width="32" height="32">Search Profile</h1>
2015-02-26 10:18:33 +00:00
</div>
2015-03-01 09:59:54 +00:00
<!-- categories -->
2015-03-01 09:52:53 +00:00
<table class="table table-striped">
<thead>
<tr>
<th class="text-left">Category</th>
<th class="text-right">Rating</th>
</tr>
</thead>
2015-03-02 06:42:02 +00:00
<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_{{@key}}" categoryId="{{@key}}" value="1" {{checkMatch 1}}> Agree
</label>
<label class="radio-inline">
<input type="radio" name="category_{{@key}}" categoryId="{{@key}}" value="0" {{checkMatch 0}}> Neither
</label>
<label class="radio-inline">
<input type="radio" name="category_{{@key}}" categoryId="{{@key}}" value="-1" {{checkMatch -1}}> Disagree
</label>
</td>
</tr>
{{/each}}
</script>
2015-03-01 09:52:53 +00:00
</table>
2015-03-01 09:08:48 +00:00
2015-03-01 15:02:09 +00:00
<!-- category adder -->
2015-03-01 09:52:53 +00:00
<div class="input-group">
2015-03-02 06:42:02 +00:00
<input type="text" class="form-control" id="newCategory" placeholder="New category description">
2015-03-01 09:52:53 +00:00
<span class="input-group-btn">
2015-03-02 06:42:02 +00:00
<button class="btn btn-primary" id="addCategory"><span class="glyphicon glyphicon-plus"></span></button>
2015-03-01 09:52:53 +00:00
</span>
2015-02-26 10:18:33 +00:00
</div>
</div>
2015-03-02 06:42:02 +00:00
2015-02-27 08:32:15 +00:00
<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>
2015-03-01 15:02:09 +00:00
<script src="scripts/profile.js"></script>
2015-02-26 10:18:33 +00:00
</body>
</html>