Changeset - 1886323d7431
[Not reviewed]
1 41 7
Sachi King - 7 years ago 2017-04-16 06:30:45
nakato@nakato.io
Bootstrapification

Boot custom CSS, and put some base, standard css in its place.
Shame I did not start with fresh Bootstrap4, but oh well.

Some more templates could be made to make this less messy, which would
be good.
49 files changed with 490 insertions and 549 deletions:
0 comments (0 inline, 0 general)
pinaxcon/settings.py
Show inline comments
 
import os
 
import saml2
 
import saml2.saml
 
from django.utils.crypto import get_random_string
 
import django
 

	
 
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
 
PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__))
 
DJANGO_ROOT = os.path.abspath(os.path.dirname(django.__file__))
 
BASE_DIR = PACKAGE_ROOT
 

	
 

	
 
### USER SETTINGS
 

	
 
DEBUG = True
...
 
@@ -18,26 +20,25 @@ DATABASES = {
 
    }
 
}
 
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
 
THEME_CONTACT_EMAIL = "team@lca2018.org"
 
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY", get_random_string(length=64))
 

	
 

	
 
PINAX_STRIPE_PUBLIC_KEY = os.environ.get("STRIPE_PUBLIC_KEY", "your test public key")
 
PINAX_STRIPE_SECRET_KEY = os.environ.get("STRIPE_SECRET_KEY", "your test secret key")
 
PINAX_STRIPE_SEND_EMAIL_RECEIPTS = False
 

	
 
saml2_entityid = 'http://example.com/saml2/metadata/'
 
saml2_sp_name = 'Federated Django sample SP'
 
saml2_sp_assertion_service = 'http://example.com/saml2/acs/'
 
saml2_sp_slo_rdir = 'http://example.com/saml2/ls/'
 
smal2_sp_slo_post = 'http://example.com/saml2/ls/post'
 
saml2_base_dir = os.path.join(PACKAGE_ROOT, 'saml2')
 
saml2_idp_metadata = {
 
    'local': [os.path.join(saml2_base_dir, 'remote_metadata.xml')],
 
    },
 
    }
 
saml2_signing_key = os.path.join(saml2_base_dir, 'cert.key')
 
saml2_signing_crt = os.path.join(saml2_base_dir, 'cert.pem')
 
saml2_encr_key = os.path.join(saml2_base_dir, 'enc.key')
 
saml2_encr_crt = os.path.join(saml2_base_dir, 'enc.crt')
 
saml2_contact = [
 
    {'given_name': os.environ.get("META_GIVEN_NAME", 'Bastard'),
...
 
@@ -68,29 +69,31 @@ USE_I18N = True
 
USE_L10N = True
 
USE_TZ = True
 

	
 
MEDIA_ROOT = os.path.join(PACKAGE_ROOT, "site_media", "media")
 
MEDIA_URL = "/site_media/media/"
 

	
 
STATIC_ROOT = os.path.join(PROJECT_ROOT, "static", "distx")
 
STATIC_ROOT = os.path.join(PROJECT_ROOT, "static")
 
STATIC_URL = "/static/dist/"
 

	
 
STATICFILES_DIRS = [
 
    os.path.join(PROJECT_ROOT, "static", "dist"),
 
]
 

	
 
STATICFILES_FINDERS = [
 
    "django.contrib.staticfiles.finders.FileSystemFinder",
 
    "django.contrib.staticfiles.finders.AppDirectoriesFinder",
 
]
 

	
 
FORM_RENDERER = 'django.forms.renderers.TemplatesSetting'
 
TEMPLATES = [
 
    {
 
        "BACKEND": "django.template.backends.django.DjangoTemplates",
 
        "DIRS": [
 
            os.path.join(PACKAGE_ROOT, "templates"),
 
            os.path.join(DJANGO_ROOT, 'forms/templates')
 
        ],
 
        "APP_DIRS": True,
 
        "OPTIONS": {
 
            "debug": DEBUG,
 
            "context_processors": [
 
                "django.contrib.auth.context_processors.auth",
pinaxcon/templates/_form_snippet.html
Show inline comments
...
 
@@ -3,11 +3,11 @@
 
  <div class="has-errors">
 
    {{ form.non_field_errors }}
 
  </div>
 
  <br/>
 
{% endif %}
 

	
 
<blockquote><small>
 
  Fields marked with <strong>(*)</strong> are required.
 
</small></blockquote>
 
<blockquote>
 
  Fields marked with <strong>*</strong> are required.
 
</blockquote>
 

	
 
{% include "forms/render.html" with form=form %}
pinaxcon/templates/dashboard.html
Show inline comments
...
 
@@ -6,255 +6,328 @@
 
{% load teams_tags %}
 
{% load registrasion_tags %}
 
{% load pyconau2017_tags %}
 
{% load staticfiles %}
 

	
 

	
 
{% block head_title %}Dashboard{% endblock %}
 
{% block header_title %}Dashboard{% endblock %}
 

	
 

	
 
{% block content %}
 

	
 
<div class="jumbotron">
 
<h1>DASHBOARD</h1>
 
{% available_categories as categories %}
 
{% if categories %}
 
  <!--div class="panel panel__compact panel__bg panel__last" -->
 
    <div class="dashbpard-panel">
 
      <div>
 
        <h3>{% trans "Attend" %} {% conference_name %}</h3>
 
        <div class="vertical-bigger"></div>
 
        <div class="btn-group">
 
          {% if not user.attendee.completed_registration %}
 
            <a href="{% url "guided_registration" %}" class="btn btn__neut">
 
              Get your ticket
 
            </a>
 
          {% else %}
 
            <a href="{% url "attendee_edit" %}" class="btn btn__neut">
 
              Edit attendee profile
 
            </a>
 
<div>
 
  {% available_categories as categories %}
 
  {% if categories %}
 

	
 
            {% items_pending as pending %}
 
            {% if pending %}
 
              <a href="{% url "checkout" %}" class="btn btn__neut">
 
                Check out and pay
 
              </a>
 
            {% endif %}
 
          {% endif %}
 

	
 
          {% if user.is_staff %}
 
            <a class="btn btn__neut" href="{% url "reports_list" %}">Reports</a>
 
          {% endif %}
 
    {% if user.is_staff %}
 
    <div class="container">
 
      <div class="page-header">
 
        <h1>Administration</h1>
 
      </div>
 
      <div class="page-row">
 
        <div class="col-xs-12">
 
          <a class="btn btn-lg btn-info" role="button" href="{% url "reports_list" %}">Reports</a>
 
        </div>
 
      </div>
 
    </div>
 
  <!--/div-->
 
    {% endif %}
 

	
 
  <div class="dashboard-panel">
 
      {% if not user.attendee.completed_registration %}
 
        <p>To attend the conference, you must purchase a ticket. <a href="{% url "guided_registration" %}">Use our registration form to purchase your ticket</a>.
 
        </p>
 

	
 
  <div class="container">
 
    <div class="page-header">
 
      <h1>{% trans "Attend" %} {% conference_name %}</h1>
 
    </div>
 
    <div class="page-row">
 
      {% if not user.attendee.completed_registration %}
 
        <div class="panel panel-default">
 
          <div class="panel-heading">
 
            <h4>Register</h4>
 
          </div>
 
          <div class="panel-body">
 
            <p>To attend the conference, you must register an attendee profile and purchase your ticket</p>
 
            <a class="btn btn-lg btn-primary" role="button" href="{% url "guided_registration" %}">Get your ticket</a>
 
          </div>
 
        </div>
 
      {% else %}
 

	
 
        <h3 class="small">Your items</h3>
 
          {% items_pending as pending %}
 

	
 
          {% if pending %}
 
            <h4>Items pending payment</h4>
 
            {% include "registrasion/_items_list.html" with items=pending %}
 
            <p><a href="{% url "checkout" %}" class="btn btn-xs btn-default">
 
              <i class="fa fa-credit-card"></i>
 
              Check out and pay for these items.</a>
 
            </p>
 
          {% endif %}
 

	
 
          {% items_purchased as purchased %}
 
          {% if purchased %}
 
            <h4>Paid items</h4>
 
            {% include "registrasion/_items_list.html" with items=purchased %}
 
          {% endif %}
 

	
 
          <h4>Add/Update items</h4>
 
          {% include "registrasion/_category_list.html" with categories=categories %}
 

	
 
        {% invoices as invoices %}
 
        {% if invoices %}
 
          <h4>Invoices</h4>
 
          <ul>
 
            {% for invoice in invoices %}
 
              {% if invoice.is_void %}
 
                <li class="void-invoice" style="display: none;">
 
              {% else %}
 
                <li>
 
              {% endif %}
 
                <a href="{% url "invoice" invoice.id %}" >Invoice {{ invoice.id }}</a>
 
                - ${{ invoice.value }} ({{ invoice.get_status_display }})
 
              </li>
 
            {% endfor %}
 
          </ul>
 
          <p>
 
            <button class="btn" id="toggle-void-invoices" href="" onclick="toggleVoidInvoices();">Show void invoices</button>
 
          </p>
 
        {% endif %}
 

	
 
        {% available_credit as credit %}
 
        {% if credit %}
 
          <p>You have ${{ credit }} leftover from refunded invoices. This credit will be automatically applied to new invoices. Contact the conference organisers to
 
          for a refund to your original payment source.</p>
 
        <div class="col-xs-12 col-sm-6 col-lg-6">
 
          <div class="panel panel-default">
 
            <div class="panel-heading">
 
              <h4>Attendee Profile</h4>
 
            </div>
 
            <div class="panel-body">
 
              <p>If you would like to change the details on your badge or your attendee statistics, you may edit your attendee profile up until the weekend before the conference</p>
 
              <a class="btn btn-lg btn-primary pull-right" role="button" href="{% url "attendee_edit" %}">Edit attendee profile</a>
 
            </div>
 
          </div>
 
        </div>
 
        {% items_pending as pending %}
 
        {% if pending %}
 
          <div class="col-xs-12 col-sm-12 col-lg-12">
 
            <div class="panel panel-default">
 
              <div class="panel-heading">
 
                <h4>Account</h4>
 
              </div>
 
              <div class="panel-body">
 
                {% items_pending as pending %}
 
                {% if pending %}
 
                  <div class="col-xs-12 col-sm-6 col-lg-6">
 
                    <div class="panel panel-warning">
 
                      <div class="panel-heading">
 
                        <h5>Items pending payment</h5>
 
                      </div>
 
                      <div class="panel-body">
 
                        {% include "registrasion/_items_list.html" with items=pending %}
 
                        <div class="right">
 
                          <a class="btn btn-lg btn-success pull-right" role="button" href="{% url "checkout" %}">Check out and pay</a>
 
                        </div>
 
                      </div>
 
                    </div>
 
                  </div>
 
                {% endif %}
 

	
 
                {% items_purchased as purchased %}
 
                {% if purchased %}
 
                  <div class="col-xs-12 col-sm-6 col-lg-6">
 
                    <div class="panel panel-success">
 
                      <div class="panel-heading">
 
                        <h5>Paid Items</h5>
 
                      </div>
 
                      <div class="panel-body">
 
                        {% include "registrasion/_items_list.html" with items=purchased %}
 
                      </div>
 
                    </div>
 
                  </div>
 
                {% endif %}
 
                <div class="col-xs-12 col-sm-6 col-lg-6">
 
                  <div class="panel panel-success">
 
                    <div class="panel-heading">
 
                      <h5>Add/Update Items</h5>
 
                    </div>
 
                    <div class="panel-body">
 
                      {% include "registrasion/_category_list.html" with categories=categories %}
 
                    </div>
 
                  </div>
 
                </div>
 

	
 
                {% invoices as invoices %}
 
                {% if invoices %}
 
                  <div class="col-xs-12 col-sm-12 col-lg-12">
 
                    <div class="panel panel-info">
 
                      <div class="panel-heading">
 
                        <h5>Invoices</h5>
 
                      </div>
 
                      <div class="panel-body">
 
                        <ul>
 
                          {% for invoice in invoices %}
 
                            {% if invoice.is_void %}
 
                              <li class="void-invoice" style="display: none;">
 
                            {% else %}
 
                              <li>
 
                            {% endif %}
 
                              <a href="{% url "invoice" invoice.id %}" >Invoice {{ invoice.id }}</a>
 
                              - ${{ invoice.value }} ({{ invoice.get_status_display }})
 
                              <button class="btn btn-lg btn-default" type="button" id="toggle-void-invoices" href="" onclick="toggleVoidInvoices();">Show void invoices</button>
 
                            </li>
 
                          {% endfor %}
 
                        </ul>
 
                      </div>
 
                    </div>
 
                  </div>
 
                {% endif %}
 

	
 
                {% available_credit as credit %}
 
                {% if credit %}
 
                  <div class="col-xs-12 col-sm-12 col-lg-12">
 
                    <div class="panel panel-danger">
 
                      <div class="panel-heading">
 
                        <h5>Credit</h5>
 
                      </div>
 
                      <div class="panel-body">
 
                        <p>You have ${{ credit }} leftover from refunded invoices. This credit will be automatically applied to new invoices. Contact the conference organisers to for a refund to your original payment source.</p>
 
                      </div>
 
                    </div>
 
                  </div>
 
                {% endif %}
 

	
 
              </div>
 
            </div>
 
          </div>
 
        {% endif %}
 
      <p></p>
 
      {% endif %}
 
    </div>
 
  </div>
 

	
 
{% endif %}
 

	
 
    <div class="dashboard-panel">
 
      <div class="panel--2-3">
 
        <h3>{% trans "Speaking and Miniconfs" %}</h3>
 
        <br />
 
        <div class="btn-group">
 

	
 
<div class="container">
 
  <div class="page-header">
 
    <h1>{% trans "Speaking and Miniconfs" %}</h1>
 
  </div>
 
  <div class="page-row">
 
    <div class="col-xs-12 col-sm-6 col-lg-6">
 
      <div class="panel panel-primary">
 
        <div class="panel-heading">
 
          <h5>Speaker Profile</h5>
 
        </div>
 
        <div class="panel-body">
 
          {% if not user.speaker_profile %}
 
            <p>To create a speaking or miniconf proposal you must first create a speaker profile.</p>
 
          {% endif %}
 
          <p>Your speaker profile is independent of your attendee profile and the details you provide here will be used during selection and to populate your speaker bio on the conference website.</p>
 
          {% if not user.speaker_profile %}
 
            <a href="{% url "speaker_create" %}" class="btn btn__neut">
 
            Create profile
 
            </a>
 
            <a class="btn btn-lg btn-primary pull-right" role="button" href="{% url "speaker_create" %}">Create Profile</a>
 
          {% else %}
 
            <a href="{% url "speaker_edit" %}" class="btn btn__neut">
 
              Edit profile
 
            </a>
 
            <a href="{% url "proposal_submit" %}" class="btn btn__neut">
 
              New proposal
 
            </a>
 
            <a class="btn btn-lg btn-primary pull-right" role="button" href="{% url "speaker_edit" %}">Edit Profile</a>
 
          {% endif %}
 
        </div>
 
      </div>
 
  </div>
 

	
 
  <div class="dashboard-panel">
 
    </div>
 

	
 
      {% if not user.speaker_profile %}
 
        <p>To submit a proposal, you must first create a speaker profile.</p>
 
      {% else %}
 
        <h3>Your Proposals</h3>
 
    {% if user.speaker_profile %}
 
      <div class="col-xs-12 col-sm-6 col-lg-6">
 
        <div class="panel panel-primary">
 
          <div class="panel-heading">
 
            <h5>New Proposal</h5>
 
          </div>
 
          <div class="panel-body">
 
            <p>You may use the following form to create a speaking or miniconf proposal.</p>
 
            <p>Once submitted you will be able to see the status of your proposals, as well manage the submission and co-speakers from this page</p>
 
            <a class="btn btn-lg btn-primary pull-right" role="button" href="{% url "proposal_submit" %}">New Proposal</a>
 
          </div>
 
        </div>
 
      </div>
 
    {% endif %}
 

	
 
        {% if not user.speaker_profile.proposals.exists %}
 
          <p>No proposals submitted yet.</p>
 
        {% else %}
 
          <p></p>
 
        {% endif %}
 
  </div>
 
</div>
 

	
 
      {% endif %}
 

	
 
      {% if user.speaker_profile.proposals.exists %}
 
{% if user.speaker_profile %}
 
  {% if user.speaker_profile.proposals.exists %}
 
    <div class="container">
 
      <div class="page-header">
 
        <h2>Your Proposals</h2>
 
      </div>
 
      <div class="page-row">
 
        {% if user.speaker_profile.proposals.exists %}
 
          {% for proposal in user.speaker_profile.proposals.all %}
 
            {% include "symposion/proposals/_proposal_row.html" %}
 
          {% endfor %}
 
      {% endif %}
 

	
 
      {% if user.speaker_profile %}
 
          {% associated_proposals as associated_proposals %}
 
          {% if associated_proposals %}
 
            <h3 class="small">Proposals you have joined as an additional speaker</h3>
 
            <table>
 
                <tr>
 
                    <th>Title</th>
 
                    <th>Type</th>
 
                    <th>Status</th>
 
                    <th>Actions</th>
 
                </tr>
 
                {% for proposal in associated_proposals %}
 
                    {% include "symposion/proposals/_proposal_row.html" %}
 
                {% endfor %}
 
            </table>
 
          {% endif %}
 
        {% endif %}
 
      </div>
 
    </div>
 
  {% endif %}
 
{% endif %}
 

	
 
          {% pending_proposals as pending_proposals %}
 
          {% if pending_proposals %}
 
            <h3 class="small">Proposals you have been invited to join</h3>
 
              <table>
 
                <tr>
 
                  <th>Title</th>
 
                  <th>Type</th>
 
                  <th>Status</th>
 
                  <th>Actions</th>
 
                </tr>
 
                {% for proposal in pending_proposals %}
 
                  {% include "symposion/proposals/_pending_proposal_row.html" %}
 
                {% endfor %}
 
              </table>
 
          {% endif %}
 
      {% endif %}
 

	
 
</div>
 
{% if user.speaker_profile %}
 
  {% associated_proposals as associated_proposals %}
 
  {% pending_proposals as pending_proposals %}
 
  {% if associated_proposals or pending_proposals %}
 
    <div class="container">
 
      <div class="page-header">
 
        <h2>Copresenter Proposals</h2>
 
      </div>
 
      <div class="page-row">
 
      {% for proposal in associated_proposals %}
 
        {% include "symposion/proposals/_proposal_row.html" %}
 
      {% endfor %}
 
      {% for proposal in pending_proposals %}
 
        {% include "symposion/proposals/_pending_proposal_row.html" %}
 
      {% endfor %}
 
      </div>
 
    </div>
 
  {% endif %}
 
{% endif %}
 

	
 
{# {% include 'registrasion/dashboard-widget.html' %} #}
 

	
 
{% if review_sections %}
 

	
 
  <div class="dashboard-panel">
 
        <h3>{% trans "Reviews" %}</h3>
 

	
 
        {% for section in review_sections %}
 
          <h3 class="small">{{ section }}</h3>
 
          <ul>
 
            <li><a href="{% url "review_section" section.section.slug %}">All</a></li>
 
            <li><a href="{% url "user_reviewed" section.section.slug %}">Reviewed by you</a></li>
 
            <li><a href="{% url "user_not_reviewed" section.section.slug %}">Not Reviewed by you</a></li>
 
          </ul>
 
        {% endfor %}
 

	
 
  <div class="container">
 
    <div class="page-header">
 
      <h2>{% trans "Reviews" %}</h2>
 
    </div>
 

	
 
    <div class="page-row">
 
      {% for section in review_sections %}
 
        <div class="col-xs-12 col-sm-6 col-lg-6">
 
          <div class="panel panel-primary">
 
            <div class="panel-heading">
 
              <h5>{{ section }}</h5>
 
            </div>
 
            <div class="panel-body">
 
              <ul>
 
                <li><a href="{% url "review_section" section.section.slug %}">All</a></li>
 
                <li><a href="{% url "user_reviewed" section.section.slug %}">Reviewed by you</a></li>
 
                <li><a href="{% url "user_not_reviewed" section.section.slug %}">Not Reviewed by you</a></li>
 
              </ul>
 
            </div>
 
          </div>
 
        </div>
 
      {% endfor %}
 
    </div>
 
  </div>
 
{% endif %}
 

	
 

	
 
{% available_teams as available_teams %}
 
{% if user.memberships.exists or available_teams %}
 
  <div class="dashboard-panel">
 
      <h3>{% trans "Teams" %}</h3>
 

	
 
        {% if user.memberships.exists %}
 
          <h3 class="small">Your Teams</h3>
 
          <table>
 
            {% for membership in user.memberships.all %}
 
              <tr>
 
                <td>
 
                  <a href="{% url "team_detail" membership.team.slug %}">{{ membership.team.name }}</a>
 
                  {% if membership.team.description %}<br>{{ membership.team.description }}{% endif %}
 
                </td>
 
                <td>
 
  <div class="container">
 
    <div class="page-header">
 
      <h2>{% trans "Teams" %}</h2>
 
    </div>
 
  </div>
 
  <div class="container">
 
    <div class="page-row">
 
      {% if user.memberships.exists %}
 
        <div class="page-header">
 
          <h3>Your Teams</h3>
 
        </div>
 
        <div clas="page-row">
 
          {% for membership in user.memberships.all %}
 
            <div class="col-xs-12 col-sm-6 col-lg-6">
 
              <div class="panel panel-primary">
 
                <div class="panel-heading">
 
                  <h5>{{ membership.team.name }}</h5>
 
                </div>
 
                <div class="panel-body">
 
                  {% if membership.team.description %}<p>{{ membership.team.description }}</p>{% endif %}
 
                  <a class="btn btn-lg btn-primary" role="button" href="{% url "team_detail" membership.team.slug %}">Details</a>
 
                  <span class="{% if membership.state == 'invited' %} label-info{% endif %}">{{ membership.get_state_display }}</span>
 
                </td>
 
                <td>
 
                  {% if membership.state == "manager" or user.is_staff %}
 
                    {% if membership.team.applicants %}{{ membership.team.applicants.count }} applicant{{ membership.team.applicants.count|pluralize }}{% endif %}
 
                      {% endif %}
 
                </td>
 
              </tr>
 
            {% endfor %}
 
          </table>
 

	
 
        {% endif %}
 

	
 

	
 
        {% if available_teams %}
 
          <h3 class="small">Available Teams</h3>
 
          <table class="table table-striped">
 
            {% for team in available_teams %}
 
              <tr>              <td>
 
                  <a href="{% url "team_detail" team.slug %}">{{ team }}</a>
 
                  {% if team.description %}<br>{{ team.description }}{% endif %}
 
                </td>              <td>
 
                   <span class="label label-default">{{ team.get_access_display }}</span>
 
                </td>
 
              </tr>
 
            {% endfor %}
 
           </table>
 
        {% endif %}
 

	
 
                  {% endif %}
 
                </div>
 
              </div>
 
            </div>
 
          {% endfor %}
 
        </div>
 
      {% endif %}
 
    </div>
 
    <div class="container">
 
      {% if available_teams %}
 
        <div class="page-header">
 
          <h3>Available Teams</h3>
 
        </div>
 
        <div clas="page-row">
 
          {% for team in available_teams %}
 
            <div class="col-xs-12 col-sm-6 col-lg-6">
 
              <div class="panel panel-primary">
 
                <div class="panel-heading">
 
                  <h5>{{ team }}</h5>
 
                </div>
 
                <div class="panel-body">
 
                  {% if team.description %}<p>{{ team.description }}</p>{% endif %}
 
                  <span class="label label-default">{{ team.get_access_display }}</span>
 
                  <a class="btn btn-lg btn-primary" role="button" href="{% url "team_detail" team.slug %}">Details</a>
 
                </div>
 
          {% endfor %}
 
        </div>
 
      {% endif %}
 
    </div>
 
  </div>
 
{% endif %}
 
</div>
 

	
 
{% endblock %} <!-- block content -->
 

	
 
{% block scripts_extra %}
pinaxcon/templates/django/forms/widgets/checkbox.html
Show inline comments
 
new file 100644
 
<input class="form-check-input" type="{{ widget.type }}" name="{{ widget.name }}"{% if widget.value != None %} value="{{ widget.value }}"{% endif %}{% include "django/forms/widgets/attrs.html" %} />
pinaxcon/templates/django/forms/widgets/checkbox_option.html
Show inline comments
 
new file 100644
 
{% if wrap_label %}<label class="form-check-label"{% if widget.attrs.id %} for="{{ widget.attrs.id }}"{% endif %}>{% endif %}
 
<input class="form-check-input" type="{{ widget.type }}" name="{{ widget.name }}"{% if widget.value != None %} value="{{ widget.value }}"{% endif %}{% include "django/forms/widgets/attrs.html" %} />
 
{% if wrap_label %} {{ widget.label }}</label>{% endif %}
pinaxcon/templates/django/forms/widgets/input.html
Show inline comments
 
new file 100644
 
<input class="form-control" type="{{ widget.type }}" name="{{ widget.name }}"{% if widget.value != None %} value="{{ widget.value }}"{% endif %}{% include "django/forms/widgets/attrs.html" %} />
pinaxcon/templates/django/forms/widgets/radio_option.html
Show inline comments
 
new file 100644
 
{% if wrap_label %}<label class="form-check-label"{% if widget.attrs.id %} for="{{ widget.attrs.id }}"{% endif %}>{% endif %}
 
  <input class="form-check-input" type="{{ widget.type }}" name="{{ widget.name }}"{% if widget.value != None %} value="{{ widget.value }}"{% endif %}{% include "django/forms/widgets/attrs.html" %} />
 
{% if wrap_label %} {{ widget.label }}</label>{% endif %}
pinaxcon/templates/django/forms/widgets/select.html
Show inline comments
 
new file 100644
 
<select class="form-control" name="{{ widget.name }}"{% include "django/forms/widgets/attrs.html" %}>{% for group_name, group_choices, group_index in widget.optgroups %}{% if group_name %}
 
  <optgroup label="{{ group_name }}">{% endif %}{% for option in group_choices %}
 
  {% include option.template_name with widget=option %}{% endfor %}{% if group_name %}
 
  </optgroup>{% endif %}{% endfor %}
 
</select>
pinaxcon/templates/django/forms/widgets/text.html
Show inline comments
 
new file 100644
 
<input class="form-control" type="{{ widget.type }}" name="{{ widget.name }}"{% if widget.value != None %} value="{{ widget.value }}"{% endif %}{% include "django/forms/widgets/attrs.html" %} />
pinaxcon/templates/django/forms/widgets/textarea.html
Show inline comments
 
new file 100644
 
<textarea class="form-control" name="{{ widget.name }}"{% include "django/forms/widgets/attrs.html" %}>
 
{% if widget.value %}{{ widget.value }}{% endif %}</textarea>
pinaxcon/templates/forms/render_fields.html
Show inline comments
 
{% for field in form %}
 
  {% if not field.is_hidden %}
 
    <div class="fieldWrapper {% if field.errors %}has-errors{% endif %}">
 
      <div>
 
        {% include "forms/widget.html" %}
 
      </div>
 

	
 
      {% if field.help_text %}
 
        <span class="help_text">{{ field.help_text|safe }}</span>
 
      {% endif %}
 
    </div>
 
    {% include "forms/widget.html" %}
 
  {% endif %}
 
{% endfor %}
pinaxcon/templates/forms/widget.html
Show inline comments
 
{% load pyconau2017_tags %}
 

	
 
{% classname field.field.widget as widget %}
 
{% if widget == "CheckboxInput" %}
 
  {% include "forms/widget_boolean_single.html" %}
 
{% elif widget == "RadioSelect" or widget == "CheckboxSelectMultiple" %}
 
  {% include "forms/widget_boolean_multiple.html" %}
 
{% elif widget == "Select" or widget == "SelectMultiple" or widget == "LazySelect" or widget == "CountrySelectWidget" %}
 
  {% include "forms/widget_basic.html" with widget_class="select" %}
 
{% else %}
 
  {% include "forms/widget_basic.html" %}
 
{% endif %}
 
<div class="form-group row">
 
  {% classname field.field.widget as widget %}
 
  {% if widget == "CheckboxInput" %}
 
    {% include "forms/widget_boolean_single.html" %}
 
  {% elif widget == "RadioSelect" or widget == "CheckboxSelectMultiple" %}
 
    {% include "forms/widget_boolean_multiple.html" %}
 
  {% elif widget == "Select" or widget == "SelectMultiple" or widget == "LazySelect" or widget == "CountrySelectWidget" %}
 
    {% include "forms/widget_basic.html" with widget_class="select" %}
 
  {% else %}
 
    {% include "forms/widget_basic.html" %}
 
  {% endif %}
 
</div>
pinaxcon/templates/forms/widget_basic.html
Show inline comments
 
<h4>
 
  <label for="{{ field.id_for_label }}">{{ field.label }}</label>
 
  {% if field.field.required %}
 
    (*)
 
  {% endif %}
 
</h4>
 
<label for="{{ field.id_for_label }}" class="col-sm-2 control-label">{{ field.label }}{% if field.field.required %} *{% endif %}</label>
 
{{ field.errors }}
 
<div class="form-field {{ widget_class }}">{{ field }}</div>
 
<div class="col-sm-10">
 
  {{ field }}
 
  {% if field.help_text %}
 
    <span class="help_text">{{ field.help_text|safe }}</span>
 
  {% endif %}
 
</div>
pinaxcon/templates/forms/widget_boolean_multiple.html
Show inline comments
 
<h4>
 
  {{ field.label }}
 
  {% if field.field.required %}
 
    (*)
 
  {% endif %}
 
</h4>
 
<ul class="form-field boolean-group">
 
  {% for item in field %}
 
    {% if True or widget == "CheckboxSelectMultiple" %}
 
      <li>
 
    {% else %}
 
      <!-- This is broken for everything. Going to need to look at Django. -->
 
      <li class="boolean-group--row">
 
    {% endif %}
 
      {{ item }}
 
      <label for="{{ item.id_for_label }}"><strong>{{ item.label }}</strong></label>
 
    </li>
 
  {% endfor %}
 
</ul>
 
{{ field.errors }}
 
<h3>
 
  {{ field.label }}{% if field.field.required %} *{% endif %}
 
  {{ field.errors }}
 
</h3>
 
{% if field.help_text %}
 
  <span class="help_text">{{ field.help_text|safe }}</span>
 
{% endif %}
 

	
 
{% for item in field %}
 
  <div class="col-sm-offset-2 col-sm-10">
 
    {{ item }}
 
  </div>
 
{% endfor%}
pinaxcon/templates/forms/widget_boolean_single.html
Show inline comments
 
<ul class="form-field boolean-group">
 
  <li class="boolean-group--row">
 
<h3>
 
  {{ field.label }}{% if field.field.required %} *{% endif %}
 
  {{ field.errors }}
 
</h3>
 
<div class="col-sm-offset-2 col-sm-10">
 
  <label class="form-check-label" for="id_profile-past_lca_0">
 
    {{ field }}
 
    <label for="{{ field.id_for_label }}">
 
      <strong>{{ field.label }}</strong>
 
      {% if field.field.required %}
 
        (*)
 
      {% endif %}
 
    </label>
 
  </li>
 
</ul>
 
{{ field.errors }}
 
    <p>Sign me up</p>
 
    {% if field.help_text %}
 
      <span class="help_text">{{ field.help_text|safe }}</span>
 
    {% endif %}
 
  </label>
 
</div>
pinaxcon/templates/registrasion/amend_registration.html
Show inline comments
...
 
@@ -22,13 +22,13 @@
 
{% include "registrasion/_items_list.html" with items=cancelled %}
 

	
 
<br />
 

	
 
<h3>Amend pending items</h3>
 

	
 
<form method="POST">
 
<form class="form-horizontal" method="POST">
 
  {% csrf_token %}
 
  {% include "_form_snippet.html" with form=form %}
 
  <br/>
 
  <input class="btn" type="submit">
 
</form>
 

	
...
 
@@ -41,13 +41,13 @@
 
</div>
 

	
 
<br />
 

	
 
<h3>Apply voucher</h3>
 

	
 
<form method="POST">
 
<form class="form-horizontal" method="POST">
 
  {% csrf_token %}
 
  {% include "_form_snippet.html" with form=voucher_form %}
 
  <br/>
 
  <input class="btn" type="submit">
 
</form>
 

	
pinaxcon/templates/registrasion/credit_note.html
Show inline comments
...
 
@@ -15,13 +15,13 @@
 
  </ul>
 
{% endwith %}
 

	
 
<p>This credit note was generated from funds excess from invoice {{ credit_note.invoice.id }}.</p>
 

	
 
{% if credit_note.is_unclaimed %}
 
  <form method="post" action="">
 
  <form class="form-horizontal" method="post" action="">
 
    {% csrf_token %}
 
    <h3>Apply to invoice</h3>
 
    <p>You can apply this credit note to an unpaid invoice.</p>
 

	
 
    <p><strong>This credit note belongs to:</strong> {{ credit_note.invoice.user.email }} ({{ credit_note.invoice.user.id}}). You can apply this credit note to any user's invoice.</p>
 

	
pinaxcon/templates/registrasion/guided_registration.html
Show inline comments
...
 
@@ -10,13 +10,13 @@
 
    {{ section.form.media.js }}
 
  {% endfor %}
 
{% endblock %}
 

	
 
{% block content %}
 

	
 
  <form method="post" action="">
 
  <form class="form-horizontal" method="post" action="">
 
    {% csrf_token %}
 

	
 
    {% for section in sections %}
 
      <h2>{{ section.title }}</h2>
 

	
 
      {% if section.description %}
pinaxcon/templates/registrasion/manual_payment.html
Show inline comments
...
 
@@ -11,13 +11,13 @@
 

	
 
  <h2>Apply manual payment</h2>
 

	
 
  <p>Enter a reference and the amount of the payment. A refund is a negative
 
  payment.</p>
 

	
 
  <form method="post" action="">
 
  <form class="form-horizontal" method="post" action="">
 
    {% csrf_token %}
 

	
 
    <table>
 
        {{ form|bootstrap }}
 
    </table>
 

	
pinaxcon/templates/registrasion/nag_unpaid.html
Show inline comments
...
 
@@ -3,13 +3,13 @@
 
{% load registrasion_tags %}
 

	
 
{% block body %}
 

	
 
<h2>Send reminder e-mails</h2>
 

	
 
<form method="POST">
 
<form class="form-horizontal" method="POST">
 
  {% csrf_token %}
 
  {{ form | bootstrap}}
 
  <br/>
 
  <input type="submit">
 
</form>
 

	
pinaxcon/templates/registrasion/product_category.html
Show inline comments
...
 
@@ -21,13 +21,13 @@
 
{% endblock %}
 

	
 
{% block content %}
 

	
 
  <button id="voucher-form-button" class="btn" onclick="showVoucherForm()">Enter voucher code</button>
 

	
 
  <form method="post" action="">
 
  <form class="form-horizontal" method="post" action="">
 
    {% csrf_token %}
 

	
 
    <fieldset id="voucher-form" style="display: none;">
 
      {% include "_form_snippet.html" with form=voucher_form %}
 
      <div class="btn-group" />
 
        <input class="btn btn-primary" type="submit" value="Add voucher" />
pinaxcon/templates/registrasion/profile_form.html
Show inline comments
 
{% extends "registrasion/base.html" %}
 
{% load bootstrap %}
 
{% load pyconau2017_tags %}
 

	
 
{% block header_title %}Your profile{% endblock %}
 
{% block header_inset_image %}{% illustration "antarctica.svg" %}{% endblock %}
 
{% block header_paragraph %}
 
  These details will appear on your badge, your invoices, and will be used
 
  to order catered food at the conference.
 
{% endblock %}
 

	
 
{% block scripts_extra %}
 
  {{ form.media.js }}
 
    <script type="text/javascript">
 
  <script type="text/javascript">
 
  </script>
 
{% endblock %}
 

	
 
{% block content %}
 

	
 
  <form method="post" action="">
 
  <form class="form-horizontal" method="post" action="">
 
    {% csrf_token %}
 

	
 
    <fieldset>
 
        {% include "_form_snippet.html" with form=form %}
 
        <br />
 
        <div class="btn-group">
 
          <input class="btn" type="submit" value="Save Profile" />
 
          <a class="btn btn-primary" href="{% url "dashboard" %}">Return to dashboard</a>
 
        </div>
 
      {% include "_form_snippet.html" with form=form %}
 
      <br />
 
      <div class="btn-group">
 
        <input class="btn" type="submit" value="Save Profile" />
 
        <a class="btn btn-primary" href="{% url "dashboard" %}">Return to dashboard</a>
 
      </div>
 
    </fieldset>
 

	
 
  </form>
 
{% endblock %}
pinaxcon/templates/registrasion/report.html
Show inline comments
...
 
@@ -6,13 +6,13 @@
 

	
 
  <h2>{{ title }}</h2>
 

	
 
  <p><a href="{% url 'reports_list' %}">Return to reports list</a></p>
 

	
 
  {% if form %}
 
    <form method="GET">
 
    <form class="form-horizontal" method="GET">
 
      {{ form | bootstrap}}
 
      <br/>
 
      <input class="btn btn-primary" type="submit">
 
    </form>
 
  {% endif %}
 
<hr />
pinaxcon/templates/registrasion/stripe/credit_card_payment.html
Show inline comments
...
 
@@ -81,13 +81,13 @@
 
  <p>You have ${{ invoice.balance_due }} remaining to pay on this invoice.</p>
 

	
 
  <p></p>
 

	
 
  <h3>Card details</h3>
 

	
 
  <form id="payment-form" method="post">
 
  <form class="form-horizontal" id="payment-form" method="post">
 
    <fieldset>
 

	
 
      <div class="has-errors" id="payment-errors-outer" style="display: none;">
 
        <span class="errorlist" id="payment-errors"></span>
 
      </div>
 

	
pinaxcon/templates/registrasion/stripe/refund.html
Show inline comments
...
 
@@ -11,12 +11,12 @@
 
  <h3>Available refunds</h3>
 

	
 
  <p>Currently credit notes can only be cashed out in full in a single
 
    transaction. If you need to cash out to multiple small payments, you will
 
    need to manually invoke the refunds from the Stripe Dashboard.</p>
 

	
 
  <form method="post">
 
  <form class="form-horizontal" method="post">
 
    {% csrf_token %}
 
    {{form|bootstrap}}
 
    <input id="submit" class="btn btn-primary" type="submit" value="Refund {{ credit_note.value }} to payment source" />
 
  </form>
 
{% endblock %}
pinaxcon/templates/site_base.html
Show inline comments
 
modified file chmod 100755 => 100644
 
<!-- site_base.html -->
 
{% load staticfiles %}
 
{% load metron_tags %}
 
{% load i18n %}
 
{% load sitetree %}
 
{% load staticfiles %}
 

	
 
<!DOCTYPE html>
 
<html lang="en" class="no-js" manifest="{% static 'manifest.appcache' %}">
 
  <head>
 
    <meta charset="utf-8">
 
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
 
    <meta name="description" content="">
 
    <meta name="viewport" content="width=device-width, initial-scale=1">
 

	
 
    <title>{% block head_title_base %}{% if SITE_NAME %}{{ SITE_NAME }} | {% endif %}{% block head_title %}{% endblock %}{% endblock %}</title>
 

	
 
    {% block styles %}
 
      <link href="{% static 'pyconau2017/css/bootstrap.css' %}" rel="stylesheet">
 
      <!--<link rel="stylesheet" href="{% static 'pyconau2017/css/app.css' %}">
 
      <link rel="stylesheet" href="{% static 'pyconau2017/css/print.css' %}" media="print">
 
      <link href="{% static 'pyconau2017/css/pyconau.css' %}" rel="stylesheet">-->
 

	
 
      <link rel="icon" href="{% static 'pyconau2017/images/favicon.png' %}">
 
    {% block extra_style %}{% endblock %}
 
    {% endblock %}
 

	
 
    {% block extra_head_base %}
 
        {% block extra_head %}{% endblock %}
 
      {% block extra_head %}{% endblock %}
 
    {% endblock %}
 
  </head>
 
  <body class="{% block body_class %}{% endblock %}">
 
    <div class="container">
 
      {% sitetree_menu from "main" include "trunk" template "sitetree_header.html" %}
 

	
 

	
 
    <!-- site_base block body_base -->
 
    {% block body_base %}
 
      <!--div style="height: 100px;" /-->
 
        <!--main role="main"-->
 
        <!-- site_base block body -->
 
      <div class="well">
 
        <h1>{% block header_title %}{% endblock %}</h1>
 
        <p>{% block header_paragraph %}{% endblock %}</p>
 
      </div>
 
      {% block body_base %}
 
        {% block body %}
 
          <div class="container">
 
              <div class="row">
 
                  <div class="col-md-1">
 
                    {% block body_outer %}
 
                    {% endblock %}
 
                  </div>
 
                  <div class="col-md-10" >
 
                    {% block content %}
 
                    {% endblock %}
 
                  </div>
 
            <div class="row">
 
              <div class="col-md-1">
 
                {% block body_outer %}
 
                {% endblock %}
 
                </div>
 
                <div class="col-md-10" >
 
                  {% block content %}
 
                  {% endblock %}
 
                </div>
 
              </div>
 
          </div>
 
            </div>
 
          {% endblock %}
 
        {% endblock %}
 
        <!-- site_base endblock body -->
 
        <!--/main-->
 
      <!--/div-->
 
    {% endblock %}
 
    <!-- site_base endblock body_base -->
 

	
 
    {% block footer_base %}
 
      <!-- footer class="l-footer l-footer__alt" -->
 
        {% block footer %}
 
        {% block footer_base %}
 
          {% block footer %}
 
          {% endblock %}
 
        {% endblock %}
 
      <!-- /footer -->
 
    {% endblock %}
 

	
 
    {% block scripts %}
 
      <script src="{% static 'pyconau2017/js/app.js' %}" type="text/javascript"></script>
 
      <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
 
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
 
      <script src="{% static 'pyconau2017/js/bootstrap.js' %}" type="text/javascript"></script>
 
      <script src="{% static 'pyconau2017/js/load_editors.js' %}" type="text/javascript"></script>
 
      <script src="//cdnjs.cloudflare.com/ajax/libs/ace/1.2.3/ace.js"></script>
 
      <script src="{{ STATIC_URL }}js/jquery.formset.js"></script>
 
      {% block scripts_extra %}{% endblock %}
 
    {% endblock %}
 
        {% block scripts %}
 
          <script src="{% static 'pyconau2017/js/app.js' %}" type="text/javascript"></script>
 
          <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
 
          <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
 
          <script src="{% static 'pyconau2017/js/bootstrap.js' %}" type="text/javascript"></script>
 
          <script src="{% static 'pyconau2017/js/load_editors.js' %}" type="text/javascript"></script>
 
          <script src="//cdnjs.cloudflare.com/ajax/libs/ace/1.2.3/ace.js"></script>
 
          <script src="{{ STATIC_URL }}js/jquery.formset.js"></script>
 
        {% block scripts_extra %}{% endblock %}
 
      {% endblock %}
 

	
 
    {% block extra_body_base %}
 
      {% block extra_body %}
 
      {% block extra_body_base %}
 
        {% block extra_body %}
 
        {% endblock %}
 
      {% endblock %}
 
    {% endblock %}
 
    </div>
 
  </body>
 
</html>
 
<!-- end site_base.html -->
pinaxcon/templates/symposion/proposals/_pending_proposal_row.html
Show inline comments
 
{% load i18n %}
 

	
 
<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-danger">{% trans 'Cancelled' %}</span>
 
        {% else %}
 
<div class="col-xs-12 col-sm-6 col-lg-6">
 
  <div class="panel panel-warning"> <!-- Todo Make the colour relate to status of acceptance -->
 
    <div class="panel-heading">
 
      <h5>{{ proposal.title }}</h5>
 
    </div>
 
    <div class="panel-body">
 
      <ul>
 
        <li><strong>Type:</strong> {{ proposal.kind.name }}</li>
 
        <li>
 
          <strong>Status:</strong>
 
          {% if proposal.cancelled %}
 
            <span class="label label-danger">Cancelled</span>
 
          {% else %}
 
            {% if request.user == proposal.speaker.user %}
 
                {% if proposal.result.status == "accepted" %}
 
                    <span class="label label-success">{% trans 'Accepted' %}</span>
 
                {% else %}
 
                    <span class="label label-default">{% trans 'Submitted' %}</span>
 
                {% endif %}
 
              {% if proposal.result.status == "accepted" %}
 
                <span class="label label-success">Accepted</span>
 
              {% else %}
 
                <span class="label label-default">Submitted</span>
 
              {% endif %}
 
            {% else %}
 
                <span class="label label-default">{% trans 'Invited' %}</span>
 
              <span class="label label-default">Invited</span>
 
            {% endif %}
 
          {% endif %}
 
        </li>
 
      </ul>
 
      <div>
 
        <a class="btn btn-lg btn-primary" role="button" href="{% url "proposal_detail" proposal.pk %}">View Details</a>
 
        {% if not proposal.cancelled %}
 
          <a class="btn btn-lg btn-success" role="button" href="{% url "proposal_pending_join" proposal.id %}">Accept Copresenter Invitation</a>
 
          <a class="btn btn-lg btn-danger" role="button" href="{% url "proposal_pending_decline" proposal.id %}">Decline Copresenter Invitation</a>
 
        {% endif %}
 
    </td>
 

	
 
    <td>
 
      {% if not proposal.cancelled %}
 
        <ul>
 
          <li><a href="{% url "proposal_pending_join" proposal.id %}">
 
{% trans 'Accept invitation' %}</a></li>
 
          <li><a href="{% url "proposal_pending_decline" proposal.id
 
%}">{% trans 'Decline invitation' %}</a></li>
 
        </ul>
 
      {% endif %}
 
    </td>
 
</tr>
 
      </div>
 
    </div>
 
  </div>
 
</div>
pinaxcon/templates/symposion/proposals/_proposal_fields.html
Show inline comments
...
 
@@ -93,13 +93,13 @@
 
        {% 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 %}">
 
                        <form class="form-horizontal" style="margin: 0;" method="post" action="{% url "proposal_document_delete" document.pk %}">
 
                            {% csrf_token %}
 
                            <button type="submit" class="btn btn-xs">delete</button>
 
                        </form>
 
                    </td>
 
                    </tr>
 
                {% endfor %}
pinaxcon/templates/symposion/proposals/_proposal_row.html
Show inline comments
 
    <h4>
 
      {{ proposal.title }}
 
    </h4>
 

	
 
    <ul>
 
      <li><strong>Type:</strong> {{ proposal.kind.name }}</li>
 
      <li>
 
        <strong>Status:</strong>
 
        {% if proposal.cancelled %}
 
<div class="col-xs-12 col-sm-6 col-lg-6">
 
  <div class="panel panel-primary"> <!-- Todo Make the colour relate to status of acceptance -->
 
    <div class="panel-heading">
 
      <h5>{{ proposal.title }}</h5>
 
    </div>
 
    <div class="panel-body">
 
      <ul>
 
        <li><strong>Type:</strong> {{ proposal.kind.name }}</li>
 
        <li>
 
          <strong>Status:</strong>
 
          {% if proposal.cancelled %}
 
            <span class="label label-danger">Cancelled</span>
 
        {% else %}
 
          {% else %}
 
            {% if request.user == proposal.speaker.user %}
 
                {% if proposal.result.status == "accepted" %}
 
                    <span class="label label-success">Accepted</span>
 
                {% else %}
 
                    <span class="label label-default">Submitted</span>
 
                {% endif %}
 
              {% if proposal.result.status == "accepted" %}
 
                <span class="label label-success">Accepted</span>
 
              {% else %}
 
                <span class="label label-default">Submitted</span>
 
              {% endif %}
 
            {% else %}
 
                <span class="label label-default">Associated</span>
 
              <span class="label label-default">Associated</span>
 
            {% endif %}
 
          {% endif %}
 
        </li>
 
      </ul>
 
      <div>
 
        <a class="btn btn-lg btn-success" role="button" href="{% url "proposal_detail" proposal.pk %}">View Details</a>
 
        {% if not proposal.cancelled %}
 
          {% if request.user == proposal.speaker.user and proposal.can_edit %}
 
            <a class="btn btn-lg btn-success" role="button" href="{% url "proposal_edit" proposal.pk %}">Edit</a>
 
            <a class="btn btn-lg btn-success" role="button" href="{% url "proposal_speaker_manage" proposal.id %}">Manage Additional Speakers</a>
 
          {% endif %}
 
        {% endif %}
 
      </li>
 
  </ul>
 

	
 
  <div class="btn-group">
 
    <a href="{% url "proposal_detail" proposal.pk %}" class="btn btn__compact">View details</a>
 
    {% if not proposal.cancelled %}
 
      {% if request.user == proposal.speaker.user and proposal.can_edit %}
 
        <a href="{% url "proposal_edit" proposal.pk %}" class="btn btn__compact">Edit</a>
 
        <a href="{% url "proposal_speaker_manage" proposal.id %}" class="btn btn__compact">Manage Additional Speakers</a>
 
      {% endif %}
 
  {% endif %}
 
      </div>
 
    </div>
 
  </div>
 

	
 
  <br/>
 
</div>
pinaxcon/templates/symposion/proposals/document_create.html
Show inline comments
...
 
@@ -2,13 +2,13 @@
 

	
 
{% load bootstrap %}
 

	
 
{% block page_title %}Upload Document to '{{ proposal.title }}'{% endblock %}
 

	
 
{% block proposals_body %}
 
    <form method="POST" action="" enctype="multipart/form-data" class="form form-horizontal">
 
    <form class="form-horizontal" method="POST" action="" enctype="multipart/form-data" class="form form-horizontal">
 
        {% csrf_token %}
 
        <fieldset>
 
          {% include "_form_snippet.html" with form=form %}
 
          <div class="btn-group">
 
              <input class="btn btn-primary" type="submit" value="Upload" />
 
          </div>
pinaxcon/templates/symposion/proposals/proposal_cancel.html
Show inline comments
...
 
@@ -3,13 +3,13 @@
 
{% load i18n %}
 

	
 
{% block head_title %}{% trans 'Cancel Proposal' %}{% endblock %}
 
{% block page_title %}Cancel: {{ proposal.title }}{% endblock %}
 

	
 
{% block proposals_body %}
 
    <form method="POST" action="" enctype="multipart/form-data">
 
    <form class="form-horizontal" 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 btn-default" href="{% url "proposal_detail" proposal.pk %}">{% trans 'No, keep it for now' %}</a>
 
    </form>
 
{% endblock %}
pinaxcon/templates/symposion/proposals/proposal_detail.html
Show inline comments
...
 
@@ -42,13 +42,13 @@
 
          {% 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 %}">
 
                          <form class="form-horizontal" style="margin: 0;" method="post" action="{% url "proposal_document_delete" document.pk %}">
 
                              {% csrf_token %}
 
                              <button type="submit" class="btn btn-xs">{% trans 'delete' %}</button>
 
                          </form>
 
                      </td>
 
                      </tr>
 
                  {% endfor %}
...
 
@@ -70,13 +70,13 @@
 
          {% endfor %}
 

	
 
          <h3>{% trans 'Leave a Message' %}</h3>
 

	
 
          <p>{% trans 'You can leave a message for the reviewers here.' %}</p>
 

	
 
          <form action="" method="POST" accept-charset="utf-8">
 
          <form class="form-horizontal" action="" method="POST" accept-charset="utf-8">
 
              {% csrf_token %}
 
              <fieldset>
 
                {% include "_form_snippet.html" with form=message_form %}
 
                <div class="btn-group">
 
                    <button type="submit" name="message_submit" class="btn btn-primary">{% trans 'Submit' %}</button>
 
                </div>
pinaxcon/templates/symposion/proposals/proposal_edit.html
Show inline comments
...
 
@@ -5,13 +5,13 @@
 
{% block head_title %}Editing {{ proposal.title }}{% endblock %}
 
{% block page_title %}Editing: {{ proposal.title }}{% endblock %}
 

	
 
{% block proposals_body %}
 
  <p><a href="{% url "proposal_speaker_manage" proposal.pk %}">Manage speakers</a></p>
 

	
 
  <form method="POST" action="" enctype="multipart/form-data">
 
  <form class="form-horizontal" method="POST" action="" enctype="multipart/form-data">
 
      {% csrf_token %}
 
      <fieldset>
 
        {% include "_form_snippet.html" with form=form %}
 
        <div class="btn-group">
 
            <input class="btn btn-primary" type="submit" value="Save" />
 
            <a class="btn btn-default" href="{% url "proposal_detail" proposal.pk %}">Cancel</a>
pinaxcon/templates/symposion/proposals/proposal_leave.html
Show inline comments
 
{% extends "symposion/proposals/base.html" %}
 

	
 
{% block page_title %}Leaving {{ proposal.title }}{% endblock %}
 
{% block head_title %}Leaving {{ proposal.title }}{% endblock %}
 

	
 
{% block body %}
 
    <form method="POST" action="" enctype="multipart/form-data">
 
    <form class="form-horizontal" method="POST" action="" enctype="multipart/form-data">
 
        {% csrf_token %}
 
        <p>Are you sure you wish to leave as a speaker on <b>{{ proposal.title }}</b>?</p>
 
        <input type="submit" class="btn btn-primary" value="I am sure" />
 
    </form>
 
{% endblock %}
pinaxcon/templates/symposion/proposals/proposal_speaker_manage.html
Show inline comments
...
 
@@ -23,13 +23,13 @@
 
            <p>{{ speaker.email }} &mdash; {% trans 'pending invitation' %}</p>
 
        {% endif %}
 
    {% endfor %}
 

	
 
    <h3>{% trans 'Add another speaker' %}</h3>
 

	
 
    <form method="POST" action="" enctype="multipart/form-data">
 
    <form class="form-horizontal" method="POST" action="" enctype="multipart/form-data">
 
        {% csrf_token %}
 
        <fieldset>
 
          {% include "_form_snippet.html" with form=add_speaker_form %}
 
          <div class="btn-group">
 
              <input type="submit" value="Add speaker" class="btn btn-primary" />
 
          </div>
pinaxcon/templates/symposion/proposals/proposal_submit.html
Show inline comments
 
{% extends "symposion/proposals/base.html" %}
 

	
 
{% load i18n %}
 

	
 
{% block head_title %}{% trans "Submit A Proposal" %}{% endblock %}
 
{% block header_title %}Submit A Proposal{% endblock %}
 

	
 
{% block proposals_body %}
 

	
 
    {% if kinds %}
 
        <p>Select what kind of proposal you'd like to submit:</p>
 
        <h1>Select what kind of proposal you'd like to submit:</h1>
 

	
 
        {% for kind in kinds %}
 
            <a href="{% url "proposal_submit_kind" kind.slug %}" class="btn btn-default">{{ kind }}</a>
 
            <a class="btn btn-lg btn-primary" role="button" href="{% url "proposal_submit_kind" kind.slug %}">{{ kind }}</a>
 
        {% endfor %}
 
    {% else %}
 
        <p>Proposals are not currently open for submission.</p>
 
        <h1>Proposals are not currently open for submission.</h1>
 
    {% endif %}
 
{% endblock %}
pinaxcon/templates/symposion/proposals/proposal_submit_kind.html
Show inline comments
 
{% extends "symposion/proposals/base.html" %}
 

	
 
{% load i18n %}
 

	
 
{% block page_title %}Submit a Proposal for a {{ kind.name }}{% endblock %}
 
{% block header_title %}Submit a Proposal for a {{ kind.name }}{% endblock %}
 
{% block head_title %}Submit a Proposal for a {{ kind.name }}{% endblock %}
 

	
 
{% block proposals_body %}
 
    <form method="POST" action="" enctype="multipart/form-data">
 
    <form class="form-horizontal" method="POST" action="" enctype="multipart/form-data">
 
        {% csrf_token %}
 
        <fieldset>
 
          {% include "_form_snippet.html" with form=proposal_form %}
 
          <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>
pinaxcon/templates/symposion/reviews/result_notification.html
Show inline comments
...
 
@@ -21,13 +21,13 @@
 
        <li{% if status == 'rejected' %} class="active"{% endif %}><a href="{% url "result_notification" section_slug 'rejected' %}">rejected</a>
 
        <li{% if status == 'standby' %} class="active"{% endif %}><a href="{% url "result_notification" section_slug 'standby' %}">standby</a>
 
    </ul>
 

	
 
    <h1>Result Notification</h1>
 

	
 
    <form method="post" action="{% url "result_notification_prepare" section_slug status %}">
 
    <form class="form-horizontal" method="post" action="{% url "result_notification_prepare" section_slug status %}">
 

	
 
        {% csrf_token %}
 

	
 
        <p>
 
            Select one or more proposals (<span class="action-counter">0</span> currently selected)
 
            <br/>
pinaxcon/templates/symposion/reviews/result_notification_prepare.html
Show inline comments
...
 
@@ -20,13 +20,13 @@
 
                {% endfor %}
 
            </table>
 
        </div>
 
        <div class="col-md-6">
 
            <h2>Email</h2>
 

	
 
            <form method="post" action="{% url "result_notification_send" section_slug status %}">
 
            <form class="form-horizontal" method="post" action="{% url "result_notification_send" section_slug status %}">
 

	
 
                {% csrf_token %}
 

	
 
                <label>From Address</label>
 
                <input type="text" name="from_address" class="span5" value="{{ notification_template.from_address }}" />
 
                <br/>
pinaxcon/templates/symposion/reviews/review_assignment.html
Show inline comments
...
 
@@ -15,13 +15,13 @@
 
                    <td>
 
                        <a href="{% url review_detail assignment.proposal.pk %}">
 
                            {{ assignment.proposal.title }}
 
                        </a>
 
                    </td>
 
                    <td>
 
                        <form method="post" action="{% url "review_assignment_opt_out" assignment.pk %}">
 
                        <form class="form-horizontal" method="post" action="{% url "review_assignment_opt_out" assignment.pk %}">
 
                            {% csrf_token %}
 
                            <input type="submit" value="Opt-out" />
 
                        </form>
 
                    </td>
 
                </tr>
 
            {% endfor %}
pinaxcon/templates/symposion/reviews/review_bulk_accept.html
Show inline comments
...
 
@@ -2,13 +2,13 @@
 

	
 
{% load bootstrap %}
 

	
 
{% block body %}
 

	
 
    <h1>Bulk Accept</h1>
 
    <form action="" method="POST" class="uniForm" accept-charset="utf-8">
 
    <form class="form-horizontal" action="" method="POST" class="uniForm" accept-charset="utf-8">
 
        {% csrf_token %}
 
        {{ form|bootstrap }}
 
        <div class="form-actions">
 
            <input class="btn btn-primary" type="submit" name="submit" value="submit" />
 
        </div>
 
    </form>
pinaxcon/templates/symposion/reviews/review_detail.html
Show inline comments
...
 
@@ -11,13 +11,13 @@
 
            {% trans "Jump to a random unreviewed proposal" %}
 
        </a>
 
    </div>
 

	
 
    {% if is_manager %}
 
        <div class="pull-right">
 
            <form class="result-form form-inline" method="POST" action="">
 
            <form class="result-form form-inline form-horizontal" method="POST" action="">
 
                {% csrf_token %}
 
                <div class="btn-group">
 
                    {% if proposal.result.status == "accepted" %}
 
                        <a class="btn dropdown-toggle btn-success" data-toggle="dropdown" href="#">Accepted <span class="caret"></span></a>
 
                        <div class="dropdown-menu pull-right" style="width: 200px; padding-left: 10px;">
 
                            <div class="btn-group">
...
 
@@ -98,13 +98,13 @@
 
                    </tbody>
 
                </table>
 

	
 
                <hr />
 

	
 
                {% if review_form %}
 
                    <form method="POST" action="#proposal-reviews" class="review-form">
 
                    <form method="POST" action="#proposal-reviews" class="review-form form-horizontal">
 
                        <legend>{% trans "Submit Review" %}</legend>
 
                        <p>Enter your vote and any comment to go along with it. You can revise your vote or comment multiple times with an existing vote (your previously recorded score will be replaced during calculations). <b>Your vote and comments are not public and will only be viewable by other reviewers.</b></p>
 
                        {% csrf_token %}
 
                            {{ review_form|bootstrap }}
 
                            <div class="form-action">
 
                              <input type="submit" class="btn btn-primary" name="vote_submit" value="Submit Review" />
...
 
@@ -121,13 +121,13 @@
 
                        <div class="review-box">
 
                            <div class="vote pull-left">
 
                                <span>{{ review.vote }}</span>
 
                            </div>
 
                            {% if is_manager %}
 
                                <div class="pull-right">
 
                                    <form class="form-inline" action="{% url "review_delete" review.id %}" method="POST">
 
                                    <form class="form-inline form-horizontal" action="{% url "review_delete" review.id %}" method="POST">
 
                                        {% csrf_token %}
 
                                        <button class="btn btn-xs btn-danger" type="submit">Delete</button>
 
                                    </form>
 
                                </div>
 
                            {% endif %}
 
                            <div class="review-content">
...
 
@@ -159,13 +159,13 @@
 
                        </div>
 
                    {% endfor %}
 
                    <hr />
 
                {% endif %}
 

	
 
		{% if is_manager %}
 
                <form action="" method="POST"accept-charset="utf-8">
 
                <form class="form-horizontal" action="" method="POST"accept-charset="utf-8">
 
                    <legend>{% trans "Send a message" %}</legend>
 
                    <p>
 
                        {% blocktrans %}
 
                            If you'd like to communicate with the submitter, use the following form and he or she will be
 
                            notified and given the opportunity to respond.
 
                        {% endblocktrans %}
pinaxcon/templates/symposion/reviews/review_review.html
Show inline comments
...
 
@@ -56,25 +56,25 @@
 
            {{ proposal.additional_notes }}
 
        </div>
 
    </div>
 

	
 
    <h2>Review</h2>
 

	
 
    <form method="POST" action="{% url "review_review" proposal.pk %}" class="form">
 
    <form method="POST" action="{% url "review_review" proposal.pk %}" class="form form-horizontal">
 
        {% csrf_token %}
 
        <fieldset class="inlineLabels">
 
            {{ review_form|bootstrap }}
 
            <div class="form_block">
 
                <input type="submit" value="Submit" />
 
            </div>
 
        </fieldset>
 
    </form>
 

	
 
    <h2>Comment</h2>
 

	
 
    <form method="POST" action="{% url "review_comment" proposal.pk %}" class="form">
 
    <form method="POST" action="{% url "review_comment" proposal.pk %}" class="form form-horizontal">
 
        {% csrf_token %}
 
        <fieldset>
 
            {{ comment_form|bootstrap }}
 
            <div class="form_block">
 
                <input type="submit" value="Submit" />
 
            </div>
pinaxcon/templates/symposion/schedule/_slot_edit.html
Show inline comments
 
{% load i18n bootstrap %}
 
<form id="slotEditForm" class="modal-form" method="POST" action="{% url "schedule_slot_edit" slug slot.pk %}">
 
<form class="form-horizontal" id="slotEditForm" class="modal-form" method="POST" action="{% url "schedule_slot_edit" slug slot.pk %}">
 
    <div class="modal-header">
 
        <a class="close" data-dismiss="modal">&times;</a>
 
        <h3>{% trans "Edit Slot" %}</h3>
 
    </div>
 
    <div class="modal-body" style="height:350px">
 
        {% csrf_token %}
pinaxcon/templates/symposion/schedule/schedule_edit.html
Show inline comments
...
 
@@ -21,13 +21,13 @@
 
    <h1>Schedule Edit</h1>
 

	
 
    {% for timetable in days %}
 
        <h2>{{ timetable.day.date }}</h2>
 
        {% include "symposion/schedule/_edit_grid.html" %}
 
    {% endfor %}
 
    <form id="schedule-builder" action="." method="post" enctype="multipart/form-data">{% csrf_token %}
 
    <form class="form-horizontal" id="schedule-builder" action="." method="post" enctype="multipart/form-data">{% csrf_token %}
 
        {{ form.as_p }}
 
        <input type="submit" name="submit" value="Submit" />
 
        <input type="submit" id="delete" name="delete" value="Delete Schedule" />
 
    </form>
 
    <div class="modal fade in" style="background-color:#fff;" id="slotEditModal"></div>
 
</div></div></div>
pinaxcon/templates/symposion/speakers/speaker_create.html
Show inline comments
...
 
@@ -4,13 +4,13 @@
 
{% load i18n %}
 

	
 
{% block head_title %}{% trans "Create Speaker Profile" %}{% endblock %}
 
{% block page_title %}{% trans "Create Speaker Profile" %}{% endblock %}
 

	
 
{% block proposals_body %}
 
    <form method="POST" action="" enctype="multipart/form-data">
 
    <form class="form-horizontal" method="POST" action="" enctype="multipart/form-data">
 
        {% csrf_token %}
 
        <fieldset>
 
          {% include "_form_snippet.html" with form=speaker_form %}
 
          <div class="btn-group">
 
              <input class="btn btn-primary" type="submit" value="Save" />
 
              <a class="btn btn-default" href="{% url "dashboard" %}">Cancel</a>
pinaxcon/templates/symposion/speakers/speaker_edit.html
Show inline comments
...
 
@@ -4,13 +4,13 @@
 
{% load i18n %}
 

	
 
{% block head_title %}{% trans "Edit Speaker Profile" %}{% endblock %}
 
{% block page_title %}{% trans "Edit Speaker Profile" %}{% endblock %}
 

	
 
{% block proposals_body %}
 
    <form method="POST" action="" enctype="multipart/form-data">
 
    <form class="form-horizontal" method="POST" action="" enctype="multipart/form-data">
 
        {% csrf_token %}
 
        <fieldset>
 
          {% include "_form_snippet.html" with form=speaker_form %}
 
          <div class="btn-group">
 
              <input class="btn btn-primary" type="submit" value="Save" />
 
              <a class="btn btn-default" href="{% url "dashboard" %}">Cancel</a>
pinaxcon/templates/symposion/teams/team_detail.html
Show inline comments
...
 
@@ -4,27 +4,27 @@
 

	
 
{% block head_title %}{{ team.name }}{% endblock %}
 

	
 
{% block body_outer %}
 
    <div class="pull-right">
 
    {% if can_join %}
 
        <form method="post" action="{% url "team_join" team.slug %}">
 
        <form class="form-horizontal" 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 %}">
 
        <form class="form-horizontal" method="post" action="{% url "team_leave" team.slug %}">
 
            {% csrf_token %}
 
            <input type="submit" class="btn btn-default" value="leave">
 
        </form>
 
    {% endif %}
 

	
 
    {% if can_apply %}
 
        <form method="post" action="{% url "team_apply" team.slug %}">
 
        <form class="form-horizontal" method="post" action="{% url "team_apply" team.slug %}">
 
            {% csrf_token %}
 
            <input type="submit" class="btn btn-primary" value="apply">
 
        </form>
 
    {% endif %}
 
    </div>
 
    {% endblock %}
...
 
@@ -42,40 +42,40 @@
 
            <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-xs">demote</button></form>
 
                            <form class="form-horizontal" style="margin: 0;" method="post" action="{% url "team_demote" membership.pk %}">{% csrf_token %}<button type="submit" class="btn btn-xs">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-xs">promote</button></form>
 
                            <form class="form-horizontal" style="margin: 0;" method="post" action="{% url "team_promote" membership.pk %}">{% csrf_token %}<button type="submit" class="btn btn-xs">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-xs">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-xs">reject</button></form>
 
                            <form class="form-horizontal" style="margin: 0; float: left;" method="post" action="{% url "team_accept" membership.pk %}">{% csrf_token %}<button type="submit" class="btn btn-xs">accept</button></form>
 
                            <form class="form-horizontal" style="margin: 0; float: left;" method="post" action="{% url "team_reject" membership.pk %}">{% csrf_token %}<button type="submit" class="btn btn-xs">reject</button></form>
 
                        </td>
 
                    </tr>
 
                {% endfor %}
 
            </table>
 
        {% endif %}
 
        {% if team.invitees %}
static/src/pyconau2017/css/pyconau.css
Show inline comments
 
deleted file
0 comments (0 inline, 0 general)