Actions
Bug #15464
closedPagelets should be keyed by the partial they appear on
Description
Now the key is "#{controller}/#{action}" which forces people that want to use this extension point to know the actions the partial is used in.
For example:
assume a pagelet placeholder in hosts/_form.html.erb:
render_pagelets_for(:main_tab_fields, :host => @host, :form => f)
In order to add content to this pagelet, you have to register your pagelet for multiple actions:
%w(hosts/new hosts/edit hosts/process_hostgroup).each do |action| mgr = Pagelets::Manager.new action mgr.add_pagelet :main_tab_fields, :partial => 'hosts/puppet/main_tab_fields', :priority => 100 end
Updated by Dominic Cleal over 8 years ago
- Related to Feature #12716: As a foreman developer I'd like to have way of extending the data returned from smart proxy api. added
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ondřej Pražák
- Pull request https://github.com/theforeman/foreman/pull/3608 added
Updated by Ondřej Pražák over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 49cfbd4512d099289f7ba7e72c59466b4e5a7801.
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release set to 160
Actions