Commit graph

939 commits

Author SHA1 Message Date
Matt Westcott
cc3bad0ce1 Forcibly delete the sessionid cookie on logout.
This means that we can use its absence as an indication that front-end requests are being made by a non-logged-in user and are thus safe to cache (i.e. don't include the editor toolbar).
2014-03-28 14:26:09 +00:00
Dave Cranwell
80a2864017 quality of userbar js improved. also now checking origin to prevent postmessage listener trying to act on messages from other domains e.g vimeo 2014-03-28 10:57:47 +00:00
Matt Westcott
341cacea54 Unit tests for new page serve methods introduced in #144 2014-03-26 17:04:01 +00:00
Miguel Vieira
71ac0ac658 Added template tag slugurl
Added a new tag that returns a page URL according to the page slug.
2014-03-26 16:27:12 +00:00
Matt Westcott
0157d4fb94 Merge branch 'page-changes' of https://github.com/kaedroho/wagtail into kaedroho-page-changes 2014-03-26 16:11:18 +00:00
Matt Westcott
42867786b1 Merge branch 'master' of github.com:torchbox/wagtail 2014-03-26 15:47:52 +00:00
Matt Westcott
4f793d3a1e changelog item for #152 2014-03-26 15:47:23 +00:00
Matt Westcott
77cf58c024 Merge branch 'master' of https://github.com/utek/wagtail into utek-master 2014-03-26 15:34:44 +00:00
Matt Westcott
3d889e02b3 Merge pull request #162 from spapas/master
Add more translations
2014-03-26 15:10:24 +00:00
Matt Westcott
9fdf2f4f27 Changelog additions 2014-03-26 14:42:49 +00:00
Matt Westcott
509f5a37b2 Skip image backend tests for wand if wand is not installed 2014-03-26 13:56:40 +00:00
Matt Westcott
f85c2e76a9 correct NotImplementedError messages in wagtailimages/backends/base.py 2014-03-26 13:23:32 +00:00
Matt Westcott
1a28b572c2 Merge branch 'img-proc-backends' of https://github.com/spapas/wagtail into spapas-img-proc-backends 2014-03-26 13:19:59 +00:00
Lukasz 'utek' Boldys
499798da7a Removing compress tag 2014-03-25 17:58:47 +01:00
Tom Dyson
bddb958444 Merge pull request #164 from chrxr/master
Added editors guide docs
2014-03-25 14:39:13 +00:00
chrxr
4e0637a233 added editors guide docs 2014-03-25 14:14:18 +00:00
Serafeim Papastefanos
f4faa3ecd7 Add more translations 2014-03-25 12:32:23 +02:00
Victor Munene
8e7cb95012 Patched the migrations and wagtailusers app to add better support for custom AUTH_USER_MODEL 2014-03-25 02:43:29 +03:00
Tom Dyson
d562659fff New-style format needs numerical placeholders 2014-03-24 09:38:03 +00:00
Serafeim Papastefanos
9d65be0d66 Add export to CSV support for form submissions and
convert form submissions to have a generic relation with the specific Form
for which they were created instead of a Page.
2014-03-23 19:26:00 +02:00
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
utek
c497e8f72b Merge branch 'master' of http://github.com/torchbox/wagtail 2014-03-21 09:53:38 +01: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
279450abbd tweaking userbar to suit slight alteration to icon layout behaviour in this branch 2014-03-18 17:30:02 +00:00
Dave Cranwell
29a86ec3df Merge branch 'master' into ben-design-change 2014-03-18 17:06:06 +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
7c48546825 Merge branch 'master' into ben-design-change 2014-03-18 17:01: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
Dave Cranwell
d9d631c5b3 fixing horizontal position 2014-03-18 13:51:41 +00:00
Dave Cranwell
b79aeb5ff8 updated horizontal rule icon to use a more appropriate char 2014-03-18 13:49:32 +00:00
Dave Cranwell
29e1e22853 forgot to translate strings added in my previous commit 2014-03-18 12:48:58 +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