Hi everybody.

I'm learning to use repoze.bfg.formish (I know it's "use-at-your-own-risk-ware" 
as Chris told me). I noticed that the FileUpload template wasn't taking into 
account the show_remove_checkbox parameter, so I added a tal:condition to the 
template. It's not a big deal, but I'm attaching the modified line, so maybe 
someone can review it and merge it to trunk.

Thanks.

Douglas

"... allí­ es cuando te das cuenta que las cosas malas pueden resultar bastante 
buenas..." - Lionel Messi

Por favor, evite enviarme adjuntos de Word, Excel o PowerPoint.
Vea http://www.gnu.org/philosophy/no-word-attachments.es.html
Index: repoze/bfg/formish/templates/zpt/formish/widgets/FileUpload/widget.html
===================================================================
--- repoze/bfg/formish/templates/zpt/formish/widgets/FileUpload/widget.html	(revisión: 9063)
+++ repoze/bfg/formish/templates/zpt/formish/widgets/FileUpload/widget.html	(copia de trabajo)
@@ -17,7 +17,7 @@
      href="${field.widget.urlfactory(value_name)}">download</a>
 </div>
 
-<input id="${field.cssname}-remove" type="checkbox" name="${field.name}.remove" value="true" />
+<input id="${field.cssname}-remove" type="checkbox" name="${field.name}.remove" value="true" tal:condition="field.widget.show_remove_checkbox" />
 <input id="${field.cssname}-id" type="hidden" name="${field.name}.name" value="${value_name}" />
 <input id="${field.cssname}-mimetype" type="hidden" name="${field.name}.mimetype" value="${mimetype}" />
 <input id="${field.cssname}-default" type="hidden" name="${field.name}.default" value="${value_default}" />
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to