Custom Block to create HTML table rows and data

Permalink
I would like to build a block that creates new table rows while allowing the user to easily populate each row with its respective data.

Here is the example:

http://www.adventurecompany.co.uk/tours/everest-base-camp/prices...

I am interested in adding the date range in the first column for each of the trips. Potentially there could be a change in prices and duration. The final column needs to grab the date ranges, trip name and cost and populate a contact form.

I am not sure what approach to take in building this? Any ideas?

 
pricecheaper replied on at Permalink Reply
I thought about creating a block which will consist of a table builder, so the admin can create the table and once happy with it, I can copy the data into a content block? I thought about some of the following jQuery (see example -http://jsfiddle.net/FAdQp/11/) to create the table rows. So I would be using the table builder approach and then when the user wanted to edit the content they would have to edit the content block manually. So its not a great solution.
JohntheFish replied on at Permalink Reply
JohntheFish
There are several table and data displaying addons in the marketplace. There are also addons like my own structured content that can display tables and then Designer Content where you can create pretty much whatever you want.

What is it about your requirement that cant be solved with one of these, either directly, or with a customised view template?
pricecheaper replied on at Permalink Reply
Designer content asks for the set amount of elements. What if i need to create a table of 20 dates? I cant possibly work out how many the user will want? Im asking a business process question also, what ii the best way to input multiple date ranges as per the example i gave. I am still unsure...

From an input perspective its going to be a nightmare to add the date ranges and the various values.
JohntheFish replied on at Permalink Reply
JohntheFish
With the designer content way of doing it, you could:

a) create a block for one 'row' and the enter multiple blocks.

b) modify the block edit, view and controller and data generated for expanding rows.
chris123uk replied on at Permalink Reply
chris123uk
does anyone have a link to a tutorial to add dynamic jquery rows to a blocks edit popup window? so we can handle new rows without adding a designer content block every time?

I have been wanting to do this for some time. i have even looked into other blocks that already have this feature e.g:http://www.concrete5.org/marketplace/addons/manual-nav/...

but i get lost in the code! waaa :S
JohntheFish replied on at Permalink Reply
JohntheFish
chris123uk replied on at Permalink Reply
chris123uk
thanks