remove templates from project

This commit is contained in:
Luke Hatcher 2012-08-14 04:21:10 -04:00
parent 4eab59b4d8
commit 9569453481
28 changed files with 0 additions and 738 deletions

View file

@ -1,31 +0,0 @@
{% load markitup_tags %}
{% load i18n %}
{% if form %}
<div id="edit_{{ label }}" class="modal fade hide">
<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">×</button>
<h3>{% trans "Editing content:" %} {{ label }}</h3>
</div>
<div class="modal-body">
{% csrf_token %}
{{ form.content }}
{% markitup_editor form.content.auto_id %}
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">{% trans "Close" %}</a>
<button type="submit" class="btn btn-primary">{% trans "Save changes" %}</a>
</div>
</form>
</div>
{% endif %}
<div id="content_{{ label }}" class="content-box {% if form %}editable{% endif %}">
{% if form %}
<a href="#edit_{{ label }}" data-toggle="modal" class="btn edit-toggle"><i class="icon-pencil"></i> {% trans "Edit this content" %}</a>
{% endif %}
{{ box.content|safe }}
</div>

View file

@ -1,23 +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 cms_page_edit page.path %}" class="btn"><i class="icon-pencil icon-large"></i> Edit this page</a>
</div>
{% endif %}
<h2>{{ page.title }}</h2>
<div class="page-content">
{{ page.body }}
</div>
{% endblock %}

View file

@ -1,22 +0,0 @@
{% extends "site_base.html" %}
{% load sitetree %}
{% load i18n %}
{% load bootstrap_tags %}
{% 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|as_bootstrap }}
<div class="form-actions">
<input class="btn btn-primary" type="submit" value="Save" />
</div>
</form>
{% endblock %}

View file

@ -1,38 +0,0 @@
<tr>
<td>
<a href="{% url proposal_detail proposal.pk %}">{{ proposal.title }}</a>
</td>
<td>{{ proposal.kind.name }}</td>
<td>
{% if proposal.cancelled %}
<span class="label label-important">Cancelled</span>
{% else %}
{% if request.user == proposal.speaker.user %}
{% if proposal.result.accepted %}
<span class="label label-success">Accepted</span>
{% else %}
<span class="label">Submitted</span>
{% endif %}
{% else %}
<span class="label">Invited</span>
{% endif %}
{% endif %}
</td>
<td>
{% if not proposal.cancelled %}
<div class="btn-group">
<a class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">
Choose Response
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="{% url proposal_pending_join proposal.id %}">Accept invitation</a></li>
<li><a href="{% url proposal_pending_decline proposal.id %}">Decline invitation</a></li>
</ul>
</div>
{% endif %}
</td>
</tr>

View file

@ -1,32 +0,0 @@
<tr>
<td>
<a href="{% url proposal_detail proposal.pk %}">{{ proposal.title }}</a>
</td>
<td>{{ proposal.kind.name }}</td>
<td>
{% if proposal.cancelled %}
<span class="label label-important">Cancelled</span>
{% else %}
{% if request.user == proposal.speaker.user %}
{% if proposal.result.accepted %}
<span class="label label-success">Accepted</span>
{% else %}
<span class="label">Submitted</span>
{% endif %}
{% else %}
<span class="label">Associated</span>
{% endif %}
{% endif %}
</td>
<td>
{% if not proposal.cancelled %}
{% if request.user == proposal.speaker.user and proposal.can_edit %}
<a href="{% url proposal_edit proposal.pk %}" class="btn btn-mini"><i class="icon-pencil"></i> Edit</a>
<a href="{% url proposal_speaker_manage proposal.id %}" class="btn btn-mini"><i class="icon-user"></i> Manage Additional Speakers</a>
{% endif %}
{% endif %}
</td>
</tr>

View file

@ -1,5 +0,0 @@
{% extends "site_base_onecolumn.html" %}
{% block body_outer %}
{% block body %}{% endblock %}
{% endblock %}

View file

@ -1,17 +0,0 @@
{% extends "proposals/base.html" %}
{% load bootstrap_tags %}
{% block page_title %}Upload Document to '{{ proposal.title }}'{% endblock %}
{% block body %}
<form method="POST" action="" enctype="multipart/form-data" class="form-horizontal">
{% csrf_token %}
<fieldset>
{{ form|as_bootstrap }}
</fieldset>
<div class="form-actions">
<input class="btn btn-primary" type="submit" value="Upload" />
</div>
</form>
{% endblock %}

View file

@ -1,16 +0,0 @@
{% extends "proposals/base.html" %}
{% load bootstrap_tags %}
{% block head_title %}Cancel Proposal{% endblock %}
{% block body %}
<h1>Cancel: {{ proposal.title }}</h1>
<form method="POST" action="" enctype="multipart/form-data">
{% csrf_token %}
<p>Are you sure you want to cancel <b>{{ proposal.title }}</b>?</p>
<input class="btn btn-danger" type="submit" value="I am sure" />
<a class="btn" href="{% url proposal_detail proposal.pk %}">No, keep it for now</a>
</form>
{% endblock %}

View file

@ -1,87 +0,0 @@
{% extends "site_base.html" %}
{% load i18n %}
{% block head_title %}{{ proposal.title }}{% endblock %}
{% block body %}
<div class="pull-right">
{% if not proposal.cancelled %}
{% if request.user == proposal.speaker.user %}
<a href="{% url proposal_edit proposal.pk %}" class="btn">
{% trans "Edit this proposal" %}
</a>
<a href="{% url proposal_cancel proposal.pk %}" class="btn">
{% trans "Cancel this proposal" %}
</a>
{% else %}
<a href="{% url proposal_leave proposal.pk %}" class="btn">
{% trans "Remove me from this proposal" %}
</a>
{% endif %}
{% else %}
Cancelled
{% endif %}
</div>
<h2>{{ proposal.title }}</h2>
<dl>
<dt>{% trans "Submitted by" %}</dt>
<dd>{{ proposal.speaker }}</dd>
{% if proposal.additional_speakers.all %}
<dt>{% trans "Additional Speakers" %}</dt>
<dd>
{% for speaker in proposal.additional_speakers.all %}
<li>
{% if speaker.user %}
<strong>{{ speaker.name }}</strong> &gt;{{ speaker.email }}&lt;
{% else %}
{{ speaker.email }} ({% trans "Invitation Sent" %})
{% endif %}
</li>
{% endfor %}
</dd>
{% endif %}
<dt>{% trans "Description" %}</dt>
<dd>{{ proposal.description }}</dd>
<dt>{% trans "Type" %}</dt>
<dd>{{ proposal.kind.name }}</dd>
<dt>{% trans "Audience Level" %}</dt>
<dd>{{ proposal.get_audience_level_display }}</dd>
<dt>{% trans "Abstract" %}</dt>
<dd>{{ proposal.abstract|safe }}</dd>
{% if request.user == proposal.speaker.user %}
<dt>{% trans "Private Notes" %}</dt>
<dd>{{ proposal.additional_notes }}</dd>
{% endif %}
</dl>
{% if request.user == proposal.speaker.user %}
<h3>Supporting Documents</h3>
{% if proposal.supporting_documents.exists %}
<table class="table table-striped">
{% for document in proposal.supporting_documents.all %}
<tr>
<td><a href="{{ document.download_url }}">{{ document.description }}</a></td>
<td>
<form style="margin: 0;" method="post" action="{% url proposal_document_delete document.pk %}">
{% csrf_token %}
<button type="submit" class="btn btn-mini">delete</button>
</form>
</td>
</tr>
{% endfor %}
</table>
{% else %}
<p>No supporting documents attached to this proposal.</p>
{% endif %}
<a class="btn btn-small{% if proposal.cancelled %} btn-disabled{% endif %}" href="{% url proposal_document_create proposal.pk %}"><i class="icon-upload"></i> Add Document</a>
{% endif %}
{% endblock %}

View file

@ -1,23 +0,0 @@
{% extends "site_base.html" %}
{% load bootstrap_tags %}
{% load markitup_tags %}
{% block head_title %}Editing {{ proposal.title }}{% endblock %}
{% block body %}
<h1>Edit: {{ proposal.title }}</h1>
<p><a href="{% url proposal_speaker_manage proposal.pk %}">Manage speakers</a></p>
<form method="POST" action="" enctype="multipart/form-data">
{% csrf_token %}
<fieldset>
{{ form|as_bootstrap }}
</fieldset>
<div class="form-actions">
<input class="btn btn-primary" type="submit" value="Save" />
<a class="btn" href="{% url proposal_detail proposal.pk %}">Cancel</a>
</div>
</form>
{% endblock %}

View file

@ -1,37 +0,0 @@
{% extends "proposals/base.html" %}
{% load bootstrap_tags %}
{% block body %}
<h1>Proposal: {{ proposal.title }}</h1>
<p><a href="{% url proposal_edit proposal.pk %}">Edit proposal</a></p>
<h2>Current Speakers</h2>
{% for speaker in speakers %}
{% if speaker.user %}
<p><b>{{ speaker.name }}</b> &mdash; {{ speaker.email }}</p>
{% else %}
<p>{{ speaker.email }} &mdash; pending invitation</p>
{% endif %}
{% endfor %}
<h2>Add another speaker</h2>
<form method="POST" action="" enctype="multipart/form-data" class="uniForm">
{% csrf_token %}
{{ add_speaker_form|as_bootstrap }}
<div class="form-action">
<input type="submit" value="Add speaker" class="btn btn-primary" />
</div>
</form>
{% endblock %}
{% block extra_body %}
<script type="text/javascript">
$(function() {
$("#id_email").focus();
});
</script>
{% endblock %}

View file

@ -1,22 +0,0 @@
{% extends "proposals/base.html" %}
{% load boxes_tags %}
{% load i18n %}
{% block page_title %}{% trans "Submit A Proposal" %}{% endblock %}
{% block body %}
{% box "proposal_submit" %}
{% if kinds %}
<p>Select what kind of proposal you'd like to submit:</p>
<ul>
{% for kind in kinds %}
<li><a href="{% url proposal_submit_kind kind.slug %}">{{ kind }}</a></li>
{% endfor %}
</ul>
{% else %}
<p>Proposals are not currently open for submission.</p>
{% endif %}
{% endblock %}

View file

@ -1,27 +0,0 @@
{% extends "proposals/base.html" %}
{% load bootstrap_tags %}
{% load boxes_tags %}
{% load markitup_tags %}
{% load i18n %}
{% block page_title %}Submit a Proposal for a {{ kind.name }}{% endblock %}
{% block body %}
{% box "example_proposal" %}
<form method="POST" action="" enctype="multipart/form-data" class="form-horizontal">
{% csrf_token %}
<fieldset>
{{ form|as_bootstrap }}
</fieldset>
<div class="form-actions">
<p>
You will be able to edit your proposal after it has been submitted. The program committee may ask questions, provide feedback, and even suggest changes to your proposal as part of the review processes.
</p>
<input class="btn btn-primary" type="submit" name="finish" value="Save" />
<!-- <span style="float: right; padding: 4px 6px">or</span> -->
<input class="btn" type="submit" name="add-speakers" value="Save and Add Additional Speakers" />
</div>
</form>
{% endblock %}

View file

@ -1,17 +0,0 @@
{% load sitetree %}
{% if sitetree_items %}
<ul class="breadcrumb">
{% for item in sitetree_items %}
{% if not forloop.last %}
<li>
<a href="{% sitetree_url for item %}" {% if item.hint %}title="{{ item.hint }}"{% endif %}>{{ item.title_resolved }}</a>
<span class="divider">/</span>
</li>
{% else %}
<li class="active">{{ item.title_resolved }}</li>
{% endif %}
{% endfor %}
</ul>
{% else %}
{% endif %}

View file

@ -1,16 +0,0 @@
{% load sitetree %}
<ul class="nav">
{% for item in sitetree_items %}
<li class="{{ item.is_current|yesno:"active ," }}{% if item.has_children %}dropdown{% endif %}">
{% if item.has_children %}
<a href="#" class="dropdown-toggle" data-toggle="dropdown" title="{{ item.hint|default:"" }}">
{{ item.title_resolved }}
<b class="caret"></b>
</a>
{% sitetree_children of item for menu template "sitetree/submenu.html" %}
{% else %}
<a href="{% sitetree_url for item %}" title="{{ item.hint|default:"" }}">{{ item.title_resolved }}</a>
{% endif %}
</li>
{% endfor %}
</ul>

View file

@ -1,8 +0,0 @@
{% load sitetree %}
<ul class="dropdown-menu">
{% for item in sitetree_items %}
<li>
<a href="{% sitetree_url for item %}" title="{{ item.hint|default:"" }}">{{ item.title_resolved }}</a>
</li>
{% endfor %}
</ul>

View file

@ -1,15 +0,0 @@
{% load sitetree %}
{% if sitetree_items %}
<ul>
{% for item in sitetree_items %}
{% if item.insitetree %}
<li>
<a href="{% sitetree_url for item %}" {% if item.hint %}title="{{ item.hint }}"{% endif %}>{{ item.title_resolved }}</a>
{% if item.has_children %}
{% sitetree_children of item for sitetree template "sitetree/tree.html" %}
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}

View file

@ -1 +0,0 @@
{% extends "site_base_onecolumn.html" %}

View file

@ -1,23 +0,0 @@
{% extends "speakers/base.html" %}
{% load bootstrap_tags %}
{% load i18n %}
{% load boxes_tags %}
{% block page_title %}{% trans "Create Speaker Profile" %}{% endblock %}
{% block body %}
{% box "speaker-profile" %}
<form method="POST" action="" enctype="multipart/form-data">
{% csrf_token %}
<legend>{% trans "Create Speaker Profile" %}</legend>
<fieldset>
{{ form|as_bootstrap }}
</fieldset>
<div class="form-actions">
<input class="btn btn-primary" type="submit" value="Save" />
<a class="btn" href="{% url dashboard %}">Cancel</a>
</div>
</form>
{% endblock %}

View file

@ -1,23 +0,0 @@
{% extends "speakers/base.html" %}
{% load bootstrap_tags %}
{% load i18n %}
{% load boxes_tags %}
{% block page_title %}{% trans "Edit Speaker Profile" %}{% endblock %}
{% block body %}
{% box "speaker-profile" %}
<form method="POST" action="" enctype="multipart/form-data">
{% csrf_token %}
<legend>{% trans "Edit Speaker Profile" %}</legend>
<fieldset>
{{ form|as_bootstrap }}
</fieldset>
<div class="form-actions">
<input class="btn btn-primary" type="submit" value="Save" />
<a class="btn" href="{% url dashboard %}">Cancel</a>
</div>
</form>
{% endblock %}

View file

@ -1,11 +0,0 @@
{% load sponsorship_tags %}
{% sponsor_levels as levels %}
<div class="sponsor-list">
{% for level in levels %}
<h3>{{ level.name }}</h3>
{% for sponsor in level.sponsors %}
{% include "sponsorship/_sponsor_link.html" with sponsor=sponsor %}
{% endfor %}
{% endfor %}
</div>

View file

@ -1,10 +0,0 @@
{% load thumbnail %}
{% spaceless %}
<a href="{{ sponsor.external_url }}">
{% if dimensions %}
<img src="{% thumbnail sponsor.logo dimensions %}" alt="{{ sponsor.name }}" />
{% else %}
<img src="{% thumbnail sponsor.logo '150x150' %}" alt="{{ sponsor.name }}" />
{% endif %}
</a>
{% endspaceless %}

View file

@ -1,13 +0,0 @@
{% load sponsorship_tags %}
{% sponsor_levels as levels %}
<div class="sponsor-list">
{% for level in levels %}
<h3>{{ level.name }}</h3>
{% for sponsor in level.sponsors %}
<div>
{% include "sponsorship/_sponsor_link.html" with sponsor=sponsor %}
</div>
{% endfor %}
{% endfor %}
</div>

View file

@ -1,7 +0,0 @@
{% load sponsorship_tags %}
{% sponsors as sponsors %}
<div class="sponsor-wall">
{% for sponsor in sponsors %}
{% include "sponsorship/_sponsor_link.html" with sponsor=sponsor %}
{% endfor %}
</div>

View file

@ -1,28 +0,0 @@
{% extends "site_base.html" %}
{% load bootstrap_tags %}
{% load i18n %}
{% load boxes_tags %}
{% block head_title %}{% trans "Apply to be a Sponsor" %}{% endblock %}
{% block body_class %}sponsors{% endblock %}
{% block body %}
{% box "sponsorship-apply" %}
<form method="POST" action="" class="form-horizontal">
{% csrf_token %}
<legend>{% trans "Apply to Be a Sponsor" %}</legend>
{{ form|as_bootstrap }}
<div class="form-actions">
<input class="btn btn-primary" type="submit" value="Apply" />
<a class="btn" href="{% url dashboard %}">Cancel</a>
<p class="help-block">
<small>By submitting this sponsor application you are agreeing to the <a href="{% url cms_page "sponsor/terms/" %}" target="_blank">terms and conditions</a>.</small>
</p>
</div>
</form>
{% endblock %}

View file

@ -1,40 +0,0 @@
{% extends "site_base.html" %}
{% load bootstrap_tags %}
{% load i18n %}
{% block head_title %}{{ sponsor }}{% endblock %}
{% block page_title %}{% trans "Sponsorship" %}{% endblock %}
{% block body %}
<h2>{{ sponsor.name }} ({{ sponsor.level }})</h2>
<form enctype="multipart/form-data" method="POST" action="" class="form-horizontal">
{% csrf_token %}
<fieldset>
{{ form|as_bootstrap }}
</fieldset>
<h3>{{ sponsor.level }} Sponsor Benefits</h3>
{{ formset.management_form }}
{{ formset.non_form_errors }}
{% for form in formset.forms %}
<div class="control-group">
<label class="control-label">{{ form.instance.benefit }}</label>
<div class="controls">
{{ form }}
<p class="help-block">{{ form.instance.benefit.description }}</p>
</div>
</div>
{% endfor %}
<div class="form-actions">
<input class="btn btn-primary" type="submit" value="Save" />
<a class="btn" href="{% url dashboard %}">Cancel</a>
</div>
</form>
{% endblock %}

View file

@ -1,43 +0,0 @@
{% extends "site_base.html" %}
{% load sponsorship_tags %}
{% load thumbnail %}
{% load i18n %}
{% block head_title %}{% trans "About Our Sponsors" %}{% endblock %}
{% block body_class %}sponsors{% endblock %}
{% sponsor_levels as levels %}
{% block body_outer %}
<div class="row">
<div class="span12">
<h1>{% trans "About Our Sponsors" %}</h1>
<a href="{% url cms_page "sponsors/prospectus/" %}" class="btn">Learn how to become a sponsor <span class="arrow"></span></a>
{% for level in levels %}
<h3>{{ level.name }}</h3>
<div class="row">
{% for sponsor in level.sponsors %}
<div class="span4">
<div class="sponsor" id="sponsor-{{ sponsor.id }}">
<div class="sponsor-content">
<h2>
<a href="{{ sponsor.external_url }}">
<img src="{% thumbnail sponsor.website_logo '150x80' %}" alt="{{ sponsor.name }}" />
</a>
</h2>
<h5>{{ sponsor.name }}</h5>
<p><a href="{{ sponsor.external_url }}">{{ sponsor.external_url }}</a></p>
<p>{{ sponsor.listing_text|urlize|linebreaks }}</p>
</div>
</div>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
{% endblock %}

View file

@ -1,103 +0,0 @@
{% extends "site_base.html" %}
{% load bootstrap_tags %}
{% block head_title %}{{ team.name }}{% endblock %}
{% block body_outer %}
<div class="row">
<div class="span12">
<div class="pull-right">
{% if can_join %}
<form method="post" action="{% url team_join team.slug %}">
{% csrf_token %}
<input type="submit" class="btn btn-primary" value="join">
</form>
{% endif %}
{% if can_leave %}
<form method="post" action="{% url team_leave team.slug %}">
{% csrf_token %}
<input type="submit" class="btn" value="leave">
</form>
{% endif %}
{% if can_apply %}
<form method="post" action="{% url team_apply team.slug %}">
{% csrf_token %}
<input type="submit" class="btn btn-primary" value="apply">
</form>
{% endif %}
</div>
<h1>{{ team.name }}{% if state %} <span class="label">{{ state }}</span>{% endif %}</h1>
{% if team.description %}<p>{{ team.description }}</p>{% endif %}
{% if state == "invited" %}<p>You have been invited to join this team. Click <b>join</b> to the right to accept.</p>{% endif %}
{% if user.is_staff or state == "manager" %}
{% if team.managers %}
<h2>Managers</h2>
<table class="table table-striped">
{% for membership in team.managers %}
<tr>
<td>{{ membership.user.email }}{% if user == membership.user %} <span class="label label-info">you</span>{% endif %}</td>
<td>
<form style="margin: 0;" method="post" action="{% url team_demote membership.pk %}">{% csrf_token %}<button type="submit" class="btn btn-mini">demote</button></form>
</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% if team.members %}
<h2>Team Members</h2>
<table class="table table-striped">
{% for membership in team.members %}
<tr>
<td>{{ membership.user.email }}{% if user == membership.user %} <span class="label label-info">you</span>{% endif %}</td>
<td>
<form style="margin: 0;" method="post" action="{% url team_promote membership.pk %}">{% csrf_token %}<button type="submit" class="btn btn-mini">promote</button></form>
</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% if team.applicants and team.access == "application" %}
<h2>Applicants</h2>
<table class="table table-striped">
{% for membership in team.applicants %}
<tr>
<td>{{ membership.user.email }}</td>
<td>
<form style="margin: 0; float: left;" method="post" action="{% url team_accept membership.pk %}">{% csrf_token %}<button type="submit" class="btn btn-mini">accept</button></form>
<form style="margin: 0; float: left;" method="post" action="{% url team_reject membership.pk %}">{% csrf_token %}<button type="submit" class="btn btn-mini">reject</button></form>
</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% if team.invitees %}
<h2>Invitees</h2>
<table class="table table-striped">
{% for membership in team.invitees %}
<tr>
<td>{{ membership.user.email }}</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% if invite_form %}
<form method="POST" action="" class="form-horizontal">
{% csrf_token %}
<legend>Invite User to Team</legend>
{{ invite_form|as_bootstrap }}
<div class="form-actions">
<input class="btn btn-primary" type="submit" value="Invite" />
</div>
</form>
{% endif %}
{% endif %}
</div>
</div>
{% endblock %}