From b052f8870c03132a92412e86bc914725661acb61 2017-06-05 00:32:45 From: Christopher Neugebauer Date: 2017-06-05 00:32:45 Subject: [PATCH] Pulls out the dashboard widget --- diff --git a/pinaxcon/templates/dashboard.html b/pinaxcon/templates/dashboard.html index 82f799bc114709f3e7552f09c51a068ba0cb285e..f9d5926123065bf51a4822d37a1ba974a976cfc8 100644 --- a/pinaxcon/templates/dashboard.html +++ b/pinaxcon/templates/dashboard.html @@ -94,97 +94,7 @@ {% endif %} - {% sold_out_and_unregistered as sold_out %} -
-
-
- {% if not user.attendee.completed_registration %} - {% if not sold_out %} - - Register for the conference - - {% endif %} - {% else %} - - Edit your attendee profile - - - {% items_pending as pending %} - {% if pending %} - - Check out and pay - - {% endif %} - {% endif %} - - Enter a voucher code - - {% if user.is_staff %} - View reports - {% endif %} - - -
-

- - {% trans "Registration" %} -

- -
- -
- {% if not user.attendee.completed_registration %} - {% if not sold_out %} -

To attend the conference, you must purchase a ticket. Use our registration form to purchase your ticket. - {% else %} -

There are no tickets available to the general public.

- -

If you have a voucher code, you can enter that voucher code, which may enable tickets for you.

- {% endif %} - {% else %} -

Your registration

- {% items_pending as pending %} - {% if pending %} -
Items pending payment
- {% include "registrasion/_items_list.html" with items=pending %} -

- - Check out and pay for these items.

- {% endif %} - {% items_purchased as purchased %} - {% if purchased %} -
Paid items
- {% include "registrasion/_items_list.html" with items=purchased %} - {% endif %} -
Add/Update items
- {% available_categories as categories %} - {% include "registrasion/_category_list.html" with categories=categories %} - - - {% invoices as invoices %} - {% if invoices %} -
Invoices
-
    - {% for invoice in invoices %} - {% if not invoice.is_void %} -
  • - Invoice {{ invoice.id }} - - ${{ invoice.value }} ({{ invoice.get_status_display }}) -
  • - {% endif %} - {% endfor %} -
- {% endif %} - - {% available_credit as credit %} - {% if credit %} -

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.

- {% endif %} - {% endif %} - -
-
+ {% include "registrasion/dashboard_widget.html" %}
diff --git a/pinaxcon/templates/registrasion/_category_list.html b/pinaxcon/templates/registrasion/_category_list.html deleted file mode 100644 index 16d94263c492cd54f5b5d48f3c866bc074aad9e5..0000000000000000000000000000000000000000 --- a/pinaxcon/templates/registrasion/_category_list.html +++ /dev/null @@ -1,7 +0,0 @@ -
    - {% for category in categories %} - {% if not category in exclude %} -
  • {{ category.name }}
  • - {% endif %} - {% endfor %} -
diff --git a/pinaxcon/templates/registrasion/_items_list.html b/pinaxcon/templates/registrasion/_items_list.html deleted file mode 100644 index 9926bc44d6c7d067cc0afbee91dc0fef5356d047..0000000000000000000000000000000000000000 --- a/pinaxcon/templates/registrasion/_items_list.html +++ /dev/null @@ -1,7 +0,0 @@ -{% if items %} -
    - {% for item in items %} -
  • {{ item.quantity }} × {{ item.product }} {{ suffix }}
  • - {% endfor %} -
-{% endif %}