Styled buttons for real this time
authorJef van Schendel <jefvanschendel@gmail.com>
Fri, 13 May 2011 20:33:58 +0000 (15:33 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 13 May 2011 20:33:58 +0000 (15:33 -0500)
mediagoblin/static/css/base.css
mediagoblin/static/css/base.css~
mediagoblin/templates/mediagoblin/auth/login.html
mediagoblin/templates/mediagoblin/auth/login.html~
mediagoblin/templates/mediagoblin/auth/register.html
mediagoblin/templates/mediagoblin/auth/register.html~
mediagoblin/templates/mediagoblin/submit/start.html
mediagoblin/templates/mediagoblin/submit/start.html~ [new file with mode: 0644]
mediagoblin/templates/mediagoblin/test_submit.html

index 17f9e012ada070d52a9a016f7ff0c743b87eec4b..3576fd1ffb5280b29db985c8a804e55abeeae62f 100644 (file)
@@ -13,7 +13,7 @@ h1 {
     margin-top:50px;
 }
 
-.dottedLine {
+.dotted_line {
     width:100%;
     height:0px;
     border-bottom: dotted 1px #5f5f5f;
@@ -42,7 +42,7 @@ a {
     margin-right: auto;
 }
 
-.button {
+.button_red, .button_green {
     font-family: 'Carter One', arial, serif;
     height: 28px;
     min-width: 99px;
@@ -60,11 +60,11 @@ a {
     padding-right:11px;
 }
 
-.buttonRed {
-    background-image: url('button_red.png');
+.button_red {
+    background-image: url('../images/button_red.png');
 }
 
-.buttonGreen {
-    background-image: url('button_green.png');
+.button_green {
+    background-image: url('../images/button_green.png');
 }
 
index 17f9e012ada070d52a9a016f7ff0c743b87eec4b..e69a87e7de7179ac0455a312cb1d570fd90c3175 100644 (file)
@@ -13,7 +13,7 @@ h1 {
     margin-top:50px;
 }
 
-.dottedLine {
+.dotted_line {
     width:100%;
     height:0px;
     border-bottom: dotted 1px #5f5f5f;
@@ -42,7 +42,7 @@ a {
     margin-right: auto;
 }
 
-.button {
+.button_red, .button_green {
     font-family: 'Carter One', arial, serif;
     height: 28px;
     min-width: 99px;
@@ -60,11 +60,11 @@ a {
     padding-right:11px;
 }
 
-.buttonRed {
+.button_red {
     background-image: url('button_red.png');
 }
 
-.buttonGreen {
+.button_green {
     background-image: url('button_green.png');
 }
 
index 46552a39d0bd0901f6acb3dd8d4980cfdbfa9983..d5a5ddef710e61936cb5931379078b50039f1212 100644 (file)
       {{ wtforms_util.render_table(login_form) }}
       <tr>
         <td></td>
-        <td><input type="submit" value="submit" /></td>
+        <td><input type="submit" value="submit" class="button_green"/></td>
       </tr>
     </table>
 
     {% if next %}
-      <input type="hidden" name="next" value="{{ next }}" class="buttonGreen" />
+      <input type="hidden" name="next" value="{{ next }}" class="button_green" />
     {% endif %}
   </form>
 {% endblock %}
index f2e7b6646f5aeba6992d5c6e6d459ef68459d535..19d9090759034737c5c22733d90727ed6ead1df1 100644 (file)
@@ -38,7 +38,7 @@
     </table>
 
     {% if next %}
-      <input type="hidden" name="next" value="{{ next }}" />
+      <input type="hidden" name="next" value="{{ next }}" class="button_green" />
     {% endif %}
   </form>
 {% endblock %}
index de3ec71dbe7662dea029a727275394561cffba64..ee2f425ba29cea5e11cae7cb25660c530588f1ae 100644 (file)
@@ -26,7 +26,7 @@
       {{ wtforms_util.render_table(register_form) }}
       <tr>
         <td></td>
-        <td><input type="submit" value="submit" class="buttonGreen" /></td>
+        <td><input type="submit" value="submit" class="button_green" /></td>
       </tr>
     </table>
   </form>
index f34893972607ada4e8c8d07362763a3530239b82..de3ec71dbe7662dea029a727275394561cffba64 100644 (file)
@@ -26,7 +26,7 @@
       {{ wtforms_util.render_table(register_form) }}
       <tr>
         <td></td>
-        <td><input type="submit" value="submit" /></td>
+        <td><input type="submit" value="submit" class="buttonGreen" /></td>
       </tr>
     </table>
   </form>
index 562d90508fd113d93691e9ce4aa660ad7f460893..21a7ed4ec13c2b5576e21f6c4fadd6c30b8b8b2d 100644 (file)
@@ -28,7 +28,7 @@
       {{ wtforms_util.render_table(submit_form) }}
       <tr>
         <td></td>
-        <td><input type="submit" value="submit" /></td>
+        <td><input type="submit" value="submit" class="button_green" /></td>
       </tr>
     </table>
   </form>
diff --git a/mediagoblin/templates/mediagoblin/submit/start.html~ b/mediagoblin/templates/mediagoblin/submit/start.html~
new file mode 100644 (file)
index 0000000..562d905
--- /dev/null
@@ -0,0 +1,35 @@
+{#
+# GNU MediaGoblin -- federated, autonomous media hosting
+# Copyright (C) 2011 Free Software Foundation, Inc
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#}
+{% extends "mediagoblin/base.html" %}
+
+{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
+
+{% block mediagoblin_content %}
+  <h2>Submit yer media</h2>
+
+  <form action="{{ request.urlgen('mediagoblin.submit.start') }}"
+        method="POST" enctype="multipart/form-data">
+    <table>
+      {{ wtforms_util.render_table(submit_form) }}
+      <tr>
+        <td></td>
+        <td><input type="submit" value="submit" /></td>
+      </tr>
+    </table>
+  </form>
+{% endblock %}    
index ebf93b59bfb56e34e3e66ba481da12f1200b8f75..86cf4655516353420a2b5e68f500bb2a6fffd511 100644 (file)
@@ -25,7 +25,7 @@
         {{ wtforms_util.render_table(image_form) }}
         <tr>
           <td></td>
-          <td><input type="submit" value="submit" class="buttonGreen" /></td>
+          <td><input type="submit" value="submit" class="button_green" /></td>
         </tr>
       </table>
     </form>