Initial rework of reg dashboard
authorChris Ellis <chris@intrbiz.com>
Thu, 12 Sep 2024 11:30:09 +0000 (12:30 +0100)
committerChris Ellis <chris@intrbiz.com>
Thu, 12 Sep 2024 11:30:09 +0000 (12:30 +0100)
templates/confreg/registration_dashboard.html [new file with mode: 0644]

diff --git a/templates/confreg/registration_dashboard.html b/templates/confreg/registration_dashboard.html
new file mode 100644 (file)
index 0000000..fc08be0
--- /dev/null
@@ -0,0 +1,297 @@
+{%extends "base.html" %}
+{%block title%}Your Registration - {{conference}}{%endblock%}
+{%block extrahead%}
+<link rel="stylesheet" type="text/css" href="/media/css/pgeuconf.css">
+{{ super() }}
+{%endblock%}
+
+{%block content%}
+<div class="confsys">
+
+  {% if messages %}
+    <div class="banner messages">
+      <ul class="regdashboardmessage">
+          {% for message in messages %}
+          <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
+          {% endfor %}
+      </ul>
+    </div>
+  {% endif %}
+
+  <h1>Your Registration<span class="confheader"> - {{conference}}</span></h1>
+
+  <div class="intro">
+    <h4>Hi {{reg.firstname}}</h4>
+    <h5>Welcome To {{conference}}!</h5>
+    <p>
+      Your registration (for {{reg.firstname}} {{reg.lastname}}) was completed on {{reg.payconfirmedat|datetimeformat("%Y-%m-%d %H:%M")}}.
+    </p>
+    <p>
+      Here you will find all the information you need about {{conference}}.  Please also check the main <a href="{{conference.confurl}}">event website</a> for public news!
+    </p>
+  </div>
+  
+  <nav class="button-bar">
+    <a class="button" href="#mails">Information Emails</a>
+    {%if wikipages%}
+      <a class="button" href="#wiki">Wiki Pages</a>
+    {%endif%}
+    {%if signups%}
+      <a class="button" href="#signups">Signups</a>
+    {%endif%}
+    {%if not has_other_multiregs%}
+      <a class="button" href="{{redir_root}}other/">Register Others</a>
+    {%endif%}
+      <a class="button" href="#summary">Registration Summary</a>
+    {%if availableoptions%}
+      <a class="button" href="#options">Additional Options</a>
+    {%endif%}
+    {%if conference.IsCallForPapersOpen%}
+      <a class="button" href="/events/{{conference.urlname}}/callforpapers/">Call For Papers</a>
+    {%elif is_speaker%}
+      <a class="button" href="/events/{{conference.urlname}}/callforpapers/">Your Speaker Profile</a>
+    {%endif%}
+    {%if reg.is_volunteer%}
+      <a class="button" href="/events/{{conference.urlname}}/volunteer/">Volunteer Schedule</a>
+    {%endif%}
+    {%if reg.is_checkinprocessor %}
+      <a class="button" href="/events/{{conference.urlname}}/checkin/">Checkin Processing</a>
+    {%endif%}
+    {%for s in sponsorships%}
+      <a class="button" href="/events/sponsor/{{s.id}}/">Manage {{s.displayname}} Sponsorship</a>
+    {%endfor%}
+    {%if reg.is_badgescanner %}
+      <a class="button" href="/events/{{conference.urlname}}/badgescan/">Sponsor Badge Scanning</a>
+    {%endif%}
+    {%if reg.is_tweeter %}
+      <a class="button" href="/events/{{conference.urlname}}/volunteer/{{reg.regtoken}}/twitter/">Twitter Posting</a>
+    {%endif%}
+  </nav>
+
+{%if has_other_multiregs%}
+<div class="card">
+  <h4>Other Registrations</h4>
+  <p>You are managing registrations for other people who are attending the event.</p>
+  <a class="button" href="{{redir_root}}other/">Manage Other Registrations</a>
+</div>
+{%endif%}
+
+<div id="mails" class="card">
+  <a name="mails"></a>
+  <h4>Information emails</h4>
+  <p>
+  The following emails have been sent to attendees of this conference.
+  Any future messages sent will both be sent to <i>{{reg.email}}</i> and
+  listed here. To ensure that messages are not filtered, we suggest that you
+  white-list the address <i style="hyphens:none;">{{conference.contactaddr}}</i> in your
+  spamfilters.
+  </p>
+  <ul>
+  {%if not mails%}
+    <li>No emails have been sent yet</li>
+  {%else%}
+    {%for m in mails%}
+      <li><a href="{{redir_root}}mail/{{m.id}}/">{{m.subject}}</a> (<i>sent {{m.sentat|datetimeformat("%Y-%m-%d %H:%M")}}</i>)</li>
+    {%endfor%}
+  {%endif%}
+  </ul>
+</div>
+
+{%if wikipages%}
+<div id="wiki" class="card">
+  <a name="wiki"></a>
+  <h2>Wiki pages</h2>
+  <ul>
+  {%for p in wikipages%}
+  <li><a href="{{redir_root}}wiki/{{p.url}}/">{{p.title}}</a> (last modified {{p.publishedat|datetimeformat("%Y-%m-%d %H:%M")}})</li>
+  {%endfor%}
+  </ul>
+  {%endif%}
+
+  {%if signups%}
+  <a name="signups"></a>
+  <h2>Signups</h2>
+  <ul>
+  {%for s in signups%}
+  <li><a href="{{redir_root}}signup/{{s.title|slugify}}-{{s.id}}/">{{s.title}}</a>{%if s.closed%} (closed){%elif s.deadline%} (closes {{s.deadline|datetimeformat("%Y-%m-%d %H:%M")}}){%endif%}{%if s.savedat%} - you responded on {{s.savedat|datetimeformat("%Y-%m-%d %H:%M")}}{%endif%}</li>
+  {%endfor%}
+  </ul>
+</div>
+{%endif%}
+
+<div id="summary" class="card">
+  <a name="summary"></a>
+  <h4>Registration summary</h4>
+  <dl>
+  <dt>Registration type</dt>
+  <dd>Your registration type is <i>{{reg.regtype}}</i>.
+  {%if reg.access_days %}
+  <dt>Access days</dt>
+  <dd>Your registration gives you access to the conference on {{reg.access_days}}.</dd>
+  {%endif%}
+  {%if conference.tickets %}
+  <dt>Ticket</dt>
+  <dd>
+    <p>
+      You can <a href="{{ redir_root }}viewticket/">view your ticket here</a> or
+      <a href="{{ redir_root }}ticket/">download a PDF version</a> to bring to
+      the conference.
+    </p>
+  </dd>
+  {%endif%}
+  <dt>Registration details</dt>
+  <dd>
+    <p>
+      This registration is made for <i>{{reg.firstname}} {{reg.lastname}}</i> with email address <i>{{reg.email}}</i>.
+    </p>
+    <ul>
+  {%for k,v in displayfields%}
+      <li>{{k}}: {{v}}</li>
+  {%endfor%}
+    </ul>
+  </dd>
+
+  {%if reg.additionaloptions.all()%}
+  <dt>Additional options</dt>
+  <dd>You are registered for the following additional options:
+    <ul>
+  {%for a in reg.additionaloptions.all()%}
+      <li>{{a.name}}</li>
+  {%endfor%}
+    </ul>
+  </dd>
+  {%endif%}
+
+  {%if invoices%}
+  <dt>Invoice and receipts</dt>
+  <dd>You can download a copy of your invoices and receipts:<ul>
+  {%for t,i in invoices%}
+    <li><a href="/invoices/{{i.id}}/{{i.recipient_secret}}/">{{t}}</a></li>
+  {%endfor%}
+  </ul>
+  If you have made any additional orders, you can always find a copy of all
+  invoices and receipts in the <a href="/invoices/">invoice section</a>.
+  </dd>
+  {%endif%}
+
+  </dl>
+
+  {%if changeform%}
+  <h5>Change your registration</h5>
+  {% if conference.allowedit %}
+  <p>
+  A limited number of fields on your registration can be changed. If you need
+  to change anything other than this, please contact the conference organizers.
+  </p>
+  {%else%}
+  <p>
+  Your registration can no longer be modified.
+  </p>
+  {%endif%}
+  {%if changeform.non_field_errors()%}{{changeform.non_field_errors()}}{%endif%}
+  <form method="post" action="{{redir_root}}change/">{{ csrf_input }}
+    {%for f in changeform %}
+    <div class="regwrap{%if f.errors%} errfld{%endif%}">
+      <div class="regleft">
+        {{f.label_tag()}} <br/>
+        {{f}}
+      </div>
+      <div class="regright">
+        {% if f.errors %}{{ f.errors}}{% endif %}
+      </div>
+    </div>
+    {%endfor%}
+  {%if conference.allowedit %}
+  <div class="regwrap">
+  <div class="regleft">
+    <input type="submit" value="Update registration">
+  </div>
+  </div>
+  {%endif%}
+  </form>
+  {%endif%}
+  
+  {%if scanned_by_sponsors%}
+  <div class="subsection scanned-by">
+    <h4>Scanned By Sponsors</h4>
+    <p>
+      Your badge has been scanned by the following sponsors:
+    </p>
+    <ul>
+    {%for s in scanned_by_sponsors %}
+    <li>{{s.sponsor.displayname}} (at {{s.scannedat|datetimeformat("%Y-%m-%d %H:%M")}})</li>
+    {%endfor%}
+    </ul>
+  </div>
+  {%endif%}
+  
+</div>
+
+{%if messaging%}
+<div id="notifications" class="card">
+  <h2>Notifications</h2>
+  <a name="notifications"></a>
+  <p>
+    You can connect your registration to a specific messaging system, which will allow
+    us to send you direct notifications, reminders, and other similar information. Depending
+    on the platform, it may also allow you to participate in conference related chats
+    (participation is always optional).
+  </p>
+  {%if current_messaging_info %}
+  <p>
+    Your registration is currently configured to send notifications using {{reg.messaging}}.
+  {%if reg.messaging_copiedfrom %}
+    This configuration was copied from {{reg.messaging_copiedfrom}}.
+  {%endif%}
+  </p>
+  {{current_messaging_info}}
+  <form method="post" action="{{redir_root}}msgconfig/">{{ csrf_input }}
+    <input type="hidden" name="op" value="deactivate">
+    <input type="submit" value="Deactivate {{reg.messaging}}">
+  </form>
+  {%else%}
+  <form method="post" action="{{redir_root}}msgconfig/">{{ csrf_input}}
+    Platform: <select name="messagingid">
+  {%for m in messaging%}
+      <option value="{{m.id}}">{{m.full_info}}</option>
+  {%endfor%}
+    </select>
+    <input type="submit" value="Configure notifications">
+  </form>
+  {%endif%}
+</div>
+{%endif%}
+
+{%if availableoptions%}
+<div id="options" class="card">
+  <a name="options"></a>
+  <h2>Additional options</h2>
+  {%if pendingadditional%}
+  <p>
+  You have a pending order for additional options, which has not yet been
+  paid. Please pay this invoice as soon as possible to ensure your
+  registration is completed!
+  </p>
+  {%set invoice=pendingadditionalinvoice%}
+  {%include "invoices/userinvoice_spec.html"%}
+  {%else%}
+  <p>
+  {{'system.reg.additionaloptionsintro'|lookup("")}}
+  </p>
+  <form method="post" action="addopt/">{{ csrf_input }}
+  {%for o in availableoptions %}
+  <input type="checkbox" name="ao_{{o.id}}" value="1" /> {{o}}<br/>
+  {%endfor%}
+  <br/>
+  <div class="regwrap">
+    <div class="regleft">
+  <input type="submit" value="Register for additional options">
+    </div>
+  </div>
+  </form>
+  {%endif%}
+</div>
+{%endif%}
+
+</div>
+{%endblock%}