mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
Render columns selection using spans instead of a table.
git-svn-id: http://svn.redmine.org/redmine/trunk@16815 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2a721fff4c
commit
081e8a8932
@ -2,40 +2,36 @@
|
||||
<% available_tag_id = "available_#{tag_id}" %>
|
||||
<% selected_tag_id = "selected_#{tag_id}" %>
|
||||
|
||||
<table class="query-columns">
|
||||
<tr>
|
||||
<td style="padding-left:0">
|
||||
<span class="query-columns">
|
||||
<span>
|
||||
<%= 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">
|
||||
</span>
|
||||
<span class="buttons">
|
||||
<input type="button" value="→"
|
||||
onclick="moveOptions(this.form.<%= available_tag_id %>, this.form.<%= selected_tag_id %>);" /><br />
|
||||
onclick="moveOptions(this.form.<%= available_tag_id %>, this.form.<%= selected_tag_id %>);" />
|
||||
<input type="button" value="←"
|
||||
onclick="moveOptions(this.form.<%= selected_tag_id %>, this.form.<%= available_tag_id %>);" />
|
||||
</td>
|
||||
<td>
|
||||
</span>
|
||||
<span>
|
||||
<%= 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 />
|
||||
</span>
|
||||
<span class="buttons">
|
||||
<input type="button" value="⇈" onclick="moveOptionTop(this.form.<%= selected_tag_id %>);" />
|
||||
<input type="button" value="↑" onclick="moveOptionUp(this.form.<%= selected_tag_id %>);" />
|
||||
<input type="button" value="↓" onclick="moveOptionDown(this.form.<%= selected_tag_id %>);" />
|
||||
<input type="button" value="⇊" onclick="moveOptionBottom(this.form.<%= selected_tag_id %>);" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<%= javascript_tag do %>
|
||||
$(document).ready(function(){
|
||||
|
||||
@ -372,16 +372,19 @@ table.messages td.last_message {text-align:left;}
|
||||
min-width: 1em;
|
||||
}
|
||||
|
||||
table.query-columns {
|
||||
border-collapse: collapse;
|
||||
border: 0;
|
||||
.query-columns>span {
|
||||
display:inline-block;
|
||||
height:100%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.query-columns label {
|
||||
display:block;
|
||||
}
|
||||
.query-columns .buttons input[type=button] {
|
||||
width:35px;
|
||||
display:block;
|
||||
}
|
||||
|
||||
table.query-columns td.buttons {
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
}
|
||||
table.query-columns td.buttons input[type=button] {width:35px;}
|
||||
.query-totals {text-align:right;}
|
||||
.query-totals>span:not(:first-child) {margin-left:0.6em;}
|
||||
.query-totals .value {font-weight:bold;}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user