%
if @resource.typus_field_options_for(:read_only).include?(attribute.to_sym)
html_options.merge!(:disabled => 'disabled')
message = Typus::I18n.t("Read only")
end
%>
<%= form.label attribute, "#{label_text} #{message}".html_safe %>
<%= form.select attribute, @resource.send(attribute), options.merge!(:include_blank => true), html_options %>