Cleanup template code and style.

This commit is contained in:
Emanuel Schuetze 2012-09-06 23:59:03 +02:00
parent ae51d9e7da
commit 6a3bead5f6
6 changed files with 27 additions and 33 deletions

View File

@ -13,14 +13,14 @@
{% block content %}
<h1>
{% if item %}
{% trans "Edit item" %}
{% else %}
{% trans "New item" %}
{% endif %}
<small class="pull-right">
<a href="{% url item_overview %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
</small>
{% if item %}
{% trans "Edit item" %}
{% else %}
{% trans "New item" %}
{% endif %}
<small class="pull-right">
<a href="{% url item_overview %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
</small>
</h1>
<form action="" method="post">{% csrf_token %}
{% for field in form %}

View File

@ -54,12 +54,12 @@
{% endif %}
<h1>{% trans "Agenda" %}
<small class="pull-right">
{% if perms.agenda.can_manage_agenda %}
<a href="{% url item_new %}" class="btn btn-mini" rel="tooltip" data-original-title="{% trans 'New item' %}"><i class="icon-plus"></i> {% trans "New" %}</a>
{% endif %}
<a href="{% url print_agenda %}" class="btn btn-mini" rel="tooltip" data-original-title="{% trans 'Print agenda as PDF' %}"><i class="icon-print"></i> PDF</a>
</small>
<small class="pull-right">
{% if perms.agenda.can_manage_agenda %}
<a href="{% url item_new %}" class="btn btn-mini" rel="tooltip" data-original-title="{% trans 'New item' %}"><i class="icon-plus"></i> {% trans "New" %}</a>
{% endif %}
<a href="{% url print_agenda %}" class="btn btn-mini" rel="tooltip" data-original-title="{% trans 'Print agenda as PDF' %}"><i class="icon-print"></i> PDF</a>
</small>
</h1>
<label class="checkbox">

View File

@ -6,9 +6,9 @@
{% block content %}
<h1>{% trans "Import motions" %}
<small class="pull-right">
<a href="{% url application_overview %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
</small>
<small class="pull-right">
<a href="{% url application_overview %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
</small>
</h1>
<p>{% trans 'Select a CSV file to import motions!' %}</p>

View File

@ -7,8 +7,9 @@
{% block title %}{{ block.super }} {% trans "Motions" %}{% endblock %}
{% block content %}
<h1>{% trans "Motions" %}
<small class="pull-right">
<h1>
{% trans "Motions" %}
<small class="pull-right">
{% if perms.application.can_manage_application %}
<a href="{% url application_new %}" class="btn btn-mini" rel="tooltip" data-original-title="{% trans 'New motion' %}"><i class="icon-plus"></i> {% trans "New" %}</a>
<a href="{% url application_import %}" class="btn btn-mini" rel="tooltip" data-original-title="{% trans 'Import motions' %}"><i class="icon-share-alt"></i> {% trans 'Import' %}</a>

View File

@ -30,18 +30,6 @@ h1 {
h5 {
margin-bottom: 0px;
}
/*h1 small a {
background: none repeat scroll 0 0 #F1F1F1;
border: 0 none;
font-family: sans-serif;
font-size: 14px;
margin-left: 4px;
padding: 3px 8px;
position: relative;
text-decoration: none;
top: -7px;
}*/
a:hover {
text-decoration: none;
@ -151,7 +139,7 @@ a:hover {
background-position: -24px -24px;
}
.icon-assignment {
background-position: -408px 0;
background-position: -144px -72px;
}
.icon-participant {
background-position: -168px 0;
@ -167,6 +155,12 @@ a:hover {
.alert form {
margin-bottom: 0;
}
tr.total td {
border-top: 1px solid #333333;
}
.nobr {
white-space: nowrap;
}
/** Forms **/
.errorlist{

View File

@ -15,7 +15,6 @@
<link href="{% static 'styles/bootstrap.css' %}" type="text/css" rel="stylesheet">
<link href="{% static 'styles/bootstrap-responsive.css' %}" type="text/css" rel="stylesheet">
<link href="{% static 'styles/base.css' %}" type="text/css" rel="stylesheet">
<link href="{% static 'img/favicon.png' %}" type="image/png" rel="shortcut icon" />
{% block header %}
{% endblock %}