When you browse to cobbler's Web UI and click SYSTEM  -> ADD
you load the following  file (cheetah template)
/usr/share/cobbler/webui_templates/system_edit.tmpl

I'm trying to modify this file to do the following:

Instead of having a single  "Kickstart Metadata" field, when you
enter, for example, foo=bar,
I want to have serveral fields that assign specific attributes with
the values entered.

For example:

Hardware Platform:  poweredgem600
Location: QA

When you hit submit, I want ksmeta to be assigned to hw=poweredgem600,
loc=QA, etc.
Note: I chose hw and loc as the attributes, it's not supplied in the field.

Can this be done?
If so, how?

I tried the following with no success:

</td>
    <td>
    <input type="text" size="255" style="width: 400px;" name="ksmeta"
id="ksmeta"
        #if $system
            value="hw=$system.ks_meta"
        #end if
    />

I also tried
value="hw=" . "$system.ks_meta"

But nothing seems to work.

Any ideas?

Thanks,

Paul
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to