Hide order selectors when only one order available
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<form class="inline-block">
|
||||
<% if @valid_orders.present? && @valid_orders.count > 1 %>
|
||||
<form class="inline-block">
|
||||
<label for="order-selector-participation" class="show-for-sr"><%= t("#{i18n_namespace}.select_order") %></label>
|
||||
<select class="js-location-changer js-order-selector select-order"
|
||||
data-order="<%= @current_order %>"
|
||||
@@ -11,4 +12,5 @@
|
||||
</option>
|
||||
<% end %>
|
||||
</select>
|
||||
</form>
|
||||
</form>
|
||||
<% end %>
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
#
|
||||
# i18n_namespace: for example "moderation.debates.index"
|
||||
%>
|
||||
|
||||
<div class="wide-order-selector small-12 medium-8">
|
||||
<% if @valid_orders.present? && @valid_orders.count > 1 %>
|
||||
<div class="wide-order-selector small-12 medium-8">
|
||||
<form>
|
||||
<div class="small-12 medium-6 float-left">
|
||||
<label for="order-selector-participation">
|
||||
@@ -23,4 +23,5 @@
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user