"Mike Kent" <[EMAIL PROTECTED]> writes:

> Do we have any way to change the value of the submit button on the
> add/update form of a DataController?  Right now, it always says "Submit
> Query", which is inappropriate.  We can change the appearance of the
> form by use of a custom template that links in our own CSS, but the
> value of a submit button is not something changeable via CSS.

You can:

    - make the button hidden

    - create a new button (using widgets)

This will make the standard button disappear and the new button will be there
with the name you provided it.

> If we have no access to changing this value, can a DataController be
> made smart enough to change it for us?  For example, "Add" for an add
> form, and "Update" for an update form.

And how would it know the context?  We can call the method anything we want
and we can use the same form in more than one method...

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to