Sha256: f19a958344643e821a28c7b393356edf1ee4d878a78ff39cbef141ac4693796b

Contents?: true

Size: 362 Bytes

Versions: 21

Compression:

Stored size: 362 Bytes

Contents

<% type = "default" %>
<% type = model.reflections[field.to_s].macro if model.reflections.has_key? field.to_s %>
<% klass = field_setting(model, field, :class) %>

<%= form.text_field field, :disabled => true, :class => klass %>

<% if type.to_s == "belongs_to" %>
	<% field_name = "#{field.to_s.singularize}_id" %>
	<%= form.hidden_field field_name %>
<% end %>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
my_admin-0.1.13 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.1.12 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.1.11 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.1.10 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.1.9 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.1.8 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.1.7 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.1.6 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.1.5 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.1.4 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.1.3 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.1.2 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.1.1 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.0.12 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.0.11 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.0.10 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.0.9 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.0.8 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.0.7 app/views/my_admin/fields/edit/type/read_only.html.erb
my_admin-0.0.6 app/views/my_admin/fields/edit/type/read_only.html.erb