Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 1.6 KB

TODO.pod

File metadata and controls

53 lines (32 loc) · 1.6 KB

TODO for Dancer::Plugin::SimpleCRUD

Before declaring stable

Tidy up and refactor where possible.

It's a bit of a mess at the moment.

Understand Dancer's route prefix option

If called after using Dancer's prefix keyword, links to add/edit records will be broken, as it doesn't know that a prefix will be added.

Use quick_update() etc from Dancer::Plugin::Database

Where possible, use Dancer::Plugin::Database's new quick_*() methods rather than generating queries ourselves.

Later

Option to make the list page handler return template-ready params

Provide option to make list page handler return template-ready params instead of plain HTML, for those who want to customise the page a lot more.

Support more databases

Refactor _find_columns() to work in a DB-agnostic way, and support other databases - PostgreSQL? SQLite? DBIC?

Show message when an entry has been created/edited/deleted

At the moment we just send the user back to the list page, we should probably show a "Record {added,updated,deleted}" message to make it clear it was successful.

Option to present form in facebox div?

Maybe add the option for the add/edit form to be presented within a "popup div" using Facebox, rather than as a standalone page. (When the form is submitted, it could need to reload the list page afterwards, or we could allow that to be done via an AJAX call too)

Automatic password confirmation

If we recognise a field as a password field, present a "Type your password again" box, and add code to validate that the passwords match.

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 25:

=over without closing =back