Forum OpenACS Q&A: Response to New OpenACS website - Please test!

Collapse
Posted by Tom Jackson on

Since you are creating borders around items it might be nice to provide a generic wrapper that can easily be reused. I am working on a site that has lots of forms. I created a few simple registered tags that I could throw in above and below. If in the future I wish to change the colors or other properties, I just have to create a few gifs and a tag property.

The registered tags look like:

<formtop color="grey" bgcolor="#EEEEEE">                                                                                      
form stuff here
 
<formbottom  color="grey" bgcolor="#EEEEEE" button="button-delete" button_color="red">                                        

This generates a form that looks like http://stellardata.com/ms/form.html

This also allows you to have minimum gif image size. In addition, I have a formnobutton tag that doesn't put a button in. You can use this one when you want a regular form submit button, or when you just want to wrap some non-form content.