===== TODOs ===== Based on the MoSCoW principle. Must haves and should haves are planned to be worked on. * Features/issues marked with plus (+) are implemented/solved. * Features/issues marked with minus (-) are yet to be implemented. Must haves ========== Regarding the form wizards -------------------------- + Finish form wizard handler plugins. + Copy form handler functionality into form wizard handler functionality. + Change management interface to be able to add form wizard handlers to the form wizard. This includes all views for changes, such as add form-wizard handler and urls. + Create models for form-wizard handler models. - Find out if `db_store` views `view_saved_form_data_entries` and `view_saved_form_handler_data_entries` should be protected. Perhaps, in case of private forms/wizards, they should be visible to author only, while being visible to everyone in case of public forms/wizards. + Update `fobi_update_plugin_data` module with form-wizard. + Make sure to update the MANIFEST.in to include all additional templates. + Find a way to handle duplicates in saved form data in wizards (if labels are same within a couple of forms of the wizard). + Add link/switch between forms and form wizards in the main template and separate listing templates. + Make sure to include django-formtools package in the requirements. + Add navigation buttons to the form wizards. + Make sure plugin media is collected in wizards. + Add data-slider-tooltip="hide" option to the `slider`. + Ideally, it would be great to support data-slider-handle="square" (or "round", "triangle") options of the bootstrap-slider plugin. See the first issue in "Uncategorised". + Rethink the new navigation of forms and form wizards. + Fixed broken dependencies for docs. + Make sure captcha plugins are usable with form wizards (at the moment they are being invalidated on the last step). - Add support for form wizard conditions. - Add FeinCMS integration app for form wizards. - Add Django-CMS integration app for form wizards. - Add Mezzanine integration app for form wizards. - Add form wizards callbacks. - Update documentation (wizards API parts is almost not covered there). - Add selenium tests for form wizards. - Make `foundation5` and `django-admin-theme` themes to reflect the latest GUI changes (form wizards). Regarding the djangorestframework integration --------------------------------------------- + Submit form functionality. + Advanced plugins, such as file plugin. - Add image plugin. - Basic foreign key relation plugins (ForeignKey, ManyToMany, OneToMany). - Advanced foreign key relation plugins (MPTT). - Think of handling the wizards. Roadmap ------- + django-rest-framework integration. - Reusable React app to communicate with django-rest-framework integration app. Uncategorised ------------- - Implement a set of django-treebeard plugins (as an alternative to MPTT). - Implement external image plugin. - Implement the clone form functionality. - Implement the clone form wizard functionality. - Rethink templating of the integration packages (feincms_integration, djangocms_integration, mezzanine_integration), as now they are a bit of a mess. Document integration properly, if not yet done. - Add tests for import/export of forms. - Add tests for export of plugin data (db_store). - In the form element plugins, when handling submit_form_data, somehow make it possible to tell whether field returned should or should not overwrite cleaned form data value (that's mainly interesting for form wizards). - Possibly, make plugins (same as form field plugins) for the thanks page of the form wizard. - Solve the issue with session/post data when plugin on the next step wants to access data from the previous (not there should be an intermediate step for form data first to be written into the session). - Make sure form element plugin widgets allow more customisations than they do now. For instance, setting an additional class or additional data attributes should be made really easy. A must! + Finish the NoneField. + At the moment, NoneField is imported in the function scope. See if that works already to move it to global scope. + Make a basic bootstrap2 theme. + Wrap cosmetic.text value in
.
+ Redirect to thanks page, after successful post.
+ Think of themes.
+ Use twitter bootstrap3 for default theme/gui.
+ Get several class names from the active theme.
+ Write code to obtain the active theme. This requires no extra queries.
+ In the `db_store` form handler plugin, save the form headers of that moment
in the saved data.
+ Hidden field.
+ Maybe it will be done in uniquness already, but cosmetic filds should get
unique names automatically.
+ Add GUI controls to edit form page and build the core functionality.
+ Add initial value to all form elements.
+ Add form handlers to the GUI.
+ Likely remove (in the form edit view) the right sidebar and place the form
edit form instead
in order to use as much as possible of the screen.
+ Add delete form option.
+ Finish the basic dashboard. Form (existing ones), can be shown as links
there. This page is
cool enough for it. Just copy. http://getbootstrap.com/examples/jumbotron/
+ Rename cosmetic to content.
+ Add ``help_text`` option to all the form field plugins.
+ Something happened to the initial position of the form elements. Fix that.
+ At the moment, cosmetic plugins do not have the delete option.
+ Validate field uniqueness in a single form.
+ Make BaseFormFieldPlugin (subclass BaseFormElementPlugin) and implement
validation method there, which accepts the request, the form and the
form_entry object for validation. Also, in the BaseFormFieldPlugin, there
should be `name`, `required`, `help_text`, `label` fields to be present (
check other fields of Django formfield). In formfield plugins, subclass
from BaseFormFieldPlugin, instead of the BaseFormElementPlugin.
+ In the view, validate the form fields (if they are subclass of
BaseFormFieldPlugin).
+ Actually, if plugin doesn't have a form, save it immediately. Do not wait
for POST.
+ Minimise the number of SQL queries in edit form element view.
+ Positions for form elements.
+ Add `position` field to the edit form view. Add draggable interface from
jQueryUI.
+ Add nice admin text representation to db_store plugin, so that instead
of "Plugin data"
and "Form data headers", users see just nice table with results.
+ Slugify the field name (copy some func from django).
+ Group form elements (add grouping) - http://getbootstrap.com/components/#dropdowns-headers
+ Add quick overview of the fields to the form handler plugins (use
``__unicode__`` method?).
+ File upload field plugin.
+ Smartly get rid of prefetch_related in some places, since it doesn't
really optimise the queries (uses IN).
+ Implement hooks for post-processing posted data of separate plugins.
+ Rewrite the views, get rid of class based ones.
+ Base form field plugin and form.
+ Add registration templates and app to the example project.
+ Video plugin.
+ Select model object plugin.
+ Phrase "Chocolate is good" is not being well slugified (JavaScript).
+ Make sure it's possible to assign CSS and JS files to the form element
plugins.
+ Make sure the CSS and JS files from individual form element plugins are
properly collected in the theme.
+ Actually, it really makes sense to implement the widget system for
rendering the form elements. Widgets are not obligatory, but if present
are used to load assets. In that way, we can easily change the behaviour
and presentation based on the theme selected.
+ Add priority to the file handlers. For example, the ``mail`` plugin
should get a higher priority, than ``db_save`` plugin. A module
``fobi.datastructures`` with a ``SortableDict`` should be used for that.
The ``fobi.base.run_form_handlers`` function should be changed in such a way,
that it takes the ``SortableDict`` into consideration. Have a setting
defined in which the order of the form handlers is specified. All handlers
that aren't mentioned there, would be executed randomly after the
preferred list.
+ Implement the update mechanism for the form element- and form handler
entries (similar to what's done in ``django-dash``).
+ Make sure the CSS and JS files from individual form element plugins are
properly collected in the theme.
+ Compact the edit form interface for both "Bootstrap 3" and
"Foundation 5" themes, by putting the help text into a info badges (show
on hover). Also, render checkboxes using slightly different HTML.
+ Allow to restrict certain models from appearing in the
``fobi.contrib.plugins.fields.select_model_object`` list. By default allow
all models.
+ Implement drag-n-drop (ordering) for foundation 5 theme form.
+ Make sure Django 1.6 is supported.
+ Finish permissions.
+ Fix the style of the "dashboard" page for foundation 5.
+ Fix the style of the "landing" page for foundation 5.
+ Make at least 2 themes (bootstrap 3 + foundation 5).
+ As a prove of concept, write a widget for FeinCMS.
+ Custom text on the thanks page after successful form submission.
+ Add a "simple" theme, which basically has all the functionality, for
rendering the form, but isn't really styled.
+ Either finish or temporary disable the public/private functionality of
the form.
+ After "fixes" the main template doesn't seem to work well.
+ Simplify and improve data form handling in form handler plugins.
+ Fix strange thing happend to bootstrap3 layout (handler and form parts
became much wider).
+ Make it possible to view data submitted to forms you own.
+ The Django admin integration (implemented as a theme). In fact, merged into
the "simple" theme.
+ Core tests.
+ Create form tests.
+ Create form elements tests.
+ Create form handlers tests.
+ Post form data tests.
+ Improve the UI of the bootstrap 3 theme (add tabs).
+ Improve the UI of the foundation 5 theme (add tabs).
+ Improve the UI of the "simple" theme (add tabs).
+ Make sure drag-n-drop works in the "simple" theme.
+ Add anchors to the redirected URL in case of failures (tabs issue).
+ Add anchors to the "Simple" theme template (already done for "Bootstrap 3"
and "Foundation 5" theme.
+ Add "View entries" thingie (form handler tweak) to Foundation 5 and
the "Simple" themes (as it is already done in Bootstrap 3 theme).
+ In the "Simple" theme add class "default" to the submitt button. Also, rename
the button to "Save".
+ At the moment, the dashboard of the "simple" theme is not in the
django-admin design. Make it so.
+ At the moment, the create form view of the "simple" theme is not in the
django-admin design. Make it so.
+ Style the form handlers table in the edit form view.
+ Split view and edit URLs (place under "urls" sub-module).
+ Fix test "test_2004_submit_form" and "test_4001_add_form_handlers" as they
produce an error now.
+ Layout issue on edit form view (add elements) when form contains no
elements. it then looks strange, what shall be fixed.
+ Forbid adding of form elements/handlers in the admin. It should instead
be synced using the management command ``fobi_sync_plugins``.
+ Add URL field (with configurable validation).
+ Add a date time field (with configurable date format).
+ Add date field (with configurable date format).
+ Edit form element/handler - add breadcrumbs.
+ Add HTML5 fields.
+ Customisable user model.
+ Add radio button field.
+ Add password field.
+ Add styles for radio buttons (doesn't look nice in "simple" theme) or
make sure they are rendered in a Django way.
+ Make it possible to define a customa action.
+ Get rid of the ``django-dash`` specific code and replace it with what's
right for the ``django-fobi``.
+ Sort form elements and handlers alphabetically.
+ Completely polish bootstrap3 theme templates.
+ Completely polish foundation5 theme templates.
+ Completely polish simple theme templates.
+ Fix bug with non-appearing plugins (in unicode locales).
+ Delete form element tests.
+ Delete form handler tests.
+ datetime.datetime and datetime.date objects are not JSON serialisable.
Make sure they are.
+ Fix nasty bug with Bootstrap3 theme (drop-down menu for element selection
is too short, when form contains no elements yet).
+ Style the radio buttons for Bootstrap 3 and Foundation 5 themes.
+ Clean up all themes.
+ Make a working demo (at the moment fails). NOTE: Test if this is still an
issue!
+ Awesome documentation.
+ Awesome theming API. Change current one - make a theme to have all the
templates.
+ Generalise themes as much as possible.
+ Make sure nothing breaks if one or another element has invalid data.
Instead, make it possible to run `Fobi` in debug mode, where exceptions
would be raised. With ``DEBUG`` set to False (Fobi own ``DEBUG``) no
exceptions would be raised and broken fields would not be shown.
+ Add Captcha form element plugin.
+ Make tiny fixes in docs (see emails).
+ Disable HTML5 form validation in edit mode.
+ Add the following attribute to the forms in edit mode
http://www.w3schools.com/tags/att_input_formnovalidate.asp
+ Add data export features for the ``db_store`` plugin into the "simpe"
theme as well (same way as already done fore "bootstrap 3" and
"foundation 5" themes.
+ Clean up the TODOs before first release.
+ In the ``db_store`` plugin README mention that ``xlwt`` package is
required (optional) for XLS export. If not present, falls back to
CSV export.
+ Make appropriate additions to the documentation reflecting the changes
made in 0.3.5 (or 0.4).
+ Fix the CSV/XLS export in ``db_store`` for Django 1.7.
+ Nicer styling for the radio button (Bootstrap 3 theme).
+ Values of `FormElementPlugin` subclassed elements is stored in the `db_store`
plugin. Make sure it doesn't.
+ Make sure empty lines are not treated as options in the radio or list
plugins.
+ Django 1.8 support.
+ Add a quickstart documentation.
+ Make a Django-CMS dedicated theme (for the admin) using `djangocms-admin-style