Commit graph

2553 commits

Author SHA1 Message Date
Serafeim Papastefanos
489f219de6 Add comment to remember why the tag is outside ...
compress.
2014-04-01 00:53:44 +03:00
Serafeim Papastefanos
8ea27f4571 Remove {% get_localized_datepicker_js %} from ...
{% compress %} tag to enable offline compression
2014-04-01 00:48:31 +03:00
Matt Westcott
14e15f6656 Fall back on username in moderation panel if full name not defined 2014-03-31 16:39:58 +01:00
Matt Westcott
5e373937eb changelog/contributors update 2014-03-31 11:49:57 +01:00
Matt Westcott
325b61f212 Add clarifying comment to the change_user_perm line 2014-03-31 11:34:54 +01:00
Matt Westcott
f309696ab7 Merge branch 'master' of https://github.com/v1kku/wagtail into v1kku-master
Conflicts:
	wagtail/wagtailusers/views/users.py
2014-03-31 11:32:33 +01:00
Serafeim Papastefanos
d85cd46f92 Include datepicker translations (fixes #167)
This includes all available translations for datepicker (version 1.10.3).
It also contains a list of all available translations in order to check
that the translation exists before including the translation file.
Finally, it puts the <script> for the translation inside the {% compress
%} tag.
2014-03-30 12:30:36 +03:00
Dave Cranwell
6603a9e761 Merge branch 'master' of github.com:torchbox/wagtail 2014-03-28 17:12:24 +00:00
Dave Cranwell
fd4697f677 sped up userbar fadein 2014-03-28 17:12:16 +00:00
Dave Cranwell
4821c56503 resolved merge conflicts 2014-03-28 17:10:47 +00:00
Dave Cranwell
207b28f1af added title tag to ellipsis items in edit page breadcrumb 2014-03-28 17:08:23 +00:00
Dave Cranwell
3261e1a268 view draft/view live now simply draft/live 2014-03-28 17:07:26 +00:00
Dave Cranwell
36ca7cb741 Updated breadcrumb and explorer style. Added vary_on_headers wherever ajax search results are returned. Added icons to headers where previously missed. 2014-03-28 17:05:29 +00:00
Matt Westcott
20da2468d2 Merge branch 'master' of github.com:torchbox/wagtail 2014-03-28 14:27:16 +00:00
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