forked from fixin.me/fixin.me
Add Tag
This commit is contained in:
@@ -16,6 +16,9 @@ ActiveSupport.on_load :active_record do
|
||||
ActiveModel::Validations::NumericalityValidator
|
||||
.prepend CoreExt::ActiveModel::Validations::NumericalityValidator
|
||||
|
||||
# SELECT using window functions through SelectChain.
|
||||
ActiveRecord::Relation.include CoreExt::ActiveRecord::QueryMethods
|
||||
|
||||
# Temporary patch for https://github.com/rails/rails/pull/54658.
|
||||
ActiveRecord::Relation.include CoreExt::ActiveRecord::Relation
|
||||
Arel::Crud.prepend CoreExt::Arel::Crud
|
||||
|
||||
@@ -8,6 +8,9 @@ en:
|
||||
out_of_range: exceeds range of double precision floating-point format
|
||||
activerecord:
|
||||
attributes:
|
||||
tag:
|
||||
description: Description
|
||||
label: Label
|
||||
quantity:
|
||||
description: Description
|
||||
name: Name
|
||||
@@ -23,6 +26,14 @@ en:
|
||||
status: Status
|
||||
errors:
|
||||
models:
|
||||
tag:
|
||||
attributes:
|
||||
name:
|
||||
taken: has to be unique
|
||||
supertag:
|
||||
descendant_reference: cannot be changed to any of descendants
|
||||
self_reference: of the tag cannot be the tag itself
|
||||
user_mismatch: has to belong to the same user as tag
|
||||
unit:
|
||||
attributes:
|
||||
base:
|
||||
@@ -104,6 +115,19 @@ en:
|
||||
taken_at_html: Measurement taken at 
|
||||
index:
|
||||
new_measurement: Add measurement
|
||||
tags:
|
||||
navigation: Tags
|
||||
tag:
|
||||
new_subtag: Subtag
|
||||
index:
|
||||
new_tag: Add tag
|
||||
no_items: There are no configured tags. You can Add some or Import from defaults.
|
||||
create:
|
||||
success: Created new tag "%{tag}"
|
||||
update:
|
||||
success: Updated tag "%{tag}"
|
||||
destroy:
|
||||
success: Deleted tag "%{tag}"
|
||||
quantities:
|
||||
navigation: Quantities
|
||||
quantity:
|
||||
|
||||
@@ -9,6 +9,10 @@ Rails.application.routes.draw do
|
||||
member { post :reparent }
|
||||
end
|
||||
|
||||
resources :tags, except: [:show], path_names: {new: '(/:id)/new'} do
|
||||
member { post :reposition }
|
||||
end
|
||||
|
||||
resources :units, except: [:show], path_names: {new: '(/:id)/new'} do
|
||||
member { post :rebase }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user