Customizing Templates

Arvind Singh arvind at pixim.com
Wed Apr 16 17:54:31 UTC 2003


I tried to make one property as hiddenin templates, but it always reset the
values.
Example:
code changes in edit.html.tmpl

      [% FOREACH group = groups %]
	          
	      <input type="hidden" name="bit-[% group.bit %]" value="1" 
	        [% " checked=\"checked\"" IF group.ison %]
	        [% " disabled=\"disabled\"" IF NOT group.ingroup %]>
	      <br>
     [% END %]

I tried to make the group property as hidden, but whenever I do a
commit it reset the groupset value. For example earlier the groupset
value was 32768, but it reset to 163840.

I tried making the values as readonly :
	      <input type="hidden" name="bit-[% group.bit %]" value="1" 
	        [% " checked=\"checked\"" IF group.ison %]
	        [% " disabled=\"disabled\"" IF NOT group.ingroup %] readonly>

but it did n't work.

Is there a way to do it.

Thanks, Arvind.

> -----Original Message-----
> From: Gervase Markham [mailto:gerv at mozilla.org]
> Sent: Tuesday, April 15, 2003 4:17 AM
> To: Arvind Singh
> Subject: Re: Customizing Templates
> 
> 
> 
> > I get the following error when I add comments and do a commit.
> > 
> > Bug processed 			
> > Bugzilla has suffered an internal error. Please save this 
> page and send it to arvind at pixim.com with details of what you 
> were doing at the time this message appeared. 
> > A legal Priority was not set. 	
> > 
> > I assume the problem is because of [% PROCESS select 
> selname = "rep_platform" %]
> 
> No, it's because "a legal Priority was not set", as the error message 
> says :-)
> 
> The problem you have is that Bugzilla expects every field to be 
> submitted; if you don't submit e.g. priority, it complains. 
> Instead of 
> removing the fields, you could make them <input 
> type="hidden">, but then 
> people could see the values by viewing the source of the page. 
> Otherwise, you'll need to change process_bug to Do The Right Thing if 
> various form fields aren't submitted.
> 
> Gerv
> 
> 




More information about the developers mailing list