I have reviewed the contents of
http://wiki.github.com/radiant/radiant/modifying-the-page-ui in depth.
I have extension that modifies the user model to be attached to
something called a program, and I've made the change in the DB, and
modified the user model in my extension code like so:
User && class User < ActiveRecord::Base
so that the association will be there.
Now, I would like to be able to display and edit program assignments for
a given user in the admin. UI.
In my extension's "activate" method, I added the following lines in the
hopes of customizing the UI:
admin.user.edit.form << 'edit_program'
admin.user.index.thead << 'program_header'
admin.user.index.tbody << 'program_cell'
thinking that the display of the user admin was super dynamic and it
would just figure out how to display the edit components based on
But when I try to look at the index view of users, I get:
"`program_header' default partial not found! `program_cell' default
partial not found!" as errors in the index display.
`edit_program' default partial not found! as an error in the edit display.
After looking into it, though, I see the admin/users/edit and
admin/users/index views under the Radiant core are more or less
hard-coded at the column level, but the error messages imply that I
should be able to add a partial somewhere for my custom fields.
What is the preferred way to customize at this level?
Do I need to just override the entire edit and index views?