Wykres commitów

4076 Commity (8b3bc775d7ab7dd2132897613b73b241d728c19c)

Autor SHA1 Wiadomość Data
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
Dave Cranwell e4893a60ce added alternate search areas to main search results 2014-03-18 12:40:45 +00:00
Dave Cranwell d61ac002c0 updated animation and js requirements 2014-03-18 12:08:23 +00:00
Lukasz 'utek' Boldys 9bfa84f204 missing newline 2014-03-17 22:12:32 +01:00
Lukasz 'utek' Boldys 4766f2c266 Enable to extend admin panel with custom widgets jses and csses 2014-03-17 22:10:59 +01: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
Karl Hobley 16db4fdc7e Added get_context method to Pages 2014-03-13 19:44:11 +00:00
Karl Hobley 1cb7dcb0b2 Added ajax_template and get_template method to Pages 2014-03-13 19:42:53 +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