Sha256: 1dd4fb30ea1b4d0194871b1d00eea28b9abd57028ddcfbb8288b57ecb65eb3b8

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

<%# assign the value of the untranslated field if this record is a new object %>
<% form.object.send("#{attribute_key}=", untranslated_value[:value]) if form.object.new_record? %>

<% if translatable_field_a_text_area?(form, attribute_key) %>
  <%= form.text_area attribute_key, :rows => 7, :cols => 35 %>
<% else %>
  <%= form.text_field attribute_key %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongo_translatable-0.1.0 app/views/translations/_translation_field_input.html.erb