Commit 6aa09eaa authored by Gabriel Monnerat's avatar Gabriel Monnerat

- improve view of search result

- add line to return the event sorted

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42925 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 68e1915c
...@@ -80,6 +80,7 @@ if request_type == "list":\n ...@@ -80,6 +80,7 @@ if request_type == "list":\n
kw = {}\n kw = {}\n
if form.has_key("SearchableText"):\n if form.has_key("SearchableText"):\n
kw["SearchableText"] = form.get("SearchableText")\n kw["SearchableText"] = form.get("SearchableText")\n
kw["sort_on"] = (("delivery.start_date", "ASC"))\n
event_list = portal.event_module.searchFolder(**kw)\n event_list = portal.event_module.searchFolder(**kw)\n
now = DateTime()\n now = DateTime()\n
event_dict = {}\n event_dict = {}\n
......
...@@ -185,6 +185,21 @@ div.header-left {\n ...@@ -185,6 +185,21 @@ div.header-left {\n
div#gridcontainer div.event-listview tr td {\n div#gridcontainer div.event-listview tr td {\n
border-bottom: 1px solid #CCC;\n border-bottom: 1px solid #CCC;\n
padding: 9px;\n padding: 9px;\n
}\n
\n
div#gridcontainer div.toolbar-listview {\n
background: none repeat scroll 0 0 #E3E9FF !important;\n
padding: 6px;\n
}\n
\n
a#back-calendar {\n
color: #20C;\n
font-weight: bolder;\n
}\n
\n
td#resultview {\n
text-align: center;\n
font-size: 10pt;\n
}</string> </value> }</string> </value>
</item> </item>
<item> <item>
......
...@@ -304,7 +304,9 @@ $(document).ready(function() { \n ...@@ -304,7 +304,9 @@ $(document).ready(function() { \n
tableList.push("<div class=\'toolbar-listview\'>",\n tableList.push("<div class=\'toolbar-listview\'>",\n
"<table width=\'100%\' cellspacing=\'0\' cellpadding=\'2\'>",\n "<table width=\'100%\' cellspacing=\'0\' cellpadding=\'2\'>",\n
"<tbody>",\n "<tbody>",\n
"<tr><td>Back to Calendar</td><td>Results:</td>",\n "<tr><td>",\n
"<a id=\'back-calendar\' href=\'#\'> « Back to Calendar</a>",\n
"</td><td id=\'resultview\'>Results:</td>",\n
"</tbody></table></div>");\n "</tbody></table></div>");\n
tableList.push("<div class=\'event-listview\'>");\n tableList.push("<div class=\'event-listview\'>");\n
tableList.push("<table width=\'100%\' cellspacing=\'0\' cellpadding=\'2\'><tbody>");\n tableList.push("<table width=\'100%\' cellspacing=\'0\' cellpadding=\'2\'><tbody>");\n
...@@ -327,6 +329,10 @@ $(document).ready(function() { \n ...@@ -327,6 +329,10 @@ $(document).ready(function() { \n
eventTableList.push("</td></tr>");\n eventTableList.push("</td></tr>");\n
}\n }\n
$("div.event-listview tbody").append(eventTableList.join(""));\n $("div.event-listview tbody").append(eventTableList.join(""));\n
$("td#resultview").append("<b>" + " " +\n
$("div.event-listview tbody tr").length + \n
"</b>" + " to " + \n
"<b>" + text + "</b>");\n
},\n },\n
});\n });\n
tableList.push("</tbody></table></div>");\n tableList.push("</tbody></table></div>");\n
......
216 217
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment