Sha256: 5e625a30ec558ed3651da38cd0c460064d73c3475637e4c8c40c7d55b0c1f4a5

Contents?: true

Size: 361 Bytes

Versions: 23

Compression:

Stored size: 361 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 related_fk, "#{label_text} <small>#{message}</small>".html_safe %>
  <%= form.select related_fk, values, options, html_options %>
</li>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
typus-3.0.12 app/views/admin/templates/_belongs_to.html.erb
typus-3.1.0.rc14 app/views/admin/templates/_belongs_to.html.erb
typus-3.0.11 app/views/admin/templates/_belongs_to.html.erb
typus-3.1.0.rc13 app/themes/default/views/admin/templates/_belongs_to.html.erb
typus-3.1.0.rc12 app/themes/default/views/admin/templates/_belongs_to.html.erb
typus-3.0.11.rc5 app/views/admin/templates/_belongs_to.html.erb
typus-3.1.0.rc11 app/themes/default/views/admin/templates/_belongs_to.html.erb
typus-3.1.0.rc10 app/themes/default/views/admin/templates/_belongs_to.html.erb
typus-3.0.11.rc4 app/views/admin/templates/_belongs_to.html.erb
typus-3.1.0.rc9 app/themes/default/views/admin/templates/_belongs_to.html.erb
typus-3.0.11.rc3 app/views/admin/templates/_belongs_to.html.erb
typus-3.1.0.rc8 app/views/admin/templates/_belongs_to.html.erb
typus-3.1.0.rc7 app/views/admin/templates/_belongs_to.html.erb
typus-3.1.0.rc6 app/views/admin/templates/_belongs_to.html.erb
typus-3.1.0.rc5 app/views/admin/templates/_belongs_to.html.erb
typus-3.1.0.rc4 app/views/admin/templates/_belongs_to.html.erb
typus-3.1.0.rc3 app/views/admin/templates/_belongs_to.html.erb
typus-3.1.0.rc2 app/views/admin/templates/_belongs_to.html.erb
typus-3.0.11.rc2 app/views/admin/templates/_belongs_to.html.erb
typus-3.0.11.rc1 app/views/admin/templates/_belongs_to.html.erb