summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-02-08 20:46:40 +0100
committerLeif Johansson <leifj@sunet.se>2011-02-08 20:46:40 +0100
commit0fb514f0a73aef806b826348d043c68534af2745 (patch)
treebd388ab8e3de4c93a6ba0a5e1b83a4087a14b6e2 /templates
parenta20ff434501a099b259da903d88b47bb77e07469 (diff)
v1
Diffstat (limited to 'templates')
-rw-r--r--templates/apps/room/list.html44
-rw-r--r--templates/apps/room/view.html29
-rw-r--r--templates/base.html126
-rw-r--r--templates/edit.html32
-rw-r--r--templates/login.html8
5 files changed, 176 insertions, 63 deletions
diff --git a/templates/apps/room/list.html b/templates/apps/room/list.html
new file mode 100644
index 0000000..199dc89
--- /dev/null
+++ b/templates/apps/room/list.html
@@ -0,0 +1,44 @@
+{% extends "base.html" %}
+{% load datehumanize %}
+{% load roomurl %}
+{% block widgets %}
+ $("#rooms").accordion({
+ header: 'h3',
+ active: false,
+ event: "click",
+ collapsible: true,
+ navigation: true,
+ animated: true
+ });
+{% endblock %}
+{% block content %}
+ <h1>Your Rooms</h1>
+ {% if rooms %}
+ <div id="rooms">
+ {% for r in rooms %}
+ <div id="{{r.id}}">
+ <h3 class="listheader">{{r.name}}</h3>
+ <div>
+ <p>Created by {{r.creator}} {{r.timecreated|datehumanize}}.</p>
+ <p>Meeting room URL: <a href="{{r|roomurl}}">{{r|roomurl}}</a></p>
+ <div class="buttons">
+ <ul>
+ <li><div class="button"><a href="/room/{{r.id}}/modify">Modify Room</a></li>
+ <li><div class="button"><a href="/room/{{r.id}}/delete">Delete Room</a></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ {% endfor %}
+ </div>
+ {% else %}
+ <p>You don't have any rooms listed right now...</p>
+ {% endif %}
+ <br/>
+ <div class="buttons">
+ <ul>
+ <li><div class="button"><a href="/room/create">Create a new room</a></div></li>
+ <!-- li><div class="button"><a href="/room/import">Modify an existing room</a></div></li -->
+ </ul>
+ </div>
+{% endblock %} \ No newline at end of file
diff --git a/templates/apps/room/view.html b/templates/apps/room/view.html
new file mode 100644
index 0000000..df058f5
--- /dev/null
+++ b/templates/apps/room/view.html
@@ -0,0 +1,29 @@
+{% extends "base.html" %}
+{% load datehumanize %}
+{% block widgets %}
+{% endblock %}
+{% block content %}
+ <h3>{{room.name}}</h3>
+ <table border="0">
+ <tr>
+ <td>Name</td>
+ <td>{{room.name}}</td>
+ </tr>
+ <tr>
+ <td>URL</td>
+ <td><a href="/go/{{r.id}}">{% url meetingtools.apps.room.views.go room.id %}</a></td>
+ </tr>
+ <tr>
+ <td>Current users</td>
+ <td>{{nusers}}</td>
+ </tr>
+ <tr>
+ <td>Self cleaning</td>
+ <td>{{room.self_cleaning}}</td>
+ </tr>
+ <tr>
+ <td>Permission</td>
+ <td>{{permission}}</td>
+ </tr>
+ </table>
+{% endblock %} \ No newline at end of file
diff --git a/templates/base.html b/templates/base.html
index 66eb9a9..e4ceaee 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -2,83 +2,83 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
- <title>{{service_name}} Error</title>
+ <title>SUNET Meeting Tools</title>
<meta http-equiv="content-type"
content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link href="/site-media/css/reset.css" rel="stylesheet" type="text/css" />
+ <link type="text/css" href="/site-media/css/flick/jquery-ui-1.8.2.custom.css" rel="stylesheet">
<link href="/site-media/css/sunet.css" rel="stylesheet" type="text/css" />
+ <link href="/site-media/css/style.css" rel="stylesheet" type="text/css" />
+ <link href="/site-media/css/gs.css" rel="stylesheet" type="text/css" />
+ <script type="text/javascript" src="/site-media/js/jquery-1.4.2.min.js"></script>
+ <script type="text/javascript" src="/site-media/js/jquery-ui-1.8.2.custom.min.js"></script>
-<!--[if IE]>
-<link href="css/sunet-ie6.css" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if lt IE 8]>
-<style>
-.menu li {
- display: inline;
-}
-</style>
-<![endif]-->
-<style media='all' type="text/css">
-
-div#gsfn_list_widget img { border: none; }
-div#gsfn_list_widget { font-size: 12px; width: 100%; border: 3px solid #DDD; padding: 10px; }
-div#gsfn_list_widget a.widget_title { color: #000; display: block; margin-bottom: 10px; font-weight: bold; }
-div#gsfn_list_widget .powered_by { margin-top: 8px; padding-top: 8px; border-top: 1px solid #DDD; }
-div#gsfn_list_widget .powered_by a { color: #333; font-size: 90%; }
-div#gsfn_list_widget div#gsfn_content { }
-div#gsfn_list_widget div#gsfn_content li { text-align:left; margin-bottom:6px; }
-div#gsfn_list_widget div#gsfn_content a.gsfn_link { line-height: 1; }
-div#gsfn_list_widget div#gsfn_content span.time { font-size: 90%; padding-left: 3px; }
-div#gsfn_list_widget div#gsfn_content p.gsfn_summary { margin-top: 2px }
-</style>
-
-<style media='all' type='text/css'>
-div#gsfn_search_widget img { border: none; }
-div#gsfn_search_widget { font-size: 12px; width: 100%; border: 3px solid #DDD; padding: 10px;}
-div#gsfn_search_widget a.widget_title { color: #000; display: block; margin-bottom: 10px; font-weight: bold; }
-div#gsfn_search_widget .powered_by { margin-top: 8px; padding-top: 8px; border-top: 1px solid #DDD; }
-div#gsfn_search_widget .powered_by a { color: #333; font-size: 90%; }
-div#gsfn_search_widget form { margin-bottom: 8px; }
-div#gsfn_search_widget form label { margin-bottom: 5px; display: block; }
-div#gsfn_search_widget form #gsfn_search_query { width: 60%; }
-div#gsfn_search_widget div.gsfn_content { }
-div#gsfn_search_widget div.gsfn_content li { text-align:left; margin-bottom:6px; }
-div#gsfn_search_widget div.gsfn_content a.gsfn_link { line-height: 1; }
-div#gsfn_search_widget div.gsfn_content span.time { font-size: 90%; padding-left: 3px; }
-div#gsfn_search_widget div.gsfn_content p.gsfn_summary { margin-top: 2px }
-</style>
+ <!--[if IE]>
+ <link href="css/sunet-ie6.css" rel="stylesheet" type="text/css" />
+ <![endif]-->
+ <!--[if lt IE 8]>
+ <style>
+ .menu li {
+ display: inline;
+ }
+ </style>
+ <![endif]-->
+ <script type="text/javascript" charset="utf-8">
+ var is_ssl = ("https:" == document.location.protocol);
+ var asset_host = is_ssl ? "https://s3.amazonaws.com/getsatisfaction.com/" : "http://s3.amazonaws.com/getsatisfaction.com/";
+ document.write(unescape("%3Cscript src='" + asset_host + "javascripts/feedback-v2.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script type="text/javascript" charset="utf-8">
+ var feedback_widget_options = {};
+
+ feedback_widget_options.display = "overlay";
+ feedback_widget_options.company = "sunet";
+ feedback_widget_options.placement = "right";
+ feedback_widget_options.color = "#222";
+ feedback_widget_options.style = "idea";
+ feedback_widget_options.product = "sunet_connect";
+
+ feedback_widget_options.limit = "3";
+
+ GSFN.feedback_widget.prototype.local_base_url = "http://getsatisfaction.com";
+ GSFN.feedback_widget.prototype.local_ssl_base_url = "https://getsatisfaction.com";
+ var feedback_widget = new GSFN.feedback_widget(feedback_widget_options);
+ </script>
+ <script type="text/javascript">
+ $(function() {
+ $("input:submit, input:button, a",".button").button();
+ {% block widgets %}{% endblock %}
+ });
+ </script>
</head>
-
<body>
-<div class="wrapper">
- <div class="wCont">
- <div class="header">
- <a href="#" id="logo">&nbsp;</a>
- <div id="menuContL">
+ <div class="wrapper">
+ <div class="wCont">
+ <div class="header">
+ <a href="#" id="logo">&nbsp;</a>
+ <div id="menuContL"><h1>Meeting Tools</h1></div>
+ <div id="menuContR">
+ </div>
</div>
- <div id="menuContR">
+
+ <div class="content">
+ <div style="display:none;" class="contL"></div>
+ {% block content %}{% endblock %}
+ <div style="display:none;" class="blockCont"></div>
+ <div style="display:none;" class="contR"></div>
+ <div class="clr"></div>
</div>
</div>
-
- <div class="content">
- <div style="display:none;" class="contL"></div>
- {% block main %}{% endblock %}
- <div style="display:none;" class="blockCont"/>
- <div style="display:none;" class="contR"></div>
- <div class="clr"></div>
- </div>
+ <div class="push"></div>
</div>
- <div class="push"></div>
-</div>
-<div class="clr"></div>
-<div class="footer">
- <div class="wCont">
- <div id="footerText">
+ <div class="clr"></div>
+ <div class="footer">
+ <div class="wCont">
+ <div id="footerText">
+ </div>
</div>
</div>
-</div>
-<!--</div>-->
</body>
</html>
diff --git a/templates/edit.html b/templates/edit.html
new file mode 100644
index 0000000..f896a52
--- /dev/null
+++ b/templates/edit.html
@@ -0,0 +1,32 @@
+{% extends "base.html" %}
+{% block content %}
+ {% block beforeform %}
+ {% endblock %}
+ <form method="POST">
+ <div class="ui-widget-content ui-corner-all infopanel">
+ <h1>{{formtitle}}</h1>
+ <table class="formtable">
+ {% for field in form %}
+ <tr style="padding-top: 10px;">
+ <td>
+ {% if not field.is_hidden %}
+ <div class="ui-widget fieldlabel">{{ field.label_tag }}</div>
+ {% endif %}
+ {% if field.errors %}
+ <div class="ui-widget ui-state-error">{{ field.errors }}</div>
+ {% endif %}
+ </td>
+ <td>
+ <div class="ui-widget">{{ field }}</div>
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
+ </div>
+ <br/>
+ <div class="button">
+ <input type="submit" value="{{submitname}}" />
+ <input type="button" onClick="document.location='/'" value="Cancel"/>
+ </div>
+ </form>
+{% endblock %} \ No newline at end of file
diff --git a/templates/login.html b/templates/login.html
new file mode 100644
index 0000000..03ecd2a
--- /dev/null
+++ b/templates/login.html
@@ -0,0 +1,8 @@
+{% extends "base.html" %}
+{% block headline %}Login{% endblock %}
+{% block title %}SUNET Meeting Tools{% endblock %}
+{% block content %}
+<h2>Welcome!</h2>
+<p class="ui-state-highlight ui-corner-all">This is a technology preview of the SUNET Meeting Tools. Contact Johnny or Marcus for more info!</p>
+<div class="button"><a href="/accounts/login-federated">Login</a></div>
+{% endblock %} \ No newline at end of file