search for: sort_td_class_help

Displaying 8 results from an estimated 8 matches for "sort_td_class_help".

Did you mean: sort_td_class_helper
2006 Aug 11
0
SQL sort
...his column", :href => url_for(:action => ''list'', :params => @params.merge({:sort => key, :page => nil})) } link_to_remote(text, options, html_options) end In the list view I display : HEADERS <td align="center" <%= sort_td_class_helper "login" %>> <%= sort_link_helper "Login", "login" %> </td> <td align="center" <%= sort_td_class_helper "role" %>> <%= sort_link_helper "Role", "role" %> </td>...
2006 Aug 01
3
paginate, search, sort with ajax problem
hello I hope somebody can help me figure this out. found this great tutorial at http://dev.nozav.org/rails_ajax_table.html. got it working except for one thing. I can''t seem to make the pagination work. The link_to_remote defined in the helper is pointing to the wrong url. I have set up things like so: defined a search method in de project_controller located in apps/admin/project.
2009 May 13
1
[PATCH server] Cloud UI V1 (readonly).
...USA. A copy of the GNU General Public License is +# also available at http://www.gnu.org/copyleft/gpl.html. + +module Cloud::InstanceHelper +# TODO: add checking to make sure this is a symbol, possibly as simple as adding a +# to_sym, just not sure what happens if it is already a symbol + def sort_td_class_helper(param, key = :sort) + result = 'sortup' if params[key] == param + result = 'sortdown' if params[key] == param + " DESC" + return result + end + + # pass in an optional symbol for the key you want to use + # TODO: add checking to make sure this is a symbol, po...
2009 Jul 06
0
[PATCH server] UI for accumulated uptime for VMs. (revised2)
...iff --git a/src/app/views/cloud/instance/_list.rhtml b/src/app/views/cloud/instance/_list.rhtml index 1fa46de..95e5518 100644 --- a/src/app/views/cloud/instance/_list.rhtml +++ b/src/app/views/cloud/instance/_list.rhtml @@ -14,6 +14,9 @@ <th scope="col" class="sortable <%= sort_td_class_helper "state" %>"> <div><%= sort_link_helper "State", "state" %></div> </th> + <th scope="col" class="sortable <%= sort_td_class_helper "calc_uptime" %>"> + <div><%= s...
2009 Jul 02
1
[PATCH server] UI for accumulated uptime for VMs. (revised)
...iff --git a/src/app/views/cloud/instance/_list.rhtml b/src/app/views/cloud/instance/_list.rhtml index 1fa46de..95e5518 100644 --- a/src/app/views/cloud/instance/_list.rhtml +++ b/src/app/views/cloud/instance/_list.rhtml @@ -14,6 +14,9 @@ <th scope="col" class="sortable <%= sort_td_class_helper "state" %>"> <div><%= sort_link_helper "State", "state" %></div> </th> + <th scope="col" class="sortable <%= sort_td_class_helper "calc_uptime" %>"> + <div><%= s...
2009 Jul 06
2
[PATCH server] UI for accumulated uptime for VMs. (revised3)
...iff --git a/src/app/views/cloud/instance/_list.rhtml b/src/app/views/cloud/instance/_list.rhtml index 1fa46de..95e5518 100644 --- a/src/app/views/cloud/instance/_list.rhtml +++ b/src/app/views/cloud/instance/_list.rhtml @@ -14,6 +14,9 @@ <th scope="col" class="sortable <%= sort_td_class_helper "state" %>"> <div><%= sort_link_helper "State", "state" %></div> </th> + <th scope="col" class="sortable <%= sort_td_class_helper "calc_uptime" %>"> + <div><%= s...
2009 Jun 29
3
[PATCH server] UI for accumulated uptime for VMs.
...iff --git a/src/app/views/cloud/instance/_list.rhtml b/src/app/views/cloud/instance/_list.rhtml index 1fa46de..bed7b3b 100644 --- a/src/app/views/cloud/instance/_list.rhtml +++ b/src/app/views/cloud/instance/_list.rhtml @@ -14,6 +14,9 @@ <th scope="col" class="sortable <%= sort_td_class_helper "state" %>"> <div><%= sort_link_helper "State", "state" %></div> </th> + <th scope="col" class="sortable <%= sort_td_class_helper "calc_uptime" %>"> + <div><%= s...
2006 Aug 16
0
sort_link_helper , sorting on date
...t; ''list'', :params => @params.merge({:sort => key, :page => nil})) } link_to_remote(text, options, html_options) end _user_list.rhtml ----------------------- (partial in my list.rhtml) <tr class="tbl_header"> <td align="center" <%= sort_td_class_helper "startdate"%>><%= sort_link_helper "Start", "startdate"></td> .... table item line ----------- <td width="30%" align="center"><%= h(booking.startdate.loc("%a %d %b")) %></td> I am using paginate in...