Sha256: 80e4e2623aa6131eca6c994fc4897a33d4b475d7be31a6ed2378db733b200fbc

Contents?: true

Size: 364 Bytes

Versions: 4

Compression:

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

Version data entries

4 entries across 4 versions & 1 rubygems

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