Skip to content

Commit

Permalink
Empty RVSP form (refs #44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Almad committed Oct 9, 2010
1 parent e8fbe97 commit 8dc08cf
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 1 deletion.
1 change: 1 addition & 0 deletions rpgscheduler/static/css/basic.css
Expand Up @@ -301,3 +301,4 @@ hr.cleaner {
a img {
border: 0;
}
}
9 changes: 9 additions & 0 deletions rpgscheduler/static/css/calendar.css
Expand Up @@ -141,3 +141,12 @@ div.calendar {
color: #FFF;
font-size: 11px;
}



/* calendarpicker unrelated classes, that are, however, relevant to the calendar as a whole */


#rvsp {
float: right;
}
46 changes: 46 additions & 0 deletions rpgscheduler/templates/con/event.html
@@ -1,14 +1,60 @@
{% extends "main.html" %}

{% block og %}
<meta property="og:title" content="{{ event.title }}" />
<meta property="og:type" content="activity"/>
<meta property="og:url" content="{{ event.get_absolute_url }}"/>
<meta property="og:site_name" content="akce.rpgplanet.cz"/>
<meta property="fb:admins" content="{{ FB_ADMIN_IDS }}"/>
<meta property="og:description"
content="{{ event.djangomarkup_description }}"/>
{% endblock %}

{% block content %}

<h1>{{ event.title }}</h1>
<fb:like></fb:like>

{% if user.is_authenticated %}
<div id="rvsp">
<form method="post">
<fieldset>
<label>Zúčastníš se?</label>
<ul>
<li><label accesskey="a"><input type="radio" value="yes" name="rvsp" />Ano</label></li>
<li><label accesskey="n"><input type="radio" value="no" name="rvsp" />Ne</label></li>
<li><label accesskey="m"><input type="radio" value="maybe" name="rvsp" />Možná</label></li>
</ul>
<input type="submit" value="Potvrď" />
</fieldset>
</form>
</div>
{% endif %}

{% autoescape off %}

{{ event.description }}

{% endautoescape %}

<div id="fb-root"></div>
<script>

window.fbAsyncInit = function() {
FB.init({
appId: {{ facebook_application_id }},
status: true,
cookie: true,
xfbml: true
});
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/cs_CZ/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>

{% endblock %}
3 changes: 2 additions & 1 deletion rpgscheduler/templates/main.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="cs" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<html lang="cs" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-language" content="cs" />
Expand All @@ -11,6 +11,7 @@
<meta http-equiv="MSThemeCompatible" content="no" />
<meta name="MS.LOCALE" content="cs" />
<meta name="autosize" content="off" />
{% block og %}{% endblock %}

<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/betainfo.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/calendar.css" />
Expand Down

0 comments on commit 8dc08cf

Please sign in to comment.