File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed
Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ Feature:
1010- tracker name at end of page title (sf rfe 926840)
1111- roundup-server now uses the ForkingMixin
1212- added another sample detector "creator_resolution"
13+ - added search_checkboxes as an option for the search form
1314
1415Fixed:
1516- web CSV export was busted (as was any action returning a result)
Original file line number Diff line number Diff line change @@ -132,6 +132,22 @@ <h2><span metal:define-slot="body_title">body title</span></h2>
132132 </ select >
133133</ td >
134134
135+ < td metal:define-macro ="search_checkboxes ">
136+ < ul class ="search-checkboxes "
137+ tal:define ="value python:request.form.getvalue(name) ">
138+ < li tal:repeat ="s python:db[db_klass].list() ">
139+ < input type ="checkbox " tal:attributes ="name name; id string:name-${s/id};
140+ value s/id; checked python:value == s.id " />
141+ < label tal:attributes ="for string:$name-${s/id} " tal:content ="s/name " />
142+ </ li >
143+ < li metal:define-slot ="no_value_item ">
144+ < input type ="checkbox " value ="-1 " tal:attributes ="name name;
145+ id string:$name--1; checked python:value == '-1' " />
146+ < label tal:attributes ="for string:$name--1 "> no value</ label >
147+ </ li >
148+ </ ul >
149+ </ td >
150+
135151< td metal:define-macro ="column_input ">
136152 < input type ="checkbox " name ="@columns "
137153 tal:attributes ="value name;
Original file line number Diff line number Diff line change @@ -91,6 +91,18 @@ p.error-message {
9191}
9292
9393
94+ /* style for search forms */
95+ ul .search-checkboxes {
96+ display : inline;
97+ padding : none;
98+ list-style : none;
99+ }
100+ ul .search-checkboxes > li {
101+ display : inline;
102+ padding-right : .5em ;
103+ }
104+
105+
94106/* style for forms */
95107table .form {
96108 padding : 2px ;
You can’t perform that action at this time.
0 commit comments