Changeset - 08c8f23344a3
pinaxcon/templates/cms_pages/content_page.html
Show inline comments
 
{% extends "site_base.html" %}
 
{% extends "site_base_wagtail.html" %}
 
{% load staticfiles %}
 
{% load wagtailcore_tags %}
 

	
 
{% load sitetree %}
 
{% load i18n %}
 

	
 
{% block body_class %}template-blogpage{% endblock %}
 

	
 
{% block head_title %}{{ page.title }}{% endblock %}
 

	
 
{% block body %}
 
  {% block content %}
 
    {% include "cms_pages/content_page_header_panel.html" %}
 
    <div class="l-content-page">
 
      <div class="l-content-page--richtext">
 
        {{ page.body|richtext }}
 
      </div>
 
    </div>
 
  {% endblock %}
 
{% endblock %}
pinaxcon/templates/cms_pages/home_page.html
Show inline comments
 
{% extends "site_base.html" %}
 
{% extends "site_base_wagtail.html" %}
 

	
 
{% load i18n %}
 

	
 
{% load wagtailcore_tags %}
 

	
 
{% block head_title %}{% trans "Welcome" %}{% endblock %}
 

	
 
{% block body %}
 

	
 
{{ page.body }}
 

	
 
{% endblock %}
pinaxcon/templates/cms_pages/news_index_page.html
Show inline comments
 
{% extends "site_base.html" %}
 
{% extends "site_base_wagtail.html" %}
 

	
 
{% load staticfiles %}
 
{% load wagtailcore_tags %}
 
{% load wagtailimages_tags %}
 

	
 
{% load sitetree %}
 
{% load i18n %}
 

	
 
{% block body_class %}template-blogpage{% endblock %}
 

	
 
{% block head_title %}{{ page.title }}{% endblock %}
 

	
 
{% block body %}
 
  {% block content %}
 
    {% include "cms_pages/content_page_header_panel.html" %}
 

	
 
    {% if page.child_pages %}
 
      {% for item in page.child_pages %}
 
        <div class="panel panel__compact">
 
          <div class="panel--content">
 
            <div class="panel--1-3">
 
              <div class="portrait">
 
                {% image item.portrait_image width-640 as portrait_image %}
 
                <div style="background-image: url('{{ portrait_image.url }}');" class="portrait--img"></div>
 
              </div>
 
            </div>
 
            <div class="panel--2-3">
 
              <h2>{{ item.title }}</h2>
 
              <p class="lede"><em>{{ item.date|date:"j F Y" }}</em> – {{ item.intro }}</p>
 
              <a href="{{ item.url }}" class="btn">Read more</a>
 
            </div>
 
          </div>
 
        </div>
 
      {% endfor %}
 
      <div class="panel panel__compact"></div>
 
    {% endif %}
 

	
 
  {% endblock %}
 
{% endblock %}
pinaxcon/templates/cms_pages/news_page.html
Show inline comments
 
{% extends "site_base.html" %}
 
{% extends "site_base_wagtail.html" %}
 

	
 
{% load wagtailcore_tags %}
 
{% load wagtailimages_tags %}
 

	
 
{% load sitetree %}
 
{% load i18n %}
 

	
 
{% block body_class %}template-blogpage{% endblock %}
 

	
 
{% block head_title %}{{ page.title }}{% endblock %}
 

	
 
{% block body %}
 
  {% block content %}
 
    {% include "cms_pages/content_page_header_panel.html" %}
 
    <div class="l-content-page">
 
      <div class="l-content-page--richtext">
 
        <p><em>{{ page.date|date:"j F Y" }}</em></p>
 
        {{ page.body|richtext }}
 
      </div>
 
    </div>
 
  {% endblock %}
 
{% endblock %}
pinaxcon/templates/dashboard.html
Show inline comments
 
{% extends "site_base.html" %}
 

	
 
{% load staticfiles %}
 
{% load i18n %}
 
{% load proposal_tags %}
 
{% load review_tags %}
 
{% load teams_tags %}
 
{# {% load registrasion_tags %} #}
 

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

	
 
{% block extra_style %}
 
<link rel="stylesheet" href="{% static 'css/site-0a247b924d.css' %}">
 
<!-- Latest compiled and minified CSS -->
 
{% endblock %}
 

	
 
{% block body_class %}auth{% endblock %}
 

	
 
{% block body %}
 
    <div class="panel panel-default">
 
        <div class="panel-heading">
 
            <div class="pull-right">
 
                {% if not user.speaker_profile %}
 
                    <a href="{% url "speaker_create" %}" class="btn btn-xs btn-default">
 
                        <i class="fa fa-plus-sign"></i> Create a speaker profile
 
                    </a>
 
                {% else %}
 
                    <a href="{% url "speaker_edit" %}" class="btn btn-xs btn-default">
 
                        <i class="fa fa-pencil"></i> Edit your speaker profile
 
                    </a>
 
                    <a href="{% url "proposal_submit" %}" class="btn btn-xs btn-default">
 
                        <i class="fa fa-plus-sign"></i> Submit a new proposal
 
                    </a>
 
                {% endif %}
 
            </div>
 
            <h3 class="panel-title">
 
                <i class="fa fa-bullhorn"></i>
 
                {% trans "Speaking" %}
 
            </h3>
 
        </div>
 

	
 
        <div class="panel-body">
 
            {% if not user.speaker_profile %}
 
                <p>To submit a proposal, you must first <a href="{% url "speaker_create" %}">create a speaker profile</a>.</p>
 
            {% else %}
 
                <h4>Your Proposals</h4>
 
                {% if not user.speaker_profile.proposals.exists %}
 
                    <p>No proposals submitted yet.</p>
 
                {% endif %}
 
            {% endif %}
 
        </div>
 
        {% if user.speaker_profile.proposals.exists %}
 
            <table class="table">
 
                <tr>
 
                    <th>Title</th>
 
                    <th>Session type</th>
 
                    <th>Status</th>
 
                    <th>Actions</th>
 
                </tr>
 
                {% for proposal in user.speaker_profile.proposals.all %}
 
                    {% include "symposion/proposals/_proposal_row.html" %}
 
                {% endfor %}
 
            </table>
 
        {% endif %}
 

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

	
 
            {% pending_proposals as pending_proposals %}
 
            {% if pending_proposals %}
 
                <div class="panel-body"><h4>Proposals you have been invited to join</h4></div>
 
                <table class="table">
 
                    <tr>
 
                        <th>Title</th>
 
                        <th>Session 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>
 

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

	
 
    <div class="panel panel-default">
 
        <div class="panel-heading">
 
            <div class="pull-right header-actions">
 
                {% if not user.sponsorships.exists %}
 
                    <a href="{% url "sponsor_apply" %}" class="btn btn-xs btn-default">
 
                        <i class="fa fa-plus-sign"></i>
 
                        Apply to be a sponsor
 
                    </a>
 
                {% endif %}
 
            </div>
 
            <h3 class="panel-title">
 
                <i class="fa fa-briefcase"></i>
 
                {% trans "Sponsorship" %}
 
            </h3>
 
        </div>
 

	
 
        <div class="panel-body">
 
            {% if not user.sponsorships.exists %}
 
                <p>If you or your organization would be interested in sponsorship opportunities, <a href="{% url "sponsor_apply" %}">use our online form to apply to be a sponsor</a>.
 
            {% else %}
 
                <h4>Your Sponsorship</h4>
 
                <ul class="list-group">
 
                    {% for sponsorship in user.sponsorships.all %}
 
                        <li class="list-group-item">
 
                            <a href="{% url "sponsor_detail" sponsorship.pk %}"><b>{{ sponsorship.name }}</b></a>
 
                            ({{ sponsorship.level }})
 
                            {% if not sponsorship.active %}
 
                                <span class="label label-warning">awaiting approval</span>
 
                            {% endif %}
 
                        </li>
 
                    {% endfor %}
 
                </ul>
 
            {% endif %}
 
            {% if user.is_staff %}
 
                <p>
 
                    As staff, you can directly <a href="{% url "sponsor_add" %}">add a sponsor</a> if the organization isn't
 
                    applying themselves.
 
                </p>
 
            {% endif %}
 
        </div>
pinaxcon/templates/site_base.html
Show inline comments
 
{% load staticfiles %}
 
{% load metron_tags %}
 
{% load i18n %}
 
{% load sitetree %}
 
{# <!-- https://gist.github.com/geedmo/5682742--> #}
 
<!DOCTYPE html>
 
<html lang="en" class="no-js">
 
  <head>
 
    <meta charset="utf-8">
 
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
 
    <meta name="description" content="">
 
{% block viewport %}
 
{% block viewport %}    
 
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
 
{% endblock %}
 
    <title>{% block head_title_base %}{% if SITE_NAME %}{{ SITE_NAME }} | {% endif %}{% block head_title %}{% endblock %}{% endblock %}</title>
 
{% block styles %}
 
    <link rel="stylesheet" href="{% static 'lca2017/css/app.css' %}">
 
    <link rel="stylesheet" href="{% static 'lca2017/css/print.css' %}" media="print">
 
    <!--FIXME: download-->
 
    <link href="https://fonts.googleapis.com/css?family=Titillium+Web:700,900|Roboto:400italic,400,700,700italic" rel="stylesheet" type="text/css">
 
    <!--Meta tags-->
 
    <meta name="theme-color" content="#0c486c">
 
    {% block extra_style %}
 
    <link rel="stylesheet" href="{% static 'css/site-0a247b924d.css' %}">
 
    {% endblock %}
 
{% endblock %}
 
    <!--Twitter-->
 
    <meta name="twitter:card" content="summary">
 
    <meta name="twitter:site" content="@linuxconfau">
 
    <meta name="twitter:creator" content="@linuxconfau">
 
    <meta name="twitter:description" content="Linux Conf Hobart 16-20 January 2017">
 
    <meta name="twitter:image:src" content="TODO">
 
    <!--Open Graph-->
 
    <meta property="og:url" content="https://linux.conf.au/">
 
    <meta property="og:title" content="Linux.Conf.Au">
 
    <meta property="og:description" content="Linux Conf Hobart 16-20 January 2017">
 
    <meta property="og:type" content="website">
 
    <meta property="fb:admins" content="TODO">
 
    <meta property="fb:profile_id" content="TODO">
 
        {% block extra_head_base %}
 
            {% block extra_head %}{% endblock %}
 
        {% endblock %}
 
  </head>
 
  <body class="{% block body_class %}{% endblock %}">
 
{% block topbar_base %}
 
    <header role="banner" class="l-header">
 
      <div class="l-header--logo">
 
        {% block site_brand %}
 
          <img src="{% static 'lca2017/images/svgs/lca2017-website-logo.svg' %}" width="300px" />
 
        {% endblock %}
 
      </div>
 
    {% block nav %}
 
        {% sitetree_menu from "main" include "trunk" template "sitetree_header.html" %}
 
      <a href="#" data-menu-opener="" class="l-header--menu-opener"></a>
 
    </header>
 
      {% sitetree_menu from "main" include "trunk" template "sitetree_opener.html" %}
 
    {% endblock %}
 
{% endblock %}
 

	
 
{% block body_base %}
 
    <div style="height: 100px;" />
 
    <main role="main">
 
<div class="l-content-page">
 
        <section id="content_body">
 
        <div class="container">
 
            {% include "_messages.html" %}
 
            <div class="row">
 
                <div class="col-md-9">
 
    {% block body %}
 
      {% block content %}
 
      {% endblock %}
 
    {% endblock %}
 
                </div>
 
                <div class="col-md-3">
 
                    {% block sidebar %}
 
                        {% include "_default_sidebar.html" %}
 
                    {% endblock %}
 
                </div>
 
            </div>
 
        </div>
 
    </section>
 
</div>
 
{% endblock %}
 

	
 
{% block footer_base %}
 
      <div class="panel panel__compact panel__bg">
 
        <div style="background-image: url('');" class="panel--bg"></div>
 
        <div class="panel--content">
 
          <div class="panel--2-3">
 
            <!-- TODO: put something here. -->
 
          </div>
 
        </div>
 
      </div>
 
      <!-- https://gist.github.com/geedmo/5682742-->
 
      <footer class="l-footer">
 
        {% block footer %}
 
        <div class="l-footer--text">
 
          <h3>Sponsors</h3>
 
          <p class="lede">Magna morbi aliquet commodo arcu odio dui imperdiet blandit est.
 
          </p><a href="#" class="btn">See sponsors</a>
 
        </div>
 
        <div class="l-footer--logos">
 
          <img src="{% static 'lca2017/images/HPE.jpg' %}" role="presentation">
 
          <img src="{% static 'lca2017/images/IBM.jpg' %}" role="presentation"></div>
 
        <p class="lede">© 2016 linux.conf.au 2017 and Linux Australia. Linux is a registered trademark of Linus Torvalds. Site design by <a href="http://takeflight.com.au" >Takeflight</a>. <a href="/colophon">Colophon</a>.</p>
 
        {% endblock %}
 
      </footer>
 
{% endblock %}
 
    </main>
 
    {% block scripts %}
 
    <script src="{% static 'lca2017/js/app.js' %}"></script>
 
    {% block extra_script %}{% endblock %}
 
    {% endblock %}
 
{% block extra_body_base %}
 
    {% analytics %}
 
    {% block extra_body %}{% endblock %}
 
{% endblock %}
 
  </body>
 
</html>
pinaxcon/templates/site_base_onecolumn.html
Show inline comments
 
{% extends "site_base.html" %}
 

	
 

	
 
{% block body_base %}
 
    <section id="content_body">
 
    <div style="height: 100px;" />
 
    <main role="main">
 
<div class="l-content-page">
 
        <section id="content_body">
 
        <div class="container">
 
            {% include "_messages.html" %}
 
            {% block body %}
 
            {% endblock %}
 
        </div>
 
    </section>
 
    {% include "_messages.html" %}
 
    {% block body %}
 
      {% block content %}
 
      {% endblock %}
 
    {% endblock %}
 
</div>
 
</section>
 
</div>
 
{% endblock %}
pinaxcon/templates/site_base_wagtail.html
Show inline comments
 
new file 100644
 
{% extends "site_base.html" %}
 
{% block extra_style %}{% endblock %}
 
{% block body_base %}
 
    <div style="height: 100px;" />
 
    <main role="main">
 
    {% include "_messages.html" %}
 
    {% block body %}
 
      {% block content %}
 
      {% endblock %}
 
    {% endblock %}
 
{% endblock %}
pinaxcon/templates/symposion/proposals/base.html
Show inline comments
 
{% extends "site_base.html" %}
 
{% load staticfiles %}
 

	
 
{% block body_outer %}
 
    {% block body %}{% endblock %}
 
{% block extra_script %}
 
<script src="{% static 'js/site-92ae8d0d6c.js' %}" type="text/javascript"></script>
 
{% endblock %}
pinaxcon/templates/symposion/proposals/proposal_detail.html
Show inline comments
 
{% extends "symposion/proposals/base.html" %}
 

	
 
{% load i18n %}
 
{% load account_tags %}
 
{% load bootstrap %}
 

	
 
{% 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 btn-default">
 
                    {% trans "Edit this proposal" %}
 
                </a>
 
                <a href="{% url "proposal_cancel" proposal.pk %}" class="btn btn-default">
 
                    {% trans "Cancel this proposal" %}
 
                </a>
 
            {% else %}
 
                <a href="{% url "proposal_leave" proposal.pk %}" class="btn btn-default">
 
                    {% trans "Remove me from this proposal" %}
 
                </a>
 
            {% endif %}
 
        {% else %}
 
            {% trans 'Cancelled' }
 
        {% endif %}
 
    </div>
 

	
 
    <h3>#{{ proposal.number }}: {{ proposal.title }} ({{ proposal.speaker }})</h3>
 

	
 
    <div class="tabbable">
 
        <ul class="nav nav-tabs">
 
            <li class="active"><a href="#proposal-detail" data-toggle="tab">{% trans "Proposal Details" %}</a></li>
 
            {% if request.user == proposal.speaker.user %}
 
                <li><a href="#proposal-documents" data-toggle="tab">{% trans "Supporting Documents" %}</a></li>
 
            {% endif %}
 
            {% if message_form %}
 
                <li><a href="#proposal-feedback" data-toggle="tab">{% trans "Reviewer Feedback" %} <span class="badge">{{ proposal.messages.all|length }}</span></a></li>
 
            {% endif %}
 
        </ul>
 
        <div class="tab-content">
 
            <div class="tab-pane active" id="proposal-detail">
 
                {% include "symposion/proposals/_proposal_fields.html" %}
 
            </div>
 
            {% if request.user == proposal.speaker.user %}
 
                <div class="tab-pane" id="proposal-documents">
 
                    <h3>{% trans '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-xs">{% trans 'delete' %}</button>
 
                                    </form>
 
                                </td>
 
                                </tr>
 
                            {% endfor %}
 
                        </table>
 
                    {% else %}
 
                        <p>{% trans 'No supporting documents attached to this proposal.' %}</p>
 
                    {% endif %}
 
                    <a class="btn btn-default btn-sm{% if proposal.cancelled %} btn-disabled{% endif %}" href="{% url "proposal_document_create" proposal.pk %}"><i class="fa fa-upload"></i> {% trans 'Add Document' %}</a>
 
                </div>
 
            {% endif %}
 

	
 
    {% if message_form %}
 
        <div class="tab-pane" id="proposal-feedback">
 

	
 
            <h3>{% trans 'Conversation with Reviewers' %}</h3>
 

	
 
            {% for message in proposal.messages.all %}
 
                <div class="review-box">
 
                    <div class="comment">{{ message.message|safe }}</div>
 
                    <div class="dateline"><b>{% user_display message.user %}</b> {{ message.submitted_at|timesince }} ago</div>
 
                </div>
 
                <div class="clear"></div>
 
            {% 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">
 
                {% csrf_token %}
 
                <fieldset>
 
                    {{ message_form|bootstrap }}
 
                </fieldset>
 
                <div class="actions">
 
                    <button type="submit" name="message_submit" class="btn btn-primary">{% trans 'Submit' %}</button>
 
                </div>
 
            </form>
 
        </div>
 
    {% endif %}
 
    </div>
 
</div>
 
{% endblock %}
 

	
 
{% block extra_script %}
 
{{ block.super }}
 
    <script src="{{ STATIC_URL }}symposion/js/jquery.history.js"></script>
 
    <script type="text/javascript">
 
        $(function() {
 
            var History = window.History;
 

	
 
            $(window).bind("anchorchange", function() {
 
                $(".nav-tabs a[href='" + location.hash + "']").click();
 
            });
 

	
 
            $('#.nav-tabs a[data-toggle="tab"]').on('shown', function (e) {
 
                if (History.enabled) {
 
                    History.pushState(null, null, $(e.target).attr("href"));
 
                }
 
            });
 
        });
 
    </script>
 
{% endblock extra_script %}
pinaxcon/templates/symposion/reviews/base.html
Show inline comments
 
{% extends "site_base.html" %}
 
{% load staticfiles %}
 

	
 
{% load i18n %}
 
{% load sitetree %}
 

	
 
{% block extra_style %}
 
{{ block.super }}
 
    <style type="text/css">
 
        div.dataTables_length label {
 
            float: left;
 
            text-align: left;
 
        }
 

	
 
        div.dataTables_length select {
 
            width: 75px;
 
        }
 

	
 
        div.dataTables_filter label {
 
            float: right;
 
        }
 

	
 
        div.dataTables_info {
 
            padding-top: 8px;
 
        }
 

	
 
        div.dataTables_paginate {
 
            float: right;
 
            margin: 0;
 
        }
 

	
 
        table.table {
 
            clear: both;
 
            margin-bottom: 6px !important;
 
            background-color: white;
 
        }
 

	
 
        table.table thead .sorting,
 
        table.table thead .sorting_asc,
 
        table.table thead .sorting_desc,
 
        table.table thead .sorting_asc_disabled,
 
        table.table thead .sorting_desc_disabled {
 
            cursor: pointer;
 
            *cursor: hand;
 
        }
 

	
 
        table.dataTable th:active {
 
            outline: none;
 
        }
 
    </style>
 
{% endblock %}
 

	
 
{% block body_class %}reviews{% endblock %}
 

	
 
{% block body_outer %}
 
<div class="l-content-page">
 
<div class="l-content-page--richtext">
 
<div class="rich-text">
 

	
 
    <div class="row">
 
        <div class="col-md-2">
 
            {% block sidebar %}
 
            {% for section in review_sections %}
 
            <div class="panel panel-default">
 
                <div class="panel-heading">
 
                    <h3 class="panel-title">{{ section }}</h3>
 
                </div>
 
                <div class="list-group">
 
                        <a class="list-group-item review-list" href="{% url "review_section" section.section.slug %}">
 
                            {% trans "All Reviews" %}
 
                        </a>
 
                        {% comment %}
 
                        <li>
 
                            <a href="{% url "review_section_assignments" section.section.slug %}">
 
                                {% trans "Your Assignments" %}
 
                            </a>
 
                        </li>
 
                        {% endcomment %}
 
                        <a class="list-group-item user-not-reviewed" href="{% url "user_not_reviewed" section.section.slug %}">
 
                            {% trans "Unreviewed by you" %}
 
                        </a>
 
                        <a class="list-group-item voting-status" href="{% url "review_status" section.section.slug %}">
 
                            {% trans "Voting Status" %}
 
                        </a>
 
                        {% if request.user.is_staff %}
 
                            <a class="list-group-item review-results" href="{% url "result_notification" section.section.slug 'accepted' %}">Result Notification</a>
 
                        {% endif %}
 
                </div>
 
            {% endfor %}
 
            {% endblock %}
 
        </div>
 
        <div class="col-md-10">
 
            {% block body %}
 
            {% endblock %}
 
        </div>
 
    </div>
 
</div></div></div>
 
{% endblock %}
 

	
 
{% block extra_script %}
 
    <script src="{% static 'js/site-92ae8d0d6c.js' %}" type="text/javascript"></script>
 
    <script src="{{ STATIC_URL }}datatables/js/jquery.dataTables.min.js" type="text/javascript"></script>
 
    <script src="{{ STATIC_URL }}tabletools/js/TableTools.min.js" type="text/javascript"></script>
 
    <script src="{{ STATIC_URL }}datatables/js/dataTables.bootstrap.js" type="text/javascript"></script>
 
    <script type="text/javascript">
 
        $(function() {
 
            $(".tip").tooltip();
 
            $("table.table-reviews").dataTable({
 
                "sDom": "<'row'<'col-md-3'l><'col-md-3'T><'col-md-4'f>r>t<'row'<'col-md-3'i><'col-md-5'p>>",
 
                "sPaginationType": "bootstrap",
 
                "bStateSave": true,
 
                "oTableTools": {
 
                    "aButtons": [
 
                        "copy",
 
                        "csv",
 
                        "print"
 
                    ],
 
                    "sSwfPath": "{{ STATIC_URL }}tabletools/swf/copy_csv_xls.swf"
 
                }
 
            });
 
        });
 
    </script>
 
{% endblock %}
pinaxcon/templates/symposion/reviews/result_notification.html
Show inline comments
 
{% extends "symposion/reviews/base.html" %}
 

	
 
{% load i18n %}
 

	
 

	
 
{% block body_class %}{{ block.super }} review-results{% endblock %}
 

	
 
{% block extra_style %}
 
{{ block.super }}
 
    <style type="text/css">
 
        .table-striped tbody tr.selected td {
 
            background-color: #F7F4E6;
 
        }
 
    </style>
 
{% endblock %}
 

	
 
{% block body %}
 

	
 
    <ul class="nav nav-pills">
 
        <li{% if status == 'accepted' %} class="active"{% endif %}><a href="{% url "result_notification" section_slug 'accepted' %}">accepted</a>
 
        <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 %}">
 

	
 
        {% csrf_token %}
 

	
 
        <p>
 
            Select one or more proposals (<span class="action-counter">0</span> currently selected)
 
            <br/>
 
            then pick an email template
 
            <select name="notification_template">
 
                <option value="">[blank]</option>
 
                {% for template in notification_templates %}
 
                    <option value="{{ template.pk }}">{{ template.label }}</option>
 
                {% endfor %}
 
            </select>
 
            <br/>
 
            <button id="next-button" type="submit" class="btn btn-primary" disabled>Next <i class="fa fa-chevron-right"></i></button>
 
        </p>
 

	
 
        <table class="table table-striped table-bordered">
 
            <thead>
 
                <th><input type="checkbox" id="action-toggle"></th>
 
                <th>#</th>
 
                <th>{% trans "Speaker / Title" %}</th>
 
                <th>{% trans "Category" %}</th>
 
                <th>{% trans "Status" %}</th>
 
                <th>{% trans "Notified?" %}</th>
 
            </thead>
 

	
 
            <tbody>
 
                {% for proposal in proposals %}
 
                    <tr>
 
                        <td><input class="action-select" type="checkbox" name="_selected_action" value="{{ proposal.pk }}"></td>
 
                        <td>{{ proposal.number }}</td>
 
                        <td>
 
                            <a href="{% url "review_detail" proposal.pk %}">
 
                                <small><strong>{{ proposal.speaker }}</strong></small>
 
                                <br />
 
                                {{ proposal.title }}
 
                            </a>
 
                        </td>
 
                        <td>{{ proposal.track }}</td>
 
                        <td>
 
                            {% with proposal.result.status as status %}
 
                                <div class="{{ status }}">
 
                                    {% if status != "undecided" %}
 
                                        <span>{{ status }}</span>
 
                                    {% endif %}
 
                                </div>
 
                            {% endwith %}
 
                        </td>
 
                        <td>
 
                            {% if proposal.notifications.exists %}yes{% endif %}
 
                        </td>
 
                    </tr>
 
                {% endfor %}
 
            </tbody>
 
        </table>
 
    </form>
 
{% endblock %}
 

	
 
{% block extra_script %}
 
{{ block.super }}
 
    <script type="text/javascript">
 
        (function($) {
 
            $.fn.actions = function(opts) {
 
                var options = $.extend({}, $.fn.actions.defaults, opts);
 
                var actionCheckboxes = $(this);
 
                checker = function(checked) {
 
                    $(actionCheckboxes).prop("checked", checked)
 
                        .parent().parent().toggleClass(options.selectedClass, checked);
 
                }
 
                updateCounter = function() {
 
                    var sel = $(actionCheckboxes).filter(":checked").length;
 
                    $(options.counterContainer).html(sel);
 
                    $(options.allToggle).prop("checked", function() {
 
                        if (sel == actionCheckboxes.length) {
 
                            value = true;
 
                        } else {
 
                            value = false;
 
                        }
 
                        return value;
 
                    });
 
                    if (sel == 0) {
 
                        $("#next-button").prop("disabled", true);
 
                    } else {
 
                        $("#next-button").prop("disabled", false);
 
                    }
 
                }
 
                // Check state of checkboxes and reinit state if needed
 
                $(this).filter(":checked").each(function(i) {
 
                    $(this).parent().parent().toggleClass(options.selectedClass);
 
                    updateCounter();
 
                });
 
                $(options.allToggle).click(function() {
 
                    checker($(this).prop("checked"));
 
                    updateCounter();
 
                });
 
                lastChecked = null;
 
                $(actionCheckboxes).click(function(event) {
 
                    if (!event) { var event = window.event; }
 
                    var target = event.target ? event.target : event.srcElement;
 
                    if (lastChecked && $.data(lastChecked) != $.data(target) && event.shiftKey == true) {
 
                        var inrange = false;
 
                        $(lastChecked).prop("checked", target.checked)
 
                            .parent().parent().toggleClass(options.selectedClass, target.checked);
 
                        $(actionCheckboxes).each(function() {
 
                            if ($.data(this) == $.data(lastChecked) || $.data(this) == $.data(target)) {
 
                                inrange = (inrange) ? false : true;
 
                            }
 
                            if (inrange) {
 
                                $(this).prop("checked", target.checked)
 
                                    .parent().parent().toggleClass(options.selectedClass, target.checked);
 
                            }
 
                        });
 
                    }
 
                    $(target).parent().parent().toggleClass(options.selectedClass, target.checked);
 
                    lastChecked = target;
 
                    updateCounter();
 
                });
 
            }
 
            /* Setup plugin defaults */
 
            $.fn.actions.defaults = {
 
                counterContainer: "span.action-counter",
 
                allToggle: "#action-toggle",
 
                selectedClass: "selected"
 
            }
 
        })($);
 
        $(function() {
 
            $("tr input.action-select").actions();
 
        });
 
    </script>
 
{% endblock %}
pinaxcon/templates/symposion/reviews/review_detail.html
Show inline comments
...
 
@@ -43,150 +43,151 @@
 
                            {% else %}
 
                                <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Undecided <span class="caret"></span></a>
 
                                <div class="dropdown-menu pull-right" style="width: 200px; padding-left: 10px;">
 
                                    <div class="btn-group">
 
                                        <input type="submit" name="result_submit" value="accept" class="btn btn-xs btn-success" />
 
                                        <input type="submit" name="result_submit" value="reject" class="btn btn-xs btn-danger" />
 
                                        <input type="submit" name="result_submit" value="standby" class="btn btn-default btn-xs" />
 
                                    </div>
 
                                </div>
 
                            {% endif %}
 
                        {% endif %}
 
                    {% endif %}
 
                </div>
 
            </form>
 
        </div>
 
    {% endif %}
 

	
 
    <h3>#{{ proposal.number }}: {{ proposal.title }} ({{ proposal.speaker }})</h3>
 

	
 
    <div class="tabbable">
 
        <ul class="nav nav-tabs">
 
            <li class="active"><a href="#proposal-detail" data-toggle="tab">{% trans "Proposal Details" %}</a></li>
 
            <li><a href="#proposal-reviews" data-toggle="tab">{% trans "Reviews" %} <span class="badge">{{ reviews|length }}</span></a></li>
 
            <li><a href="#proposal-feedback" data-toggle="tab">{% trans "Speaker Feedback" %} <span class="badge">{{ proposal.messages.all|length }}</span></a></li>
 
        </ul>
 
        <div class="tab-content">
 
            <div class="tab-pane active" id="proposal-detail">
 
                {% include "symposion/proposals/_proposal_fields.html" %}
 
            </div>
 
            <div class="tab-pane" id="proposal-reviews">
 

	
 
                <h4>{% trans "Current Results" %}</h4>
 
                <table class="table table-striped">
 
                    <thead>
 
                        <th>+2 votes</th>
 
                        <th>+1 votes</th>
 
                        <th>-1 votes</th>
 
                        <th>-2 votes</th>
 
                        <th>{% trans "Total Responses" %}
 
                    </thead>
 
                    <tbody>
 
                        <tr>
 
                            <td>{{ proposal.plus_two }}</td>
 
                            <td>{{ proposal.plus_one }}</td>
 
                            <td>{{ proposal.minus_one }}</td>
 
                            <td>{{ proposal.minus_two }}</td>
 
                            <td>{{ proposal.total_votes }}</td>
 
                        </tr>
 
                    </tbody>
 
                </table>
 

	
 
                <hr />
 

	
 
                {% if review_form %}
 
                    <form method="POST" action="#proposal-reviews" class="review-form">
 
                        <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" />
 
                            </div>
 
                    </form>
 
                {% else %}
 
                    <p>You do not have permission to vote on this proposal.</p>
 
                {% endif %}
 

	
 
                {% if reviews %}
 
                    <h5>Review Comments</h5>
 
                    {% for review in reviews %}
 
                        <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">
 
                                        {% csrf_token %}
 
                                        <button class="btn btn-xs btn-danger" type="submit">Delete</button>
 
                                    </form>
 
                                </div>
 
                            {% endif %}
 
                            <div class="review-content">
 
                                <b>{% user_display review.user %}</b>
 
                                {{ review.submitted_at|timesince }} ago <br />
 
                                {{ review.comment|safe }}
 
                            </div>
 
                        </div>
 
                    {% endfor %}
 
                {% endif %}
 
            </div>
 
            <div class="tab-pane" id="proposal-feedback">
 
                {% if review_messages %}
 
                    <h3>{% trans "Conversation with the submitter" %}</h3>
 
                    {% for message in review_messages %}
 
                        <div class="comment-box">
 
                            <div class="commment-content">
 
                                <b>{% user_display message.user %}</b>
 
                                {{ message.submitted_at|timesince }} ago <br />
 
                                {{ message.message|safe }}
 
                            </div>
 
                        </div>
 
                    {% endfor %}
 
                    <hr />
 
                {% endif %}
 

	
 
		{% if is_manager %}
 
                <form 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 %}
 
                    </p>
 
                    {% csrf_token %}
 
                    {{ message_form|bootstrap }}
 
                    <div class="form-actions">
 
                        <input type="submit" class="btn btn-primary" name="message_submit" value="Send Message" />
 
                    </div>
 
                </form>
 
                {% endif %}
 
            </div>
 
        </div>
 
    </div>
 
{% endblock %}
 

	
 
{% block extra_script %}
 
{{ block.super }}
 
    <script src="{{ STATIC_URL }}symposion/js/jquery.history.js"></script>
 
    <script type="text/javascript">
 
        $(function() {
 
            var History = window.History;
 

	
 
            $(window).bind("anchorchange", function() {
 
                $(".nav-tabs a[href='" + location.hash + "']").click();
 
            });
 

	
 
            $('.nav-tabs a[data-toggle="tab"]').on('shown', function (e) {
 
                if (History.enabled) {
 
                    History.pushState(null, null, $(e.target).attr("href"));
 
                }
 
            });
 

	
 
            if (window.location.hash !== '') {
 
            	$('.nav-tabs a[href="' + window.location.hash + '"]').tab('show')
 
            }
 
        });
 
    </script>
 

	
 
{% endblock %}
pinaxcon/templates/symposion/reviews/review_review.html
Show inline comments
 
{% extends "site_base.html" %}
 
{% load staticfiles %}
 
{% block extra_style %}
 
<link rel="stylesheet" href="{% static 'css/site-0a247b924d.css' %}">
 
{% endblock %}
 

	
 
{% load bootstrap %}
 

	
 
{% block body_class %}review{% endblock %}
 

	
 
{% block body %}
 
<div class="l-content-page">
 
<div class="l-content-page--richtext">
 
<div class="rich-text">
 
    <h1>Proposal Review</h1>
 

	
 
    <div class="proposal">
 
        <h2>{{ proposal.title }}</h2>
 

	
 
        <p>
 
            {% if proposal.cancelled %}
 
                Cancelled
 
            {% endif %}
 
        </p>
 

	
 
        <div>
 
            {{ proposal.description }}
 
        </div>
 

	
 
        <p><b>Type</b>: {{ proposal.get_session_type_display }}</p>
 

	
 
        <h3>Abstract</h3>
 
        <div class="abstract">
 
            {{ proposal.abstract_html|safe }}
 
        </div>
 

	
 
        <p><b>Audience level</b>: {{ proposal.get_audience_level_display }}</p>
 

	
 
        <p><b>Submitting speaker</b>: {{ proposal.speaker }}</p> {# @@@ bio? #}
 

	
 
        {% if proposal.additional_speakers.all %}
 
            <p><b>Additional speakers</b>:</p>
 
            <ul>
 
            {% for speaker in proposal.additional_speakers.all %}
 
                {% if speaker.user %}
 
                    <li><b>{{ speaker.name }}</b> &mdash; {{ speaker.email }}</li>
 
                {% else %}
 
                    <li>{{ speaker.email }} &mdash; pending invitation</li>
 
                {% endif %}
 
            {% endfor %}
 
            </ul>
 
        {% endif %}
 

	
 
        <h3>Additional Notes (private from submitter)</h3>
 
        <div class="additional_notes">
 
            {{ proposal.additional_notes }}
 
        </div>
 
    </div>
 

	
 
    <h2>Review</h2>
 

	
 
    <form method="POST" action="{% url "review_review" proposal.pk %}" class="form">
 
        {% 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">
 
        {% csrf_token %}
 
        <fieldset>
 
            {{ comment_form|bootstrap }}
 
            <div class="form_block">
 
                <input type="submit" value="Submit" />
 
            </div>
 
        </fieldset>
 
    </form>
 

	
 
</div></div></div>
 
{% endblock %}
0 comments (0 inline, 0 general)