Sha256: 4c647f639a3bfea6d9904afaae4067fc98fd6c4d34bb10a15533541cfc72783e
Contents?: true
Size: 1.17 KB
Versions: 4
Compression:
Stored size: 1.17 KB
Contents
<% f = f.nil? ? nil : f other_visibility_reason = other_visibility_reason.nil? ? false : other_visibility_reason %> <% if cluster_organization.is_in_cluster_mode? || other_visibility_reason %> <% cluster_collection = cluster_clusters label = t('klastera.cluster.title') %> <% if f.nil? %> <%= label_tag(:cluster_id, label, class: 'control-label') %> <%= select_tag(:cluster_id, options_from_collection_for_select(cluster_collection, 'id', 'display_name_nid'), class: 'form-control', prompt: 'Seleccione') %> <% elsif f.is_a?(SimpleForm::FormBuilder) %> <% if cluster_collection.size == 1 %> <%= f.input :lonely_cluster, as: :hidden, html_input: { value: true } %> <% else %> <%= f.input :cluster_id, collection: cluster_collection.map{|c|[c.name,c.id]}, label: label %> <% end %> <% else %> <% if cluster_collection.size == 1 %> <%= f.hidden_field :lonely_cluster, value: true %> <% else %> <div class="form-group"> <%= f.label label %> <%= f.select :cluster_id, cluster_collection.map{|c|[c.name,c.id]}, { include_blank: true }, { class: 'form-control' } %> </div> <% end %> <% end %> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems