Sha256: 4d7ce980a7bb9cc6e438ea85d650ff802b6b81f5b5360552f9ffbf6062e970ba

Contents?: true

Size: 998 Bytes

Versions: 5

Compression:

Stored size: 998 Bytes

Contents

<% unless translated_columns.empty? -%>
<%%= render :partial=>"shared/manage/locale" %>

<%% Globalize.available_locales.each do |locale| %>
  <%%= content_tag(:div, :id=>"s#{locale}_block", :class=>"add-white-bl", :style=>(I18n.locale.to_s == locale.to_s ? nil : 'display:none;')) do %>
	  <div class="bot-bg">
    	<div class="inputs-bl">
    	  <% translated_columns.each do |attribute| -%>
    	    <%%= form.label "<%= attribute %>_#{locale}" %>
    	    <%= Freeberry::Utils.form_field("form", "#{attribute}_#\{locale\}".inspect, model.column_for_attribute(attribute)) %>
    	  <% end -%>
      </div>
    </div>
  <%% end %>  
<%% end %>
<% end -%>

<div class="edit-cont">
  <div class="inputs-bl">
  <% model.attributes.each do |attribute, value| -%>
    <% next if translated_columns.include?(attribute.to_sym) %>
    <%%= form.label :<%= attribute %> %>
    <%= Freeberry::Utils.form_field("form", ":#{attribute}", model.column_for_attribute(attribute)) %>
  <% end -%>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
freeberry-0.3.0 lib/generators/freeberry/manage_scaffold/templates/single/views/form.html.erb
freeberry-0.2.9 lib/generators/freeberry/manage_scaffold/templates/single/views/form.html.erb
freeberry-0.2.7 lib/generators/freeberry/manage_scaffold/templates/single/views/form.html.erb
freeberry-0.2.6 lib/generators/freeberry/manage_scaffold/templates/single/views/form.html.erb
freeberry-0.2.5 lib/generators/freeberry/manage_scaffold/templates/single/views/form.html.erb