[Maintain-dev] Bugs 18, 62: host entry form improvements
Dawn Keenan
dkeenan at uwaterloo.ca
Mon Oct 1 15:47:43 UTC 2007
Updating the FEText calls in HostBulkUpdateForm.php and
HostCreateForm.php in class/htdocs/forms to use data from maintain.cfg
should allow other sites to customize the host entry forms (field names
and sizes) without changing the back-end database.
In the function form_init_elements, making $conf global to the function
and changing lines like:
$ponum = new FEText(_("PO Number"));
to use a new stanza in maintain.cfg (arbitrarily called 'forms' here):
$ponum = new FEText(_($conf['forms']['ponum_name']), false,
$conf['forms']['ponum_size']);
would let each site specify field names and sizes which may be different
from the defaults, without changing the code.
--
Dawn Keenan
IST, University of Waterloo
More information about the maintain-dev
mailing list