<%= tag.div class: 'field' do %>
  <div>
    <%= f.label attr, local_assigns[:label], for: nil, class: 'i18n__label' unless local_assigns[:skip_label] %>
  </div>

  <div>
    <%- available_locales.each do |locale| %>
      <%- i18n_attr = "#{attr}_#{locale}" -%>
      <%= f.label i18n_attr, class: "input-box i18n__input i18n__input-#{locale}" do %>    
        
        <%= f.text_field i18n_attr,                        
                        class: 'material__input',
                        disabled: local_assigns[:disabled],
                        data: local_assigns[:data],
                        placeholder: local_assigns[:placeholder].blank? ? f.object.public_send(attr, locale: I18n.default_locale) : local_assigns[:placeholder] %>
      <% end %>

      <%- f.object.errors.full_messages_for(i18n_attr).uniq.each do |msg| -%>
        <%= content_tag :p, msg, role: 'alert' %>
      <% end %>
    <% end %>  
  </div>  
<%- end -%>
