fairplaysk/datacamp

View on GitHub
app/views/dataset_categories/_form.html.haml

Summary

Maintainability
Test Coverage
= form_for @category, :builder => ListFormBuilder do |f|
  = f.error_messages

  %ul
    %li.clearfix.locale_switcher
      %label Language
      = f.locale_switcher I18N_LOCALES

    = f.locale_tabs I18N_LOCALES do |trans|
      = trans.text_field :title
      = trans.text_area :description

    %li
      = f.submit t("global.save")