Created
June 24, 2016 17:48
-
-
Save davo/8a763a49f4369b6a08a75dfefd5709d7 to your computer and use it in GitHub Desktop.
Plantilla para Tabla usando Sheetrock.js + Handlebars.js
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title>Sheetsee Demo Tabla</title> | |
<meta name='viewport' content='width=device-width, initial-scale=1.0'/> | |
<script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.js'></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-sheetrock/1.0.1/dist/sheetrock.min.js"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/3.0.2/handlebars.min.js"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/list.js/1.1.1/list.min.js"></script> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css"> | |
<style> | |
html { | |
position: relative; | |
min-height: 100%; | |
} | |
body { | |
padding-top: 50px; | |
margin-bottom: 60px; | |
} | |
.footer { | |
position: absolute; | |
bottom: 0; | |
width: 100%; | |
/* Set the fixed height of the footer here */ | |
background-color: #f5f5f5; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="panel panel-default"> | |
<div class="panel-heading"> | |
<h1>Sheetrock.js + Handlebards.js</h1> | |
<h2>Properati</h2> | |
<h3>Alquileres en CABA, 2016</h3> | |
</div> | |
<div class="panel-body"> | |
<div id="loading">Cargando datos...</div> | |
<div class="container-fluid"> | |
<table class="table table-hover" id="properati"> | |
<script id="template" type="text/x-handlebars-template"> | |
<tr> | |
<td>{{cells.created_on}}</td> | |
<td class="placename">{{cells.place_name}}</td> | |
<td>{{cells.property_type}}</td> | |
<td>{{cells.currency}}</td> | |
<td>{{cells.price}}</td> | |
<td>{{cells.surface_covered_in_m2}}</td> | |
</tr> | |
</script> | |
</table> | |
</div> | |
</div> | |
</div> | |
</div> | |
<footer class="footer"> | |
<div class="container"> | |
<p class="navbar-text"><a href="https://docs.google.com/spreadsheet/ccc?key=1tPbgHcFoX1snKdCC5NdrRYST5WovHcg6fjfM0_e7kiE&usp=drive_web#gid=1783991526" target="_blank">Google Sheet Público</a></p> | |
<p class="navbar-text navbar-right">Datos provistos por <a href='http://www.properati.com.ar'>Properati</a></p> | |
</div> | |
</footer> | |
<script type="text/javascript" src="js/template.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment