Mercurial > hg > soundsoftware-site
view .svn/pristine/bf/bf4dd67c04712c99f4042f3516157030fb9d215d.svn-base @ 1080:5bd8c86cfa6a issue_540
Makes the Publication model act as an activity; overloading the default ActivitiesController#index view in the Bibliography Plugin in order to differentiate Publications from the other event types.
* Known issues:
** route to /activities is not working (only to /activity);
** publication cache needs to be implemented in the model, not in the helper;
** when a publication is added to n projects, n events are created (all with the same content).
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 22 Nov 2012 16:51:23 +0000 |
parents | cbb26bc654de |
children |
line wrap: on
line source
<table style="border-collapse: collapse; border:0;"> <tr> <td style="padding-left:0"> <%= label_tag "available_columns", l(:description_available_columns) %> <br /> <%= select_tag 'available_columns', options_for_select((query.available_columns - query.columns).collect {|column| [column.caption, column.name]}), :multiple => true, :size => 10, :style => "width:150px", :ondblclick => "moveOptions(this.form.available_columns, this.form.selected_columns);" %> </td> <td align="center" valign="middle"> <input type="button" value="→" onclick="moveOptions(this.form.available_columns, this.form.selected_columns);" /><br /> <input type="button" value="←" onclick="moveOptions(this.form.selected_columns, this.form.available_columns);" /> </td> <td> <%= label_tag "selected_columns", l(:description_selected_columns) %> <br /> <%= select_tag 'c[]', options_for_select(query.columns.collect {|column| [column.caption, column.name]}), :id => 'selected_columns', :multiple => true, :size => 10, :style => "width:150px", :ondblclick => "moveOptions(this.form.selected_columns, this.form.available_columns);" %> </td> <td align="center" valign="middle"> <input type="button" value="↑" onclick="moveOptionUp(this.form.selected_columns);" /><br /> <input type="button" value="↓" onclick="moveOptionDown(this.form.selected_columns);" /> </td> </tr> </table> <% content_for :header_tags do %> <%= javascript_include_tag 'select_list_move' %> <% end %>