web/hosts/issues/html macros,NONE,1.1 Makefile.in,1.15,1.16

Tobias Hunger <[email protected]> Wed, 20 Aug 2003 09:26:00 -0500
Newsgroups gmane.comp.video.fresco.cvs
Message-ID <[email protected]>
Update of /cvs/fresco/web/hosts/issues/html
In directory purcel:/tmp/cvs-serv21758

Modified Files:
	Makefile.in 
Added Files:
	macros 
Log Message:
Add a couple of macros from roundup's classic template and append them
to the end of the generated "page"


--- NEW FILE: macros ---
<td metal:define-macro="search_input">
  <input tal:attributes="value python:request.form.getvalue(name) or nothing;
                         name name">
</td>

<td metal:define-macro="search_select">
  <select tal:attributes="name name"
          tal:define="value python:request.form.getvalue(name)">
    <option value="">don't care</option>
    <tal:block metal:define-slot="extra_options"></tal:block>
    <option value="">------------</option>      
    <option tal:repeat="s python:db[db_klass].list()"
            tal:attributes="value s/id; selected python:value == s.id"
            tal:content="python:s[db_content]"></option>
  </select>
</td>

<td metal:define-macro="search_multiselect">
  <select multiple
          tal:attributes="name name; size size"
          tal:define="value python:request.form.getvalue(name)">
    <option value="">don't care</option>
    <tal:block metal:define-slot="extra_options"></tal:block>
    <option value="">------------</option>
    <option tal:repeat="s python:db[db_klass].list()"
            tal:attributes="value s/id; selected python:value == s.id"
            tal:content="python:s[db_content]"></option>
  </select>
</td>

<td metal:define-macro="column_input">
  <input type="checkbox" name=":columns"
         tal:attributes="value name;
                         checked python:name in cols">
</td>

<td metal:define-macro="sort_input">
  <input type="radio" name=":sort"
         tal:attributes="value name;
                         checked python:name == sort_on">
</td>

<td metal:define-macro="group_input">
  <input type="radio" name=":group"
         tal:attributes="value name;
                         checked python:name == group_on">
</td>

Index: Makefile.in
===================================================================
RCS file: /cvs/fresco/web/hosts/issues/html/Makefile.in,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- Makefile.in	20 Aug 2003 11:33:07 -0000	1.15
+++ Makefile.in	20 Aug 2003 14:25:57 -0000	1.16
@@ -50,9 +50,10 @@
 	  sed -e 's,xmlns:tal="http://www.zope.org/TAL",,g' \
 	      -e 's,xmlns:metal="http://www.zope.org/METAL",,g' > $@
 
-page:	page.html
+page:	page.html $(srcdir)/macros
 	sed -e 's,xmlns:tal="http://www.zope.org/TAL",,g' \
 	    -e 's,xmlns:metal="http://www.zope.org/METAL",,g' $< > $@
+	cat $(srcdir)/macros >> $@
 
 clean:
 	rm -f $(pages)