Sha256: 522ec8be795aacaff82387735ceb70430f1639b1e4e29dba6e3148088999c36c
Contents?: true
Size: 1.13 KB
Versions: 82
Compression:
Stored size: 1.13 KB
Contents
<% if linkable.count >= Linkable::AJAX_COMBOBOX_MIN %> <div class="clearfix" style="margin-bottom: 200px;"> <select style="width: 440px;" data-remote="<%= admin_linkables_path(:type => linkable.name) %>" class="select-resource-url" name="<%= field_name %>" placeholder="<%= t('fullstack.cms.type_the_title_name_of_the_resource_to_link', :default => 'Type the title/name of the resource to link') %>"> <option value=""></option> <% if currently_linked %> <option value="<%= currently_linked.id %>" selected><%= title_for(currently_linked) %></option> <% end %> </select> </div> <% else %> <select style="width: 440px;" name="<%= field_name %>" placeholder="<%= t('fullstack.cms.type_the_title_name_of_the_resource_to_link', :default => 'Type the title/name of the resource to link') %>"> <option value=""></option> <% linkable.order(title_column(linkable)).each do |item| %> <% if currently_linked == item %> <option value="<%= item.id %>" selected><%= title_for(item) %></option> <% else %> <option value="<%= item.id %>"><%= title_for(item) %></option> <% end %> <% end %> </select> <% end %>
Version data entries
82 entries across 82 versions & 1 rubygems