Sha256: 57dadaa39c4175754ac70d375c70a9e8f7fbb935de959400c16892e14fc5e615

Contents?: true

Size: 409 Bytes

Versions: 5

Compression:

Stored size: 409 Bytes

Contents

<%
  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 %>">
  <%= form.label attribute, "#{label_text} <small>#{message}</small>".html_safe %>
  <%= form.select attribute, @resource.send(attribute), options.merge!(:include_blank => true), html_options %>
</li>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typus-3.1.0.rc11 app/themes/default/views/admin/templates/_selector.html.erb
typus-3.1.0.rc10 app/themes/default/views/admin/templates/_selector.html.erb
typus-3.1.0.rc9 app/themes/default/views/admin/templates/_selector.html.erb
typus-3.1.0.rc8 app/views/admin/templates/_selector.html.erb
typus-3.1.0.rc7 app/views/admin/templates/_selector.html.erb