Revision c9febdc5
Added by Tomer Brisker almost 9 years ago
app/views/taxonomies/_form.html.erb | ||
---|---|---|
'data-inheriteds' => taxonomy.inherited_ids[:organization_ids].to_json,
|
||
'data-useds' => taxonomy.used_ids[:organization_ids].to_json } %>
|
||
</div>
|
||
<% if taxonomy.is_a?(Organization) && show_location_tab? %>
|
||
<% elsif taxonomy.is_a?(Organization) && show_location_tab? %>
|
||
<div class="tab-pane" id="locations">
|
||
<%= location_selects f, taxonomy.selected_or_inherited_ids[:location_ids],
|
||
{ :disabled => taxonomy.used_and_selected_or_inherited_ids[:location_ids], :label => _('Select locations')},
|
||
... | ... | |
'data-inheriteds' => taxonomy.inherited_ids[:location_ids].to_json,
|
||
'data-useds' => taxonomy.used_ids[:location_ids].to_json } %>
|
||
</div>
|
||
<% end %>
|
||
<% end %>
|
||
|
||
<% if User.current.allowed_to?(:view_params) %>
|
Also available in: Unified diff
Fixes #11376 - show location tab in organization editor