1
restaurant-search/static/profile.html

58 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>
2015-03-12 01:48:21 +00:00
<th></th>
<th>Category</th>
2015-03-12 02:08:34 +00:00
<th class="text-right">Rating</th>
2015-03-01 09:52:53 +00:00
</tr>
</thead>
2015-03-02 06:42:02 +00:00
<tbody id="categories"></tbody>
<script id="template" type="text/x-handlers-template">
{{#each categories}}
2015-03-12 01:38:33 +00:00
<tr class="category_{{id}}">
2015-03-12 01:48:21 +00:00
<td><button type="button" data-categoryId="{{id}}" class="btn btn-xs btn-danger">&times;</button></td>
<td>{{description}}</td>
2015-03-12 02:08:34 +00:00
<td class="text-right">
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}}> Agree
2015-03-12 01:38:33 +00:00
</label>
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
2015-03-12 01:38:33 +00:00
</label>
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
2015-03-12 01:38:33 +00:00
</label>
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>