basic question about view/templates
Good day, probably a very basic question but i don't get the picture clear how it should be done. I already have a basic application running which collects the data from a mysql database.I'm also making use of html::table::fromdatabase to get a table view of all the selectable items. The table has been adjusted that when the user selects a row it gets pointed to a route handler. So now comes the question. How can i setup the route&view/layouts in such a way that the user is now capable of editing and updating the entries. the user gets pointed towards: /edit/.... i think i can now have the following sub: get '/edit/:client_name' =>sub { .......what's required here........?????? }; but now i'm stuck i don't know what to do. the db_table is quite simple: client_name is the key and has 3 other rows var1 string var2 string var3 string So i would like now to be able to show a page which shows the end user var1/var2/var3 and provide the possibility to update the 3 vars. Any help is appreciated.
On 14-02-15 12:59 PM, Rene Stoutjesdijk wrote:
[...] How can i setup the route&view/layouts in such a way that the user is now capable of editing and updating the entries.
Any help is appreciated.
The plugin https://metacpan.org/pod/Dancer::Plugin::SimpleCRUD pretty much looks like what you're looking for. Joy, `/anick
Hi Yanick, thx for your response. SimpleCRUD is a great tool, but for this specific thing which i want to achieve, 2 things are missing (already a topic on those are running and david is looking into it, but i need to deliver shortly so can't wait for the ultimate solution): - an additional filter possibility like a custom WHERE clause - possibility to exclude the option to add an item Please any help/tips... are welcome on the original question. thx in advance rene On Sun, Feb 16, 2014 at 12:43 AM, Yanick Champoux <yanick@babyl.dyndns.org>wrote:
On 14-02-15 12:59 PM, Rene Stoutjesdijk wrote:
[...] How can i setup the route&view/layouts in such a way that the user is
now capable of editing and updating the entries.
Any help is appreciated.
The plugin https://metacpan.org/pod/Dancer::Plugin::SimpleCRUD pretty much looks like what you're looking for.
Joy, `/anick _______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
participants (3)
-
Henk van Oers -
Rene Stoutjesdijk -
Yanick Champoux