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

Version Path
fullstack-cms-0.4.6 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.4.5 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.4.4 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.3.8.fix app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.2.32.fix app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.4.3 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.4.2 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.4.1 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.3.39 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.3.38 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.3.37 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.3.36 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.3.35 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.3.34 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.3.33 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.3.32 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.3.31 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.3.30 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.3.29 app/views/admin/linkables/_fields.html.erb
fullstack-cms-0.3.28 app/views/admin/linkables/_fields.html.erb