Browse Source

Style fixes

Add add source form to template
master
Chris Smith 14 years ago
parent
commit
f7c2a9969e
1 changed files with 23 additions and 2 deletions
  1. 23
    2
      src/index.html

+ 23
- 2
src/index.html View File

@@ -2,8 +2,15 @@
2 2
     <head>
3 3
         <title>Achievement Aggregator</title>
4 4
         <style type="text/css">
5
+            body {
6
+                font-family: sans-serif;
7
+            }
8
+
5 9
             .achievement {
6 10
                 border: 1px solid black;
11
+                float: left;
12
+                margin: 5px;
13
+                padding: 2px;
7 14
                 position: relative;
8 15
                 display: block;
9 16
                 width: 450px;
@@ -18,6 +25,8 @@
18 25
             }
19 26
 
20 27
             .achievement .source {
28
+                text-transform: uppercase;
29
+                font-size: small;
21 30
                 display: inline;
22 31
                 font-weight: bold;
23 32
             }
@@ -37,14 +46,26 @@
37 46
             .achievement .date {
38 47
                 position: absolute;
39 48
                 margin: 0;
40
-                top: 0;
41
-                right: 0;
49
+                top: 2px;
50
+                right: 2px;
42 51
                 font-size: small;
43 52
             }
44 53
         </style>
45 54
     </head>
46 55
     <body>
47 56
         <div id="content">
57
+            {% if is_admin %}
58
+            <div class="admin">
59
+                <h1>Admin</h1>
60
+                <h2>Add Source</h2>
61
+                <form action="/admin/addsource" method="post">
62
+                    <label>Name: <input type="text" name="name"/></label>
63
+                    <label>URL: <input type="text" name="url"/></label>
64
+                    <input type="submit" value="Add"/>
65
+                </form>
66
+            </div>
67
+            {% endif %}
68
+
48 69
             <h1>My Accounts</h1>
49 70
             <table>
50 71
                 <tr>

Loading…
Cancel
Save