move inline styles to custom.scss, remove unused pinax templates
This commit is contained in:
parent
78d1a49d4c
commit
774e2c625d
9 changed files with 21 additions and 127 deletions
|
@ -21,6 +21,6 @@
|
|||
{% endif %}
|
||||
</ul>
|
||||
|
||||
<form id="accountLogOutForm" style="display: none;" action="{% url 'account_logout' %}" method="POST">
|
||||
<form id="accountLogOutForm" action="{% url 'account_logout' %}" method="POST">
|
||||
{% csrf_token %}
|
||||
</form>
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
<div class="sponsor-list">
|
||||
{% for level in levels %}
|
||||
{% if level.sponsors %}
|
||||
<h3 style="margin-top: 3em;">{{ level.name }}</h3>
|
||||
<h3>{{ level.name }}</h3>
|
||||
|
||||
{% for sponsor in level.sponsors %}
|
||||
<div style="margin: 10px 0;">
|
||||
<div>
|
||||
{% if sponsor.website_logo %}
|
||||
<a href="{{ sponsor.external_url }}">
|
||||
<img src="{% thumbnail sponsor.website_logo '100x60' %}" alt="{{ sponsor.name }}" />
|
||||
|
@ -25,3 +25,5 @@
|
|||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{% include "pinax/boxes/_box_body.html" %}
|
|
@ -1,33 +0,0 @@
|
|||
{% load i18n %}
|
||||
|
||||
{% if form %}
|
||||
<div id="edit_{{ label }}" class="modal fade">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<form id="edit_form_{{ label }}" accept-charset="UTF-8" class="modal-form" method="POST" action="{{ form_action }}?next={{ request.path }}">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{% trans "Editing content:" %} {{ label }}</h4>
|
||||
</div>
|
||||
<div class="modal-body form-group">
|
||||
{% csrf_token %}
|
||||
{{ form.content }}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Save changes</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div id="content_{{ label }}" class="content-box {% if form %}editable{% endif %}">
|
||||
{% if form %}
|
||||
<a href="#edit_{{ label }}" data-toggle="modal" class="btn btn-default btn-sm edit-toggle">
|
||||
<i class="fa fa-pencil"></i>
|
||||
Edit this content
|
||||
</a>
|
||||
{% endif %}
|
||||
{{ box.content_html|safe }}
|
||||
</div>
|
|
@ -1,16 +0,0 @@
|
|||
{% extends "site_base.html" %}
|
||||
|
||||
{% load bootstrap %}
|
||||
|
||||
{% block head_title %}Upload File{% endblock %}
|
||||
|
||||
{% block body_outer %}
|
||||
<h1>Upload File</h1>
|
||||
<form method="POST" action="{% url "file_create" %}" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form|bootstrap }}
|
||||
<div class="form-actions">
|
||||
<button class="btn btn-primary" type="submit">Upload</button>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
|
@ -1,25 +0,0 @@
|
|||
{% extends "site_base.html" %}
|
||||
|
||||
{% block head_title %}Uploaded Files{% endblock %}
|
||||
|
||||
{% block body_outer %}
|
||||
<h1>Files</h1>
|
||||
{% for file in files %}
|
||||
<div style="margin-top: 1em;">
|
||||
<form class="pull-right" action="{% url "file_delete" file.pk %}" method="post">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn btn-error"><i class="fa fa-trash"></i> delete</button>
|
||||
</form>
|
||||
<h3><a href="{{ file.download_url }}">{{ file.file }}</a></h3>
|
||||
<span style="font-style:italic; color: #999;">Uploaded {{ file.created|date:"N j, Y" }}</span>
|
||||
</div>
|
||||
{% empty %}
|
||||
<p>No uploaded files.</p>
|
||||
{% endfor %}
|
||||
<div style="margin-top: 2em">
|
||||
<a class="btn btn-success" href="{% url "file_create" %}">
|
||||
<i class="fa fa-plus"></i>
|
||||
Add File
|
||||
</a>
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -1,27 +0,0 @@
|
|||
{% extends "site_base.html" %}
|
||||
|
||||
{% load sitetree %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block body_class %}cms-page{% endblock %}
|
||||
|
||||
{% block head_title %}{{ page.title }}{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}{% sitetree_breadcrumbs from "main" %}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{% if editable %}
|
||||
<div class="pull-right">
|
||||
<a href="{% url 'pages_page_edit' page.path %}" class="btn btn-sm btn-default">
|
||||
<i class="fa fa-pencil"></i>
|
||||
Edit this page
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<h2>{{ page.title }}</h2>
|
||||
|
||||
<div class="page-content">
|
||||
{{ page.body_html|safe }}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
|
@ -1,22 +0,0 @@
|
|||
{% extends "site_base.html" %}
|
||||
|
||||
{% load sitetree %}
|
||||
{% load i18n %}
|
||||
{% load bootstrap %}
|
||||
|
||||
{% block body_class %}cms-page{% endblock %}
|
||||
|
||||
{% block head_title %}Create Page{% endblock %}
|
||||
|
||||
{% block page_title %}{% trans "Edit page at:" %} {{ path }}{% endblock %}
|
||||
{% block breadcrumbs %}{% sitetree_breadcrumbs from "main" %}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<form method="POST" action="">
|
||||
{% csrf_token %}
|
||||
{{ form|bootstrap }}
|
||||
<div class="form-actions">
|
||||
<input class="btn btn-primary" type="submit" value="Save" />
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
|
@ -52,3 +52,19 @@ body.reviews.voting-status {
|
|||
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
}
|
||||
}
|
||||
|
||||
#accountLogOutForm {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sponsor-list h3 {
|
||||
margin-top: 3em;
|
||||
}
|
||||
|
||||
.sponsor-list > div {
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue