aboutsummaryrefslogtreecommitdiff
path: root/snakeplan/templates
diff options
context:
space:
mode:
Diffstat (limited to 'snakeplan/templates')
-rw-r--r--snakeplan/templates/base.html3
-rw-r--r--snakeplan/templates/media/css/screen.css53
-rw-r--r--snakeplan/templates/projects/iteration_list.html2
-rw-r--r--snakeplan/templates/projects/project_form.html14
-rw-r--r--snakeplan/templates/projects/project_list.html3
5 files changed, 66 insertions, 9 deletions
diff --git a/snakeplan/templates/base.html b/snakeplan/templates/base.html
index 4506d5f..9ab9cac 100644
--- a/snakeplan/templates/base.html
+++ b/snakeplan/templates/base.html
@@ -3,6 +3,7 @@
3<head> 3<head>
4 <title>{% block title %}{% endblock %} - SnakePlan</title> 4 <title>{% block title %}{% endblock %} - SnakePlan</title>
5 <link rel="stylesheet" href="{{MEDIA_URL}}/css/screen.css" type="text/css" media="screen, projection" /> 5 <link rel="stylesheet" href="{{MEDIA_URL}}/css/screen.css" type="text/css" media="screen, projection" />
6 <!-- Enough is enough! I have had it with these motherfucking snakes on this motherfucking plan! -->
6</head> 7</head>
7 8
8<body> 9<body>
@@ -15,4 +16,6 @@
15 16
16 {% block content %}{% endblock %} 17 {% block content %}{% endblock %}
17</body> 18</body>
19
20<p class="copyright">SnakePlan is open-source under the Apache License. You can play with the snake, he won't bite.</p>
18</html> 21</html>
diff --git a/snakeplan/templates/media/css/screen.css b/snakeplan/templates/media/css/screen.css
index c133323..fe141c5 100644
--- a/snakeplan/templates/media/css/screen.css
+++ b/snakeplan/templates/media/css/screen.css
@@ -16,6 +16,11 @@ a {
16 color: #00F; 16 color: #00F;
17} 17}
18 18
19form, table, .action-bar {
20 width: 75%;
21 margin: auto;
22}
23
19table { 24table {
20 margin: auto; 25 margin: auto;
21 border: 1px solid #CCC; 26 border: 1px solid #CCC;
@@ -33,12 +38,17 @@ th {
33 border-bottom: 1px solid black; 38 border-bottom: 1px solid black;
34} 39}
35 40
41.copyright {
42 text-align: center;
43 font-size: 0.8em;
44 color: #999;
45}
46
36.row-actions { 47.row-actions {
37 text-align: center; 48 text-align: center;
38} 49}
39 50
40.action-bar { 51.action-bar {
41 width: 75%;
42 margin: 10px auto; 52 margin: 10px auto;
43 padding: 0px; 53 padding: 0px;
44 list-style: none; 54 list-style: none;
@@ -60,6 +70,10 @@ a.action img {
60 vertical-align: middle; 70 vertical-align: middle;
61} 71}
62 72
73
74/*********************************************************************
75 * Messages *
76 *********************************************************************/
63div.warning { 77div.warning {
64 border-color: #FC3; 78 border-color: #FC3;
65 background: #FF9 url('../images/warning.png'); 79 background: #FF9 url('../images/warning.png');
@@ -84,7 +98,42 @@ div.user-notice {
84 background-repeat: no-repeat; 98 background-repeat: no-repeat;
85 background-position: 20px; 99 background-position: 20px;
86} 100}
87 101
102
103/*********************************************************************
104 * Forms *
105 *********************************************************************/
106fieldset ol {
107 padding: 0;
108 list-style: none;
109}
110
111fieldset ol li {
112 float: left;
113 clear: left;
114 width: 100%;
115 padding-bottom: 1em;
116}
117
118fieldset label {
119 float: left;
120 width: 10em;
121 margin-right: 1em;
122 text-align: right;
123}
124
125fieldset {
126 border: 0;
127}
128
129fieldset.submit {
130 padding-left: 10em;
131}
132
133fieldset legend {
134 display: none;
135}
136
88 137
89/********************************************************************* 138/*********************************************************************
90 * Projects * 139 * Projects *
diff --git a/snakeplan/templates/projects/iteration_list.html b/snakeplan/templates/projects/iteration_list.html
index 4e42b52..be01bf4 100644
--- a/snakeplan/templates/projects/iteration_list.html
+++ b/snakeplan/templates/projects/iteration_list.html
@@ -19,7 +19,7 @@
19 </tr> 19 </tr>
20{% for iteration in object_list %} 20{% for iteration in object_list %}
21 <tr> 21 <tr>
22 <td><a href="/p/iteration/{{iteration.id}}/stories/">{{iteration.name}}</a></td> 22 <td><a href="{% url iteration-stories iteration.project.id iteration.id %}">{{iteration.name}}</a></td>
23 <td>{{iteration.description}}</td> 23 <td>{{iteration.description}}</td>
24 <td>{{iteration.start_date}}</td> 24 <td>{{iteration.start_date}}</td>
25 <td>{{iteration.end_date}}</td> 25 <td>{{iteration.end_date}}</td>
diff --git a/snakeplan/templates/projects/project_form.html b/snakeplan/templates/projects/project_form.html
index 0e6a574..ca18ced 100644
--- a/snakeplan/templates/projects/project_form.html
+++ b/snakeplan/templates/projects/project_form.html
@@ -5,9 +5,15 @@
5 5
6{% block content %} 6{% block content %}
7<form action="" method="POST"> 7<form action="" method="POST">
8<ul> 8<fieldset>
9{{ form.as_ul }} 9 <legend>Create Project</legend>
10</ul> 10 <ol>
11<input type="submit" value="Save"/> 11 {{ form.as_ul }}
12 </ol>
13</fieldset>
14
15<fieldset class="submit">
16 <input type="submit" value="Create Project"/>
17</fieldset>
12</form> 18</form>
13{% endblock %} 19{% endblock %}
diff --git a/snakeplan/templates/projects/project_list.html b/snakeplan/templates/projects/project_list.html
index 8572bc6..85b2bb5 100644
--- a/snakeplan/templates/projects/project_list.html
+++ b/snakeplan/templates/projects/project_list.html
@@ -27,8 +27,7 @@
27 <td>some, tags, go, here</td> 27 <td>some, tags, go, here</td>
28 <td><a href="#">Some Iteration</a></td> 28 <td><a href="#">Some Iteration</a></td>
29 <td class="row-actions"> 29 <td class="row-actions">
30 <a href="#"><img src="{{MEDIA_URL}}/images/pencil.png" title="Edit" alt="Edit" /></a> 30 <a href="{% url edit-project project.id %}"><img src="{{MEDIA_URL}}/images/pencil.png" title="Edit" alt="Edit" /></a>
31 <a href="#"><img src="{{MEDIA_URL}}/images/delete.png" title="Delete" alt="Delete" /></a>
32 31
33 {% if not project.active %} 32 {% if not project.active %}
34 <a href="#"><img src="{{MEDIA_URL}}/images/connect.png" title="Activate" alt="Activate" /></a> 33 <a href="#"><img src="{{MEDIA_URL}}/images/connect.png" title="Activate" alt="Activate" /></a>