Skip to content
This repository was archived by the owner on Feb 10, 2018. It is now read-only.

convert band agreement page into blocks, for overriding in downstream plugins - #27

Merged
binary1230 merged 3 commits into
masterfrom
blockify_band_agreement
May 20, 2016
Merged

convert band agreement page into blocks, for overriding in downstream plugins#27
binary1230 merged 3 commits into
masterfrom
blockify_band_agreement

Conversation

@binary1230

@binary1230 binary1230 commented May 17, 2016

Copy link
Copy Markdown
Contributor
  • turn parts of the band agreement into blocks for extending via plugins
  • requires venue INI settings PR

allow other plugins (like magstock) to override sections of agreement without needing to paste the entire agreement.html here.

now includes all of @cybersenshi's updated text (but not styling), it appears to work great. if this is what we go for, take the rest of @cybersenshi's stuff from magfest/magstock#64 and put it in here.

an example of a PR that overrides is here: magfest/magstock#65

downstream plugins can also turn off sections by blanking them out, for instance if we didn't want to have a merch section, you can do: {% block band_text_merch %}{% endblock %}

- turn parts of the band agreement into blocks for extending via plugins
- requires venue INI settings PR
 - for overridding by downstream plugins, like magstock
@binary1230 binary1230 changed the title convert band agreement into blocks (WIP, proof of concept) add magstock-specific info into band agreement blocks May 17, 2016
@binary1230 binary1230 changed the title add magstock-specific info into band agreement blocks convert band agreement page into blocks, for overriding in downstream plugins May 17, 2016
@kitsuta

kitsuta commented May 17, 2016

Copy link
Copy Markdown
Contributor

+1, good use of Django templating. Much nicer than a hundred includes.

@binary1230

Copy link
Copy Markdown
Contributor Author

meetig with chaney, TODO: this is the new form stuff, needs to go back to the old form stuff

<h3>
Your Information
</h3>
<form method="post" action="agreement" class="form-horizontal" role="form">

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cybersenshi notes that this form here is actually the new styling and we need to put back in the old styling for this PR

- revert Chaney's WIP formatting I accidentally pulled in, use original
@binary1230

Copy link
Copy Markdown
Contributor Author

OK, this form now has the original styling back in, so should be good to go. Looks good locally. @cybersenshi plz give this a review and when you +1, it's ready to merge.

After, merge #28

@cybersenshi

Copy link
Copy Markdown

+1

@binary1230
binary1230 merged commit 9c7a9a4 into master May 20, 2016
@binary1230
binary1230 deleted the blockify_band_agreement branch May 20, 2016 10:52
@EliAndrewC

Copy link
Copy Markdown
Contributor

+1 (belatedly)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants