diff options
author | Leif Johansson <leifj@sunet.se> | 2011-02-09 11:06:55 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-02-09 11:06:55 +0100 |
commit | c33af4c971f26fcf3e7eb61a6c3dd8e8af8418a6 (patch) | |
tree | 8cbdeaeb48e3bfb5f4dd7d3ab190f8b8be634479 /src/templates | |
parent | 5f6b0000b9f611c56f42ff37f32003325c410947 (diff) |
restructure
Diffstat (limited to 'src/templates')
-rw-r--r-- | src/templates/apps/room/list.html | 44 | ||||
-rw-r--r-- | src/templates/apps/room/view.html | 29 | ||||
-rw-r--r-- | src/templates/base.html | 85 | ||||
-rw-r--r-- | src/templates/edit.html | 32 | ||||
-rw-r--r-- | src/templates/login.html | 9 |
5 files changed, 199 insertions, 0 deletions
diff --git a/src/templates/apps/room/list.html b/src/templates/apps/room/list.html new file mode 100644 index 0000000..199dc89 --- /dev/null +++ b/src/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/src/templates/apps/room/view.html b/src/templates/apps/room/view.html new file mode 100644 index 0000000..df058f5 --- /dev/null +++ b/src/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/src/templates/base.html b/src/templates/base.html new file mode 100644 index 0000000..86dea54 --- /dev/null +++ b/src/templates/base.html @@ -0,0 +1,85 @@ +{% load prefix %} +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "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>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="{% prefix %}/site-media/css/reset.css" rel="stylesheet" type="text/css" /> + <link type="text/css" href="{% prefix %}/site-media/css/flick/jquery-ui-1.8.2.custom.css" rel="stylesheet"> + <link href="{% prefix %}/site-media/css/sunet.css" rel="stylesheet" type="text/css" /> + <link href="{% prefix %}/site-media/css/style.css" rel="stylesheet" type="text/css" /> + <link href="{% prefix %}/site-media/css/gs.css" rel="stylesheet" type="text/css" /> + <script type="text/javascript" src="{% prefix %}/site-media/js/jquery-1.4.2.min.js"></script> + <script type="text/javascript" src="{% prefix %}/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]--> + <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"> </a> + <div id="menuContL"><h1>Meeting Tools</h1></div> + <div id="menuContR"> + </div> + </div> + + <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="push"></div> + </div> + <div class="clr"></div> + <div class="footer"> + <div class="wCont"> + <div id="footerText"> + </div> + </div> + </div> +</body> +</html> diff --git a/src/templates/edit.html b/src/templates/edit.html new file mode 100644 index 0000000..f896a52 --- /dev/null +++ b/src/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/src/templates/login.html b/src/templates/login.html new file mode 100644 index 0000000..e50e124 --- /dev/null +++ b/src/templates/login.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} +{% load prefix %} +{% 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="{% prefix %}/accounts/login-federated">Login</a></div> +{% endblock %}
\ No newline at end of file |