-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(tup-308): working form plugin (aka tup-230) #498
Conversation
The django-forms(-maintained) plugin expects jquery with ajax features. Our CMS was using a slim build of jQuery. The size difference is 17KB, which I consider negligible.
- less changes form original - sometimes the original html was better for styling
Also, no button styling yet.
Pointer file mimics what I do for blog CSS, which is also in source.
Not a straight clone of #500. I added a little CSS and a small document to avoid cloning one template. See: - default.html.md - django.cms.forms.css
I use a different solution than #501. In #501, markup was changed to "(require)": https://github.com/TACC/Core-CMS/blob/5f63bdf/taccsite_cms/templates/djangocms_forms/form_template/default.html#L27 But here, I do not edit the markup, so no need to clone template: https://github.com/TACC/Core-CMS/blob/8a46a21/taccsite_cms/templates/djangocms_forms/form_template/default.html.md
- bigger gap between single checkbox and input - add gap between multiple checkbox and input - align multiple checkbox and input - simpler, less specific checkbox label selector - remove undesired label margin* * This style was ineffectual—good—in 3.6, but "fixed"—bad—when ported.
- limit which help text gets margin - remove ineffectual, unnecessary margin removal - bigger gap between single checkbox and input - align single checkbox and input - add gap between multiple checkbox and input - align multiple checkbox and input - remove label margin on last of multiple checkboxes/radios - simpler, less specific checkbox label selector - remove undesired label margin* * This style was ineffectual—good—in 3.6, but "fixed"—bad—when ported.
ba992c8
to
803c354
Compare
…Core-CMS into task/tup-230-make-form-plugin-work
taccsite_cms/static/site_cms/css/src/_imports/components/django.cms.forms.css
Outdated
Show resolved
Hide resolved
taccsite_cms/templates/djangocms_forms/email_template/email.html
Outdated
Show resolved
Hide resolved
1. Only let users export with supported formats. 2. Update form version to rev. that supports this. Source: avryhof/djangocms-forms#8
34f51d6
to
07e1fab
Compare
- remove unedited cloned template - update commit in a comment
I forgot to delete this file earlier.
The removal happens form a merged PR on the plugin: avryhof/djangocms-forms#12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New Since #500
taccsite_cms/static/site_cms/css/src/_imports/components/django.cms.forms.css
Show resolved
Hide resolved
taccsite_cms/static/site_cms/css/src/_imports/components/django.cms.forms.css
Show resolved
Hide resolved
The colors are also added in #498.
This is needed for buttons to appear right on CMS. Source: #498
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Nice work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM codewise. I'll go test the deployed forms as well.
Overview
Update and configure form plugin to work.
Related
Changes
django-recaptcha
djangocms-forms
withdjangocms-forms-maintained
c-button
styles (just a little)* I use Frontera colors only until we have standard form design. M.S. knows he has this task, and has screenshots to work know what all needs to be designed.
Testing
Remote Test Pages:
Create, Edit, Use:
but choose save to database, not send e-mail.1
Administration:
UI
Forms on Servers To Which I Deployed
Footnotes
E-mail feature is delayed until I have bandwidth to research it and configure or fix it. ↩
The success message, for editors only, is at the top center of screen white on black (a
.cms_message
). This does not happen when a user submits, or while editor is seeing it as "View published". ↩ ↩2 ↩3There should only be options "None" and "Recaptcha"; choose "Recaptcha". ↩