Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
46
app/views/queries/_columns.html.erb
Normal file
46
app/views/queries/_columns.html.erb
Normal file
|
@ -0,0 +1,46 @@
|
|||
<% tag_id = tag_name.gsub(/[\[\]]+/, '_').sub(/_+$/, '') %>
|
||||
<% available_tag_id = "available_#{tag_id}" %>
|
||||
<% selected_tag_id = "selected_#{tag_id}" %>
|
||||
|
||||
<table class="query-columns">
|
||||
<tr>
|
||||
<td style="padding-left:0">
|
||||
<%= label_tag available_tag_id, l(:description_available_columns) %>
|
||||
<br />
|
||||
<%= select_tag 'available_columns',
|
||||
options_for_select(query_available_inline_columns_options(query)),
|
||||
:id => available_tag_id,
|
||||
:multiple => true, :size => 10, :style => "width:150px",
|
||||
:ondblclick => "moveOptions(this.form.#{available_tag_id}, this.form.#{selected_tag_id});" %>
|
||||
</td>
|
||||
<td class="buttons">
|
||||
<input type="button" value="→"
|
||||
onclick="moveOptions(this.form.<%= available_tag_id %>, this.form.<%= selected_tag_id %>);" /><br />
|
||||
<input type="button" value="←"
|
||||
onclick="moveOptions(this.form.<%= selected_tag_id %>, this.form.<%= available_tag_id %>);" />
|
||||
</td>
|
||||
<td>
|
||||
<%= label_tag selected_tag_id, l(:description_selected_columns) %>
|
||||
<br />
|
||||
<%= select_tag tag_name,
|
||||
options_for_select(query_selected_inline_columns_options(query)),
|
||||
:id => selected_tag_id,
|
||||
:multiple => true, :size => 10, :style => "width:150px",
|
||||
:ondblclick => "moveOptions(this.form.#{selected_tag_id}, this.form.#{available_tag_id});" %>
|
||||
</td>
|
||||
<td class="buttons">
|
||||
<input type="button" value="⇈" onclick="moveOptionTop(this.form.<%= selected_tag_id %>);" /><br />
|
||||
<input type="button" value="↑" onclick="moveOptionUp(this.form.<%= selected_tag_id %>);" /><br />
|
||||
<input type="button" value="↓" onclick="moveOptionDown(this.form.<%= selected_tag_id %>);" /><br />
|
||||
<input type="button" value="⇊" onclick="moveOptionBottom(this.form.<%= selected_tag_id %>);" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<%= javascript_tag do %>
|
||||
$(document).ready(function(){
|
||||
$('.query-columns').closest('form').submit(function(){
|
||||
$('#<%= selected_tag_id %> option').prop('selected', true);
|
||||
});
|
||||
});
|
||||
<% end %>
|
Loading…
Add table
Add a link
Reference in a new issue