1
restaurant-search/client/profile.html

57 lines
2.6 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-02-26 10:18:33 +00:00
</head>
<body>
<div class="container">
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">
2015-03-11 13:43:31 +00:00
<input type="radio" name="category_{{id}}" data-categoryId="{{id}}" value="1" {{checkMatch 1}}> Agree
</label>&nbsp;
2015-03-02 06:42:02 +00:00
<label class="radio-inline">
2015-03-11 13:43:31 +00:00
<input type="radio" name="category_{{id}}" data-categoryId="{{id}}" value="-1" {{checkMatch -1}}> Disagree
</label>&nbsp;
2015-03-02 06:42:02 +00:00
<label class="radio-inline">
2015-03-11 13:43:31 +00:00
<input type="radio" name="category_{{id}}" data-categoryId="{{id}}" value="0" {{checkMatch 0}}> Neither
</label>&nbsp;
<button type="button" data-categoryId="{{id}}" class="btn btn-xs btn-danger">&times;</button>
2015-03-02 06:42:02 +00:00
</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-03-03 12:40:27 +00:00
2015-02-26 10:18:33 +00:00
</body>
</html>