Skip to content

Instantly share code, notes, and snippets.

@vigneshsarma
Created January 10, 2013 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vigneshsarma/4502768 to your computer and use it in GitHub Desktop.
Save vigneshsarma/4502768 to your computer and use it in GitHub Desktop.
formated with web-mod.el
<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">&times;</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>
@vigneshsarma
Copy link
Author

line 14 is suppose to be indented rt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment