Add item editing fields to manually override an item to be an NC item
This commit is contained in:
parent
3937ba354f
commit
f49f9f386d
2 changed files with 10 additions and 1 deletions
|
@ -182,7 +182,8 @@ class ItemsController < ApplicationController
|
||||||
|
|
||||||
def item_params
|
def item_params
|
||||||
params.require(:item).permit(
|
params.require(:item).permit(
|
||||||
:name, :thumbnail_url, :description, :modeling_status_hint
|
:name, :thumbnail_url, :description, :modeling_status_hint,
|
||||||
|
:is_manually_nc
|
||||||
).tap do |p|
|
).tap do |p|
|
||||||
p[:modeling_status_hint] = nil if p[:modeling_status_hint] == ""
|
p[:modeling_status_hint] = nil if p[:modeling_status_hint] == ""
|
||||||
end
|
end
|
||||||
|
|
|
@ -25,6 +25,14 @@
|
||||||
= f.url_field :thumbnail_url
|
= f.url_field :thumbnail_url
|
||||||
= f.label :description
|
= f.label :description
|
||||||
= f.text_field :description
|
= f.text_field :description
|
||||||
|
.field-name Item kind
|
||||||
|
.radio-field
|
||||||
|
%label{title: "NC items generally have a rarity value of 500.\nPaintbrush items generally contain a special message in the description."}
|
||||||
|
= f.radio_button :is_manually_nc, false
|
||||||
|
Automatic: Based on rarity and description
|
||||||
|
%label{title: "Use this when Neopets releases an NC item, but labels the rarity as something other than 500, usually by mistake."}
|
||||||
|
= f.radio_button :is_manually_nc, true
|
||||||
|
Manually NC: From the NC Mall, but not r500
|
||||||
.field-name Modeling status
|
.field-name Modeling status
|
||||||
.radio-field
|
.radio-field
|
||||||
%label{title: "If we fit two or more species of a standard color, assume we also fit the other standard-color pets that were released at the time.\nRepeat for special colors like Baby and Maraquan."}
|
%label{title: "If we fit two or more species of a standard color, assume we also fit the other standard-color pets that were released at the time.\nRepeat for special colors like Baby and Maraquan."}
|
||||||
|
|
Loading…
Reference in a new issue