List filter render as buttons or icons with labels

vaguemind

Vaguemind
Hello, i have a list and i doo a filter by element called status ( open, onhold, closed ) .. i need to filter the list not render as dropdown , but to show all this status fields as buttons or icons , once press on (Open Button ) filter all Open records only ? how can i do this ?

also how can i make an element for average time to finish the task (record) , is timer element the right thing ?

and in the details of record i need to make it designed like the photo attached , any suggestions pls ?
 

Attachments

  • bookingstatus.jpg
    bookingstatus.jpg
    110.9 KB · Views: 174
  • bookingstatus2.jpg
    bookingstatus2.jpg
    84.9 KB · Views: 167
This would only be available for the current github code, where we can now use JLayouts to override the checkbox filter.
I've added an explanation to the wiki on how to go about doing this here:
http://fabrikar.com/forums/index.php?wiki/jlayouts/#example

For the others its probably best to post one thread per question, to keep the discussion readable...
For the timer question I would need to know more about how you are setting up your tables. Is the timer in the task record, or can you have multiple timers per task?

For the custom templates you should familiarise yourself with the wiki's info for designers, specifically http://www.fabrikar.com/forums/index.php?wiki/form-and-details-templates/
 
ya i updated yesterday , and i saw u made a new commit today , so i updated now also , but the filter checkbox still appears as it is , not buttons .. note that the element is dbjoin , is it affected ??
 
The wiki entry is slightly wrong, the file needs to be named fabrik-element-dropdown-list-filter-checkbox.php.

I modified the wiki entry, although it could probably still be worded better.

Here's the example override working on my test site:

http://screencast.com/t/mM9AmtDgRgP

-- hugh
 
I did it and worked, but this file fabrik-list-dropdown-list-filter-checkbox.php with that code must be placed on this path: plugins/fabrik_element/{elements_plugin}/layouts/{layout_file}.

But I have a question , how can I change button colour and also show the count number in this button like : 5 open , 3 closed , etc

Sent from my Lenovo A6000 using Tapatalk
 
Are you sure you have the latest github? We added the ability to override on a per-element name basis in the templates folder a day or two ago. Putting it in the plugins folder will override it for ALL elements of that type. Putting it in the named folder given in the example will only override for that specific element name.

Here's a screenshot of my Eclipse setup, where you can see the file in the templates location, under the named element folder fab_junk___dd.

http://screencast.com/t/TTFmt7EzqpR

To change colors, you'd have to add a custom CSS to your form and whatever classes you need to the layout.

To do counts, you'd need some Javascript.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top