Closed (fixed)
Project:
Webform
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 May 2012 at 16:45 UTC
Updated:
5 May 2014 at 14:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jeremymcminn commentedI assume it is to do with this code here on webform.components.inc - not sure how to adda different class to the edit, clone or delete links though
Comment #2
jeremymcminn commentedFor example purposes, this is what it would look like
Comment #3
jeremymcminn commentedThis is what I did to add classes to the links
Then I added the following CSS
The link format seems to have changed though
Rather than this link
wtresafasfasf/webform/components/1?destination=node/237/webform/components%3Fcid%3D1it returns
wtresafasfasf/webform/components/1Is that a problem?
Comment #4
jeremymcminn commentedThis was the end result
Comment #5
quicksketchYou can do this by overriding theme_webform_components_form() in your theme, but that function is a monster. I'd be happy to just add these classes to the module directly (though they should probably be prefixed with "webform-").
Comment #6
jeremymcminn commentedThanks quicksketch. I think adding the classes direct would be good, not sure if how I did it is the best way but it seems to work.
Comment #7
carlhinton commentedThe webform classes module http://drupal.org/project/webform-classes allows you to add classes onto components
Comment #8
quicksketchI've committed this patch which adds classes for the 4.x version of the module. We probably don't need a backport for this at this point.
Comment #10
fenstratNeeds porting to 8.x-4.x.
Comment #11
fenstratCommitted and pushed 39e2165 to 8.x-4.x. Thanks!