Sha256: f26ec488b89c8b7406c8ea1e7d28a771a41d7b5db39b66b5348bc57801ed6e6b

Contents?: true

Size: 445 Bytes

Versions: 3

Compression:

Stored size: 445 Bytes

Contents

<%
  custom = { :include_blank => true }
  options.merge!(custom)

  if @resource.typus_field_options_for(:read_only).include?(attribute.to_sym)
    html_options.merge!(:disabled => 'disabled')
    message = Typus::I18n.t("Read only")
  end
%>

<li id="<%= attribute_id %>">
  <%= form.label attribute, "#{label_text} <small>#{message}</small>".html_safe %>
  <%= form.select attribute, @resource.send(attribute), options, html_options %>
</li>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typus-3.1.0.rc17 app/views/admin/templates/_selector.html.erb
typus-3.1.0.rc16 app/views/admin/templates/_selector.html.erb
typus-3.1.0.rc15 app/views/admin/templates/_selector.html.erb