Commit graph

542 commits

Author SHA1 Message Date
Serafeim Papastefanos
521b1c47a1 Add requirements to setup.py
New requirements: Unidecode to help into converting unicode text to slugs
(also used in img-proc-backends). unicodecsv to extract UTF-8 CSVs.
2014-03-23 19:21:47 +02:00
Serafeim Papastefanos
c270aa10a1 Integrate wagtailforms to wagtailadmin_nav 2014-03-23 11:00:17 +02:00
Serafeim Papastefanos
cf3883cb22 Add submit date from/to filter for form submission 2014-03-23 00:30:33 +02:00
Serafeim Papastefanos
016511eb85 Add pagination to form submissions view 2014-03-22 18:32:28 +02:00
Serafeim Papastefanos
2a4c371f51 Change pagination_nav.html to work without linkurl
pagination_nav.html received a linkurl parameter which has to be a url
name that get resolved to generate the link for next/previous. The thing
is that if the url to be resolved had parameters, these wouldn't be passed
and an exception would be thrown when trying to resolve it. A quick and
dirty fix is to just use {% url linkurl as link_to_use %} so link_to_use
will be empty and the currrent page url will be used.
2014-03-22 18:23:16 +02:00
Serafeim Papastefanos
e3cb37ca72 Add basic form submission views
Add two urls: index which lists all different forms that have been defined
and submissions which for a specific form will list all its submissions.

The index lists each Page seperately (so if we have two different
instances of a form they will be listed seperately here), so the
submissions view will need the app_label, model_name and id to find out
all the submissions of a specific page.
2014-03-22 13:38:37 +02:00
Serafeim Papastefanos
49a1ef3079 Add a basic views skeleton for wagtailforms 2014-03-22 09:45:49 +02:00
Serafeim Papastefanos
3855da21bf Add metaclass for AbstractForm and validate ...
FormEmailProcessor.

The metaclass is used to add each non-abstract form in a registry in a
similar way as for Pages. It also checks if an form_processing_backend is
defined and if it is it will call its validate_usage method. This way, the
validate_usage method can throw immediately and ImproperlyConfigured
method so the developer would know if he's done something wrong.

The validate_usage method of the FormEmailProcessor has been implemented
this way.
2014-03-22 09:40:40 +02:00
Serafeim Papastefanos
680119dfef Make from_address optional in send_email_task 2014-03-22 08:18:53 +02:00
Serafeim Papastefanos
9557bc6605 Add first version of send form data to email
This has been added in a generic way to allow defining form processing
backends. Sending the form data to an email is one of these backends -
others may include for instance call a web service with the form data (for
instance in a customer complains form we'd need to start a customer
complains workflow).

In any case, if the AbstractForm has a 'form_processing_backend'
attribute which should be a class, a new object of that class will be
generated and its process method will be called. The process method needs
two argumetns: The Page to pass any needed paramaters and the form to
actually pass the form data.

The form processing backends should inherit from the BaseFormProcessor
class (however probably this will be refactored to just use duck-typing
since I don't think that a base class offers anything here) and implement
the process method. Also, another useful method would be the
validate_usage to be called from the Form that uses the backend and
actually check that the form defines the correct fields - an example is
that for the email processor we need to define an email_to field in the
form. The validate_usage would need to raise an ImproperlyConfigured
exception if it has not been configured yet, however it has not been yet
implemented.
2014-03-21 23:53:22 +02:00
Serafeim Papastefanos
b6aca526da Add generic send_email task in wagtailadmin.tasks
This will be used from the send form data to email. It has been added to
the wagtailadmin.tasks module to use celery if it has been defined and
configured or just send the email if not (just like the
send_notification task).
2014-03-21 23:44:44 +02:00
Serafeim Papastefanos
92563ff535 Add form builder and the basic form workflow
also add the implementation of all form field types. The form will save
the submitted data to the database (using the FormSubmission) model.
2014-03-20 23:04:44 +02:00
Serafeim Papastefanos
a3b7259f98 Add a basic skeleton for Wagtail form builder 2014-03-20 15:58:02 +02:00
Dave Cranwell
ccfde52b08 iframe now hidden and faded in when loaded, for browsers with postMessage capability 2014-03-19 13:55:01 +00:00
Dave Cranwell
82158a49db userbar embed code now separated into own file, with postmessage enabled to allow cross-frame coms to adapt frame height 2014-03-19 13:50:18 +00:00
Dave Cranwell
cbe4ce2913 fonts and javascript libs no longer loaded from CDNs 2014-03-19 12:29:12 +00:00
Dave Cranwell
83a5455251 old reference to edit bird removed. wagtail set to use offline js libs to avoid internet outage issues for local/intranet builds. Tweaks to way userbar is added to page to ensure resulting html is still valid 2014-03-19 11:37:57 +00:00
Dave Cranwell
e29b52f35e Merge branch 'feature/edit-bird' 2014-03-18 17:05:09 +00:00
Dave Cranwell
876a2c42bc removed debugging comments 2014-03-18 17:04:54 +00:00
Dave Cranwell
8e303e2410 Merge branch 'feature/edit-bird' 2014-03-18 17:00:33 +00:00
Dave Cranwell
fa94df6b03 tweak to alignment of text 2014-03-18 16:56:53 +00:00
Dave Cranwell
5e17881f2d renamed all userbar templates to be more uniform and changed 'edit bird' to 'userbar' throughout 2014-03-18 16:53:56 +00:00
Matt Westcott
4702ef0acb Merge branch 'master' of https://github.com/spapas/wagtail into spapas-master 2014-03-18 12:45:10 +00:00
Dave Cranwell
d61ac002c0 updated animation and js requirements 2014-03-18 12:08:23 +00:00
Matt Westcott
39566a898d Use relative paths for static-root / css-root - fixes #134
Using paths like /static/wagtailadmin/images/ in our SCSS breaks when a STATIC_URL
other than /static/ is in use - for example, when static assets are hosted on an
external domain. However, django-compressor consistently puts the compiled CSS
at ${STATIC_URL}/CACHE/css/ regardless of operation mode, so we can reliably use
../../ to reach the correct STATIC_URL.
2014-03-17 10:16:22 +01:00
Serafeim Papastefanos
8e82804b2b Remove duplicate ugettext_lazy 2014-03-14 23:49:00 +02:00
Serafeim Papastefanos
a7a511e1a5 Add more translations + fix #141 2014-03-14 23:37:11 +02:00
Tom Dyson
c2185dd6d2 Add basic Docker instructions to docs 2014-03-13 21:14:40 +00:00
Dave Cranwell
3eeb38183c removed unused load of gravatar 2014-03-13 17:24:39 +00:00
Dave Cranwell
7ec990b23e added page type column to pages awaiting moderation on dashboard 2014-03-13 17:24:07 +00:00
Dave Cranwell
c5e4dd94c4 removed unused import of edit_bird (now userbar) 2014-03-13 17:20:55 +00:00
Dave Cranwell
5b02395667 page status tags on homepage 'recent edits' list now link through to live pages, when appropriate 2014-03-13 17:03:38 +00:00
Dave Cranwell
5a4caabd44 clicking user bar buttons now redirects parent page 2014-03-13 16:47:20 +00:00
Dave Cranwell
637899f6c2 implemented moderation user buttons the same as edit button 2014-03-13 16:20:53 +00:00
Dave Cranwell
edd757c578 first commit of karl's code, refactored to appear within an iframe 2014-03-13 15:04:17 +00:00
Neal Todd
6ee66b5a7d Heading fix 2014-03-13 10:52:23 +00:00
Neal Todd
1a47bc6f61 Added docs for removing the demo app to complement the Debian/Ubuntu installs. 2014-03-13 10:49:36 +00:00
Neal Todd
46a00aa269 Updated Getting Started
(plus random query string on PyPI badge to purge github CDN cache of 0.1)
2014-03-13 10:21:56 +00:00
Karl Hobley
4e67491bda Edit bird now checks if the user has permission to access admin and edit the page before displaying edit page option 2014-03-12 16:53:43 +00:00
Karl Hobley
91faf4fd5f Edit bird: Clean up render method of EditPageItem 2014-03-12 16:03:21 +00:00
Karl Hobley
cf759dbb2f Don't render edit bird if user is not logged in 2014-03-12 15:40:34 +00:00
Karl Hobley
ffeb98b03c Removed disable_cache from wagtail_edit_bird_tag
This was used to disable caching when the edit bird was rendered.
It is no longer needed.
2014-03-12 14:05:56 +00:00
Karl Hobley
ee5d6b8a2c Added edit bird to moderation views 2014-03-12 13:59:54 +00:00
Karl Hobley
9012baccf1 Added edit bird 2014-03-12 13:59:13 +00:00
Neal Todd
d3adc33453 Back to pip wand
Travis VM can't find the python-wand apt-package. But the VM does include ImageMagick automatically so see if this is enough or whether libmagickwand-dev apt package is needed for any other dependencies.
2014-03-12 10:17:40 +00:00
Neal Todd
66c35c1cca Apt installs do need to run with sudo 2014-03-12 10:06:34 +00:00
Neal Todd
8573dde60e Use python-wand apt package for testing
which includes all dependencies (e.g. ImageMagick)
2014-03-12 09:56:27 +00:00
Neal Todd
3c6f76af5e Bumping Django version to 1.6.2 and adding Wand package 2014-03-12 09:45:45 +00:00
Tom Dyson
dc2147013a auto doc builder notes 2014-03-11 17:39:13 +00:00
Tom Dyson
71c78a53d6 Roadmap update and auto doc builder 2014-03-11 17:39:13 +00:00