Reputation: 7270
With ActiveScaffold I have a group on my create form:
config.create.columns.add_subgroup "Customer" do |customer_group|
customer_group.add :customer_surname, :customer_postcode
end
This has a Show/Hide link which I don't want. How do I remove the Show/Hide links on a subgroup in ActiveScaffold?
Upvotes: 0
Views: 729
Reputation: 1820
You could use a css rule like:
a.visibility-toggle { display: none; }
You'll probably want to scope the css selector more finely to only hide the specific sub-group toggles.
Upvotes: 1
Reputation: 1400
There is no setting for that (at the time of writing). You have to patch it yourself.
The code is in the helper method link_to_visibility_toggle
in the file lib/active_scaffold/helpers/view_helpers.rb
of Active Scaffold.
Upvotes: 1