Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multipart fix #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/views/layouts/rails_i18n_manager/application.html.slim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- @title = "Translations Manager"
- @title = "Translations Manager NB"

doctype html
html
Expand Down
2 changes: 1 addition & 1 deletion app/views/rails_i18n_manager/translations/import.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ h2.page-sub-title Import Translations from Source File

.row
.col-6
= custom_form_for @form, as: :import_form, url: import_translations_path, method: :post, multipart: true, html: {class: "form-horizontal"} do |f|
= custom_form_for @form, as: :import_form, url: import_translations_path, method: :post, multipart: true, html: {enctype: "multipart/form-data", class: "form-horizontal"} do |f|
= f.error_notification

= f.field :translation_app_id, label: "App Name", type: :select, collection: RailsI18nManager::TranslationApp.order(name: :asc).pluck(:name, :id)
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20221001001344_add_rails_i18n_manager_tables.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def change
create_table :rails_i18n_manager_translation_values do |t|
t.references :translation_key, index: { name: 'index_translation_values_on_translation_key_id' }
t.string :locale, limit: 5
t.string :translation
t.string :translation, limit: 500
t.datetime :updated_at
end

Expand Down