Styled buttons for real this time

This commit is contained in:
Jef van Schendel 2011-05-13 15:33:58 -05:00 committed by Christopher Allan Webber
parent 8c01ae42e9
commit 223b410dce
9 changed files with 52 additions and 17 deletions

View File

@ -13,7 +13,7 @@ h1 {
margin-top:50px; margin-top:50px;
} }
.dottedLine { .dotted_line {
width:100%; width:100%;
height:0px; height:0px;
border-bottom: dotted 1px #5f5f5f; border-bottom: dotted 1px #5f5f5f;
@ -42,7 +42,7 @@ a {
margin-right: auto; margin-right: auto;
} }
.button { .button_red, .button_green {
font-family: 'Carter One', arial, serif; font-family: 'Carter One', arial, serif;
height: 28px; height: 28px;
min-width: 99px; min-width: 99px;
@ -60,11 +60,11 @@ a {
padding-right:11px; padding-right:11px;
} }
.buttonRed { .button_red {
background-image: url('button_red.png'); background-image: url('../images/button_red.png');
} }
.buttonGreen { .button_green {
background-image: url('button_green.png'); background-image: url('../images/button_green.png');
} }

View File

@ -13,7 +13,7 @@ h1 {
margin-top:50px; margin-top:50px;
} }
.dottedLine { .dotted_line {
width:100%; width:100%;
height:0px; height:0px;
border-bottom: dotted 1px #5f5f5f; border-bottom: dotted 1px #5f5f5f;
@ -42,7 +42,7 @@ a {
margin-right: auto; margin-right: auto;
} }
.button { .button_red, .button_green {
font-family: 'Carter One', arial, serif; font-family: 'Carter One', arial, serif;
height: 28px; height: 28px;
min-width: 99px; min-width: 99px;
@ -60,11 +60,11 @@ a {
padding-right:11px; padding-right:11px;
} }
.buttonRed { .button_red {
background-image: url('button_red.png'); background-image: url('button_red.png');
} }
.buttonGreen { .button_green {
background-image: url('button_green.png'); background-image: url('button_green.png');
} }

View File

@ -33,12 +33,12 @@
{{ wtforms_util.render_table(login_form) }} {{ wtforms_util.render_table(login_form) }}
<tr> <tr>
<td></td> <td></td>
<td><input type="submit" value="submit" /></td> <td><input type="submit" value="submit" class="button_green"/></td>
</tr> </tr>
</table> </table>
{% if next %} {% if next %}
<input type="hidden" name="next" value="{{ next }}" class="buttonGreen" /> <input type="hidden" name="next" value="{{ next }}" class="button_green" />
{% endif %} {% endif %}
</form> </form>
{% endblock %} {% endblock %}

View File

@ -38,7 +38,7 @@
</table> </table>
{% if next %} {% if next %}
<input type="hidden" name="next" value="{{ next }}" /> <input type="hidden" name="next" value="{{ next }}" class="button_green" />
{% endif %} {% endif %}
</form> </form>
{% endblock %} {% endblock %}

View File

@ -26,7 +26,7 @@
{{ wtforms_util.render_table(register_form) }} {{ wtforms_util.render_table(register_form) }}
<tr> <tr>
<td></td> <td></td>
<td><input type="submit" value="submit" class="buttonGreen" /></td> <td><input type="submit" value="submit" class="button_green" /></td>
</tr> </tr>
</table> </table>
</form> </form>

View File

@ -26,7 +26,7 @@
{{ wtforms_util.render_table(register_form) }} {{ wtforms_util.render_table(register_form) }}
<tr> <tr>
<td></td> <td></td>
<td><input type="submit" value="submit" /></td> <td><input type="submit" value="submit" class="buttonGreen" /></td>
</tr> </tr>
</table> </table>
</form> </form>

View File

@ -28,7 +28,7 @@
{{ wtforms_util.render_table(submit_form) }} {{ wtforms_util.render_table(submit_form) }}
<tr> <tr>
<td></td> <td></td>
<td><input type="submit" value="submit" /></td> <td><input type="submit" value="submit" class="button_green" /></td>
</tr> </tr>
</table> </table>
</form> </form>

View File

@ -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 %}

View File

@ -25,7 +25,7 @@
{{ wtforms_util.render_table(image_form) }} {{ wtforms_util.render_table(image_form) }}
<tr> <tr>
<td></td> <td></td>
<td><input type="submit" value="submit" class="buttonGreen" /></td> <td><input type="submit" value="submit" class="button_green" /></td>
</tr> </tr>
</table> </table>
</form> </form>