Active
Project:
Timesaver
Version:
6.x-1.0-rc3
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2011 at 20:02 UTC
Updated:
17 Mar 2011 at 02:08 UTC
Jump to comment: Most recent file
Based on advice re simplify, one must hide unused fields in CSS.
I've noticed however that the headings all have the same class assigned.
It needs to be assigned a (additional) unique css class per field heading - could be same as for field.
PS: When do you expect to add the ability to configure which fields are visible?
Thanks for the great work!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | timesaver_templates_wclasses.zip | 2.12 KB | SiteMaster.ServeLime.com |
Comments
Comment #1
_randy commentedGood point -- right now the only way to do so would be to add the css to each column explicitly in the template files.
Configurable fields is something I would like to put into a future release. I would like to roll in some updates to Timesaver and make it a 1.0 release and then have configurable fields as a 1.1 release.
Comment #2
SiteMaster.ServeLime.com commentedHow about simply adding them into the templates for now.
I've attached my attempt to do so.
PS: Please add a 1-liner explanation of the purpose of each field to the readme.txt + on the project page.
Comment #3
SiteMaster.ServeLime.com commentedFor the Weekly & Grand totals, I'm stumped on figuring out where to assign classes to the fields.
Please post how-to on where to apply classes for Totals & Grand, to style/hide specific columns.
Assuming the Dev snapshot is stable, can you please update the Dev snapshot with the classes.
Thanks
Comment #4
_randy commentedNot sure I can get to this before DrupalCon Chicago. It's on my to-do list.
Comment #5
SiteMaster.ServeLime.com commentedFor the totals, i was thinking something...
Add a heading as a class name (replacing space -> underscore).
That should do the trick for the iterative totals.
Can you throw that into the build at least?
Thanx
Comment #6
SiteMaster.ServeLime.com commentedI've managed to update the footer function in timesaver.module in timesaver-6.x-1.0-rc3.
The classes added are simple field-counters: (should be the field-names though)
- Sub-Totals: ts-subN (N:1-14)
- Grand-Totals: ts-grandN (N:1-14)
Function modified as highlighted in bold:
Added $fieldno here
Added $fieldno here
Comment #7
MM10 commentedI need a bit more than footer changes. I guess I'll hold out for configurable fields, haven't figured out the best way to assign classes for the rest of the table.
Hope you enjoyed DrupalCon!
Comment #8
_randy commented@SiteMaster.ServeLime.com -- good start on that. I'll review the code and see if there's anything else i can think of to tweak in it.
@MM10 -- the tpl.php files store the output templates for the timesheet. adding your css classes to those files should help you hide/unhide columns.
Comment #9
SiteMaster.ServeLime.com commentedI posted my attempt at adding classes to the tpl files as a zip file in my earlier comment of February 28, 2011 at 9:00pm.
Comment #10
MM10 commentedOf course- thanks SiteMaster.Serv!