Commit graph

1738 commits

Author SHA1 Message Date
Sachi King
f0e7a58226 Asset cleanup
Remove in-app stale resources and their branching of different cons.
Remove dist and move everyting into static/src.
Remove unused stale resouces such as less and hbs, etc.
2017-04-25 01:31:01 +10:00
Sachi King
f5d8900c90 This isn't and wasn't used. 2017-04-25 01:27:04 +10:00
Sachi King
8d77023aec Remove AceEditor
I cannot find the benifit to this over the base editor.

Tabs work, but that's pretty minimal.  And tabs don't work on GitLab or
GitHub, so I don't feel not having that is substantual to functionality.
2017-04-25 01:27:04 +10:00
Sachi King
8fa8fc4012 Add ' *' required markers back
The bootstrap renderer did not do anything to signify required rows.  We
can do this by adding a class for CSS to work on, and add this field in
a more simplified manner.

label-required == append ' *'
2017-04-25 01:27:04 +10:00
Sachi King
b3ac11a66b Simplify django form rendering
Remove my hack to get bootstrap forms.

Remove the insane render-row-at-a-time forms that then only render
default django forms.
2017-04-25 01:26:59 +10:00
Sachi King
7b74d3829f Disable SAML debug
We don't need this and it prints a lot of information.
2017-04-25 01:25:54 +10:00
Sachi King
b0b9ea89f7 Environtment the settings
And finally, dev settings converge with commited settings.
2017-04-25 01:25:54 +10:00
Sachi King
2d7a5aa35a Useless comment 2017-04-25 01:25:54 +10:00
Sachi King
895cab2c1c Signal rejections and standby talks.
Go green for Accepted

Go Red for Rejected

Go yellow for Standby
2017-04-25 01:25:47 +10:00
Sachi King
2d4b29e6d9 Add a CSS class on required fields labels
This makes it possible to add a ' *' required notifier to labels without
needing a bunch of custom form code in templates.
2017-04-24 23:09:21 +10:00
Sachi King
189abf3e23 Add a CSS class on required fields labels
This makes it possible to add a ' *' required notifier to labels without
needing a bunch of custom form code in templates.
2017-04-24 23:05:45 +10:00
Sachi King
dfd1da01be Remove unicode(), we're all unicode
Py3
2017-04-23 18:32:52 +10:00
Sachi King
b9510fed67 Remove state select box
I'm not against putting this back, however, it doesn't work quite as one
would expect, so I'm removing it as its functionality is more confusing
that working.

Is this really the best way to address this?

If you unselect AU, then it never comes back.  It leaves its value in
the textbox pre-filled if it ever got a value, leaving the field
pre-filled with an Aus state even if the person is New Zealand.

Most of our attendees are from but a few countries, we should make these
equal effort to fill in.
2017-04-23 17:32:38 +10:00
Sachi King
0dfe52d19d States in Alpha 2017-04-23 17:23:59 +10:00
Sachi King
18fcfddad6 Errors should be big red boxes 2017-04-23 17:21:19 +10:00
Sachi King
079f87b1d2 Use a selectbox for of_legal_age
To me, this registeres to a user as a required field better than a
radio-button.

As well, we now signal it as "required = True"
2017-04-23 17:19:38 +10:00
Sachi King
a291d17466 WIP Fixtures LCA-i-fication 2017-04-23 16:07:38 +10:00
Sachi King
a162559a05 NotImplmented refund
We don't actually do it.  Ban it for now.
2017-04-22 19:06:47 +10:00
Sachi King
d360e880d9 Flake8 fixes 2017-04-22 19:06:30 +10:00
Sachi King
03c7633169 Test fixes
There are a number of attempts to use Deci in ints, which won't work in
2.7 or 3.x, we fix that.

Description doesn't exist in symposion.  So that fails our tests pretty
hard.  Switch that to Private Abstract.  It's clear these tests have not
been run in a very long time.  So both failures and especially passes
need to be taken with salt.
2017-04-22 18:47:24 +10:00
Sachi King
b156be1e7e Python 3 fixes 2017-04-22 18:43:13 +10:00
Sachi King
a2464bd95e ve is scoped to the except block.
We probably want to see a whole bunch of errors collected in errors
anyways.  That should get converted to a string uppon being raised, so
pass errors directly.
2017-04-22 18:40:40 +10:00
Sachi King
17693754de Huge batch of pep8 fixes 2017-04-22 18:39:07 +10:00
Sachi King
9719546bda Fix imports - not relative 2017-04-17 22:56:21 +10:00
Sachi King
bcb63fd1cd Import fixups - not relative 2017-04-17 22:55:48 +10:00
Sachi King
298b162be6 Flake8 Fixes
Mostly whitespace fixes
Some unicode fixes
Fixed up CSV writer.  str is not bytes and all.
2017-04-17 22:51:48 +10:00
Sachi King
ecf14b514d Remove print statements.
I was originally going to switch to print function, but frankly I can't
see any reason to keep these.  I don't know what data it's leaking into
the logs, but it certainly doesn't seem useful

StringIO is not in Py3.  And it's not used at all, so removing that
import.  Seems to work with Py3 now.  More testing is required.
2017-04-17 15:47:10 +10:00
Sachi King
1886323d74 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.
2017-04-16 16:30:45 +10:00
Sachi King
c6314ae230 DJ 1.11 support has improved upstream
We can now force to released versions with 1.11 support.
2017-04-16 16:30:45 +10:00
Sachi King
6d864e8ce5 Cleanout conf-specific proposals.
We don't have these mini-confs (yet).
We don't want these files.
We're not going to rename the release in 0010 and drop all the extra
tables in 0011, we're going to toss them on the cutting room floor and
call it good.

They're in git, we can look at this commit and past ones on how to
recreate these for new proposal additions going forward.
2017-04-16 16:30:45 +10:00
Sachi King
44c3478092 Dj 1.11 support merged into Dj-model-utils 2017-04-16 16:30:45 +10:00
Sachi King
1ba1a97c45 move templates out of vendor specific locations
Lets not kid ourselves.  The whole apps templates are client specific.
Lets just remove that and not think it isn't.
2017-04-16 16:30:45 +10:00
Sachi King
0aa48837cf Template simplication: remove site_base_wagtail.html 2017-04-16 16:30:45 +10:00
Sachi King
2642c03115 Sneak 2017 into the list of previous years 2017-04-16 16:30:45 +10:00
Sachi King
e86a811f38 Bootstrapification: SiteTree Nav Bar
Make sitetree a bootstrap navbar.

Remove mobile menu, bootstrap provides this.
2017-04-16 16:29:19 +10:00
Sachi King
2adb0ed14a Update bootstrap blobs
Todo: Install these via npm, these should not be checked in.
2017-04-10 20:59:29 +10:00
Sachi King
1d8402b789 Remove PDF blob 2017-04-10 19:24:13 +10:00
Sachi King
4dedd88225 Remove the blue header and clean up padding 2017-04-09 17:14:50 +10:00
Sachi King
8698e416fa Remove DJDT template view
This causes template rendering to blow out of proportion on certain
views.  I don't care enough about this feature to spend time fixing it.
It has not provided me any value to this point.

One such view is ^/tickets/profile$ however there are others where I saw
this, yet do not remember which ones they were.
2017-04-09 15:58:29 +10:00
Sachi King
88bcd5fe65 Switch to LCA2017 templates
This fixes proposal details.
2017-04-08 20:13:28 +10:00
Sachi King
81272d5310 Update requirements for Django 1.11
This has long enough support to reach post conf + a fair bit.
2017-04-08 20:13:22 +10:00
Sachi King
4456398735 Price is not a relation and cannot select_related
This field is ignored in 1.9, however in 1.10+ it is an error.
As this is a no-op in 1.9, removal keeps functionality while
extending compatability going forward.

For full details please see Django Ticket 10414 at:
https://code.djangoproject.com/ticket/10414
2017-04-05 21:07:59 +10:00
Sachi King
de08802d5b If user does not exist, catch exception
User = None
2017-04-02 22:07:26 +10:00
Sachi King
0517c61542 Update django-model-utils to support Django 1.10 2017-04-01 17:38:47 +11:00
Sachi King
65769e9de7 Add the constraints file referenced in readme.
Install a newer pysaml2 than django-saml2 pins to.
2017-03-31 15:30:49 +11:00
Sachi King
cfa9a60f11 Move secrets values to the top
Probably not the best way to do it, but it'll do.

We should add some logic to bail if certain values are unset.
Logic in settings, *gross*, I know.
2017-03-31 15:30:40 +11:00
Sachi King
dc532cc4f8 Use env vars for GCS_BUCKET 2017-03-31 12:09:41 +11:00
Sachi King
ec71141ef1 Update the README
Attempting to reflect the current state.

Pycon seems to be using fixtures to setup the data that
populate_inventory does.   Need to look into that.
2017-03-31 11:54:47 +11:00
Sachi King
a0ee642cc3 Cleanup templates
Unused tags
Unused templates
Leftovers pinax-pages templates
2017-03-31 11:54:47 +11:00
Sachi King
6557e2983b Support Django 1.10
Few minor changes to support Django 1.10
2017-03-31 11:54:47 +11:00