Skip to content

Instantly share code, notes, and snippets.

@edurenye
Last active August 29, 2015 14:02
Show Gist options
  • Save edurenye/74bcab173f9671380754 to your computer and use it in GitHub Desktop.
Save edurenye/74bcab173f9671380754 to your computer and use it in GitHub Desktop.
festes
<!doctype html>
<html>
<head>
<title>Gestor de Festes</title>
<link rel="stylesheet" href="/static/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/css/style.css">
<link rel="stylesheet" href="/static/css/festescat.css">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/js/autocomplete.js"></script>
<script type="text/javascript" src="/static/js/festescat.js"></script>
<script type="text/javascript" src="http://www.openlayers.org/api/OpenLayers.js"></script>
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBp3Of6Fiwrtqs2U7XAu0nmcUSr4AkSAj0">
</script>
<script type="text/javascript" src="http://api.facilmap.org/facilmap.js"></script>
<!--<script type="text/javascript" src="/static/js/gmaps.js"></script>-->
<meta name="author" content="Eduard Reñé and Víctor Diaz">
<meta name="description" content="Directori de festes de Catalunya">
<meta name="keywords" content="catalunya, festes, events, festa major">
</head>
<body>
<header class="navbar navbar-static-top bs-docs-nav" id="top" role="banner">
<div class="container-fluid">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="/" class="navbar-brand">Festes.cat</a>
</div>
<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
<ul class="nav navbar-nav">
<li class="active">
<a href="/">Index</a>
</li>
<li>
<a href="/festes/">Festes</a>
</li>
<li>
<a href="/ubicacions/">Ubicacions</a>
</li>
<li>
<a href="/events/">Events</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="/user/patata/">patata</a></li>
<li><a href="/logout/">LOGOUT</a></li>
</ul>
</nav>
</div>
</header>
<div class="container-fluid">
<div class="row">
<div id="LlistaElems" class="col-md-8">
<span vocab="http://schema.org/" typeof="EntertainmentBusiness">
<h1>Festa</h1>
<span vocab="http://schema.org/" typeof="EntertainmentBusiness">
<form id='formulari' method="PUT" action="delete/">
<button class="btn btn-primary" type="submit">
<span class="glyphicon glyphicon-remove"> Elimina la festa</span>
</button>
</form>
<div class="new-button">
<form id='formulari' method="PUT" action="edit/">
<button class="btn btn-primary" type="submit">
<span class="glyphicon glyphicon-pencil"> Edita la Festa</span>
</button>
</form>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-8">
<p>Nom: <span property="name">patata party</span></p>
<p>Data d'inici: Jan. 22, 2015, 10:30 p.m.</p>
<p>Data de finalització: Jan. 24, 2015, 6 a.m.</p>
<p>Categoria: Festa Major</p>
<p>Descripció: hsuduhu</p>
<span rel="location">
<span typeof="Place">
<p>Localitat: <span property="addressLocality">Lleida</span></p>
</span>
</span>
<h2>Events</h2>
<ul>
<span property="event" resource="/events/1/" typeof="Event"></span>
<li><p><a href="/events/1/"><h3>Concert dels Catarres</h3></a></p></li>
</ul>
<div id="reviews">
<div id="communityVotes">
<div id="rating" class="ratingBox">3.1</div>
<div class="starsContainer">
<ul onmouseout="javascript:mostrarPuntuacio(mediaInfo.rating)" class="star-rating">
<li style="width: 80px;" id="current-rating" class="current-rating">5</li>
<li><a onmouseover="javascript:mostrarPuntuacio(1)" class="two-stars" title="1 estrella de 5" href="javascript:puntuar(1,&quot;patata&quot;,1)">1</a></li>
<li><a onmouseover="javascript:mostrarPuntuacio(2)" class="four-stars" title="2 estrelles de 5" href="javascript:puntuar(2,&quot;patata&quot;,1)">2</a></li>
<li><a onmouseover="javascript:mostrarPuntuacio(3)" class="six-stars" title="3 estrelles de 5" href="javascript:puntuar(3,&quot;patata&quot;,1)">3</a></li>
<li><a onmouseover="javascript:mostrarPuntuacio(4)" class="eight-stars" title="4 estrelles de 5" href="javascript:puntuar(4,&quot;patata&quot;,1)">4</a></li>
<li><a onmouseover="javascript:mostrarPuntuacio(5)" class="ten-stars" title="5 estrelles de 5" href="javascript:puntuar(5,&quot;patata&quot;,1)">5</a></li>
</ul>
</div>
</div>
</div>
<div id="createReview" class="hidden">
<form id='formulari_review' method="POST" action="/festes/1/reviews/create/">
<input type='hidden' name='csrfmiddlewaretoken' value='OeV24CbZyaEGNSEllqvMneo8o2ekA1MY' />
<table>
<tr><th><label for="id_rating">Rating(stars):</label></th><td><select id="id_rating" name="rating">
<option value="1">one</option>
<option value="2">two</option>
<option value="3" selected="selected">three</option>
<option value="4">four</option>
<option value="5">five</option>
</select></td></tr>
<tr><th><label for="id_comment">Comment:</label></th><td><textarea cols="40" id="id_comment" name="comment" rows="10">
</textarea></td></tr>
<tr><th><label for="id_user">User:</label></th><td><select id="id_user" name="user">
<option value="1" selected="selected">admin</option>
<option value="2">patata</option>
</select><input id="initial-id_user" name="initial-user" type="hidden" value="1" /></td></tr>
<tr><th><label for="id_festa">Festa:</label></th><td><select id="id_festa" name="festa">
<option value="" selected="selected">---------</option>
<option value="1">patata party</option>
</select></td></tr>
</table>
<input type="submit" value="Guarda">
</form>
</div>
<h3>Reviews</h3>
<div class="hidden">
<span rel="aggregateRating">
<p typeof="AggregateRating">
Mitjana del ratio
<span property="ratingValue">3.1</span>
de <span property="reviewCount">10</span>
reviews
</p>
</span>
</div>
<ul rel="review">
<li typeof="Review">
<p rel="reviewRating" typeof="Rating">
<span property="worstRating" content="1"></span>
<span property="ratingValue">3</span>
stars
<span property="bestRating" content="5"></span>
<p property="description">gfhkgfhkgfhjd</p>
<p>Creat per <span property="author">patata</span>
on <span property="publishDate">June 12, 2014</span>
</p>
</li>
<li typeof="Review">
<p rel="reviewRating" typeof="Rating">
<span property="worstRating" content="1"></span>
<span property="ratingValue">3</span>
stars
<span property="bestRating" content="5"></span>
<p property="description">hfhgfjf</p>
<p>Creat per <span property="author">patata</span>
on <span property="publishDate">June 12, 2014</span>
</p>
</li>
<li typeof="Review">
<p rel="reviewRating" typeof="Rating">
<span property="worstRating" content="1"></span>
<span property="ratingValue">3</span>
stars
<span property="bestRating" content="5"></span>
<p property="description">jhgjhfhj</p>
<p>Creat per <span property="author">patata</span>
on <span property="publishDate">June 12, 2014</span>
</p>
</li>
<li typeof="Review">
<p rel="reviewRating" typeof="Rating">
<span property="worstRating" content="1"></span>
<span property="ratingValue">3</span>
stars
<span property="bestRating" content="5"></span>
<p property="description">jjhfjhfjhj</p>
<p>Creat per <span property="author">patata</span>
on <span property="publishDate">June 12, 2014</span>
</p>
</li>
<li typeof="Review">
<p rel="reviewRating" typeof="Rating">
<span property="worstRating" content="1"></span>
<span property="ratingValue">3</span>
stars
<span property="bestRating" content="5"></span>
<p property="description">fdytduy</p>
<p>Creat per <span property="author">patata</span>
on <span property="publishDate">June 12, 2014</span>
</p>
</li>
<li typeof="Review">
<p rel="reviewRating" typeof="Rating">
<span property="worstRating" content="1"></span>
<span property="ratingValue">5</span>
stars
<span property="bestRating" content="5"></span>
<p property="description">5 estrellas partyyy</p>
<p>Creat per <span property="author">patata</span>
on <span property="publishDate">June 13, 2014</span>
</p>
</li>
<li typeof="Review">
<p rel="reviewRating" typeof="Rating">
<span property="worstRating" content="1"></span>
<span property="ratingValue">4</span>
stars
<span property="bestRating" content="5"></span>
<p property="description">dfdhgj</p>
<p>Creat per <span property="author">patata</span>
on <span property="publishDate">June 13, 2014</span>
</p>
</li>
<li typeof="Review">
<p rel="reviewRating" typeof="Rating">
<span property="worstRating" content="1"></span>
<span property="ratingValue">1</span>
star
<span property="bestRating" content="5"></span>
<p property="description">fhgdfguig</p>
<p>Creat per <span property="author">patata</span>
on <span property="publishDate">June 13, 2014</span>
</p>
</li>
<li typeof="Review">
<p rel="reviewRating" typeof="Rating">
<span property="worstRating" content="1"></span>
<span property="ratingValue">3</span>
stars
<span property="bestRating" content="5"></span>
<p property="description">ygygguigug</p>
<p>Creat per <span property="author">admin</span>
on <span property="publishDate">June 13, 2014</span>
</p>
</li>
<li typeof="Review">
<p rel="reviewRating" typeof="Rating">
<span property="worstRating" content="1"></span>
<span property="ratingValue">3</span>
stars
<span property="bestRating" content="5"></span>
<p property="description">kjjhghjgj</p>
<p>Creat per <span property="author">admin</span>
on <span property="publishDate">June 13, 2014</span>
</p>
</li>
</ul>
</div>
</div>
<div class="col-md-4">
<form id='formulari' method="POST" action="/festes/1/assist/">
<input type='hidden' name='csrfmiddlewaretoken' value='OeV24CbZyaEGNSEllqvMneo8o2ekA1MY' />
<button class="btn btn-primary asis-button" type="submit">
<span class="glyphicon glyphicon-ok"> Participa-hi</span>
</button>
</form>
</div>
</div>
</div>
</span>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-8">
<footer></footer>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment