Hello,

I'm working on a plugin to support openstack v3 which can be found at 
https://github.com/achevalet/foreman_openstack_v3.
Initially I've patched foreman (see pr #4254 
<https://github.com/theforeman/foreman/pull/4254>) then I decided to write 
a plugin so that it can be available faster and back-ported to older 
releases.

I'm able to override the default provider model but it still uses the 
built-in form (app/views/compute_resources/form/_openstack.html.erb)
I've tried to update the compute resource controller (ie Add New Controller 
Action 
<http://projects.theforeman.org/projects/foreman/wiki/How_to_Create_a_Plugin#Add-New-Controller-Action>
 
or Extending a Controller <goog_2083102707> or Add New View 
<http://projects.theforeman.org/projects/foreman/wiki/How_to_Create_a_Plugin#Add-New-View>)
 
or also using deface 
<http://projects.theforeman.org/projects/foreman/wiki/How_to_Create_a_Plugin#Modify-Existing-Foreman-View-using-Deface>without
 
success.

My current (dirty) workaround is to rename the built-in form 
(app/views/compute_resources/form/_openstack.html.erb.ori) and create this 
file at the same location within the plugin.
I'm wondering if there is a way to change the search path of the forms to 
have the plugin directory before the built-in one? 

Or any other solution?

Any help would be much appreciated.

Cheers,
Anthony

-- 
You received this message because you are subscribed to the Google Groups 
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to