Created
January 10, 2013 15:11
-
-
Save vigneshsarma/4502768 to your computer and use it in GitHub Desktop.
formated with web-mod.el
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<link href="static/bootstrap/css/bootstrap.min.css" rel="stylesheet"> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<script src="static/bootstrap/js/bootstrap.min.js"></script> | |
<script src="static/script.js"></script> | |
<link href="static/main.css" rel="stylesheet"> | |
<title>Address Book</title> | |
</head> | |
<body> | |
<h1>Address Book</h1> | |
<div class="main-part pull-left"> | |
{%if addresses%} | |
{%if message%} | |
<div class="alert alert-success"> | |
<button type="button" class="close" data-dismiss="alert">×</button> | |
<strong>Success: </strong> | |
{{message}} | |
</div> | |
{%endif%} | |
<div class="pagination pagination-small"> | |
<ul> | |
{%for p in pages %} | |
<li {%if p == page %}class="active"{%endif%}><a href="?p={{p}}">{{p}}</a></li> | |
{%endfor%} | |
</ul> | |
</div> | |
<table class="table table-bordered table-striped table-condensed"> | |
<tr> | |
<td>Unique String</td> | |
<td>Name</td> | |
<!-- <td>Address</td> --> | |
<td>Pincode</td> | |
<td>Delete</td> | |
</tr> | |
{% for address in addresses %} | |
<tr> | |
<td>{{ address.unique_string|escape }}</td> | |
<td>{{ address.name|escape }}</td> | |
<!-- <td>{{ address.address|escape }}</td> --> | |
<td><code>{{ address.pincode|escape }}</code></td> | |
<td><a href="/{{address.key().id()}}/delete"><small>delete</small></a></td> | |
</tr> | |
{% endfor %} | |
</table> | |
{%else%} | |
<strong><p class="text-info">It seem's you haven't added any addresses!!!</p></strong> | |
{%endif%} | |
<div class="pagination pagination-small"> | |
<ul> | |
{%for p in pages %} | |
<li {%if p == page %}class="active"{%endif%}><a href="?p={{p}}">{{p}}</a></li> | |
{%endfor%} | |
</ul> | |
</div> | |
</div> | |
<div class="sidebar pull-right"> | |
<h3></h3> | |
<ul class="nav nav-list"> | |
<li class="active"><a href="/"><i class="icon-home"></i>All Addresses</a><li> | |
<li><a href="/print"><i class="icon-print"></i>Print</a><li> | |
<li><a href="#" id="add-bulk-form-show"><i class="icon-inbox"></i>Add Bulk</a><li> | |
<li><a href="#" id="add-single-form-show"><i class="icon-plus"></i>Add Address</a><li> | |
<li class="divider"></li> | |
<li><a href="{{logout_url}}" id="add-single-form-show"><i class="icon-off"></i>{{logout_url_text}}</a><li> | |
</ul> | |
</div> | |
{%include "templates/_add_one_address_form.html"%} | |
{%include "templates/_add_bulk_address_form.html"%} | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
line 14 is suppose to be indented rt?