refactor closet_lists.form hierarchy
This commit is contained in:
parent
a370000b3d
commit
7dce6ca89c
4 changed files with 31 additions and 29 deletions
|
@ -12,8 +12,8 @@ module ClosetListsHelper
|
||||||
|
|
||||||
def hangers_owned_options
|
def hangers_owned_options
|
||||||
[
|
[
|
||||||
[translate("closet_lists.form.hangers_owned_options.owned"), true],
|
[closet_lists_group_name(:you, true), true],
|
||||||
[translate("closet_lists.form.hangers_owned_options.wanted"), false]
|
[closet_lists_group_name(:you, false), false]
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -5,18 +5,18 @@
|
||||||
%ul.fields
|
%ul.fields
|
||||||
%li
|
%li
|
||||||
= f.label :name
|
= f.label :name
|
||||||
%span.hint= t '.name_hint'
|
%span.hint= t '.name.hint'
|
||||||
= f.text_field :name, :required => true
|
= f.text_field :name, :required => true
|
||||||
%li
|
%li
|
||||||
= f.label :hangers_owned, t('.hangers_owned_label')
|
= f.label :hangers_owned, t('.hangers_owned.label')
|
||||||
= f.select :hangers_owned, hangers_owned_options
|
= f.select :hangers_owned, hangers_owned_options
|
||||||
%li
|
%li
|
||||||
= f.label :visibility, t('.visibility_label')
|
= f.label :visibility, t('.visibility.label')
|
||||||
= f.select :visibility, long_closet_visibility_choices(:list)
|
= f.select :visibility, long_closet_visibility_choices(:list)
|
||||||
%li
|
%li
|
||||||
= f.label :description
|
= f.label :description
|
||||||
%span.hint= t '.description_hint'
|
%span.hint= t '.description.hint'
|
||||||
= f.text_area :description
|
= f.text_area :description
|
||||||
%span.hint= t '.description_markup_hint_html'
|
%span.hint= t '.description.markup_hint_html'
|
||||||
= f.submit t('.submit')
|
= f.submit t('.submit')
|
||||||
|
|
||||||
|
|
|
@ -185,16 +185,17 @@ en-meep:
|
||||||
|
|
||||||
form:
|
form:
|
||||||
your_items_link: Back to Your Meeps
|
your_items_link: Back to Your Meeps
|
||||||
name_hint: Like "meep for trade" or "NC meeplist"
|
name:
|
||||||
hangers_owned_label: This is a meep for…
|
hint: Like "meep for trade" or "NC meeplist"
|
||||||
hangers_owned_options:
|
hangers_owned:
|
||||||
owned: Meepits you own
|
label: This is a meep for…
|
||||||
wanted: Meepits you want
|
visibility:
|
||||||
visibility_label: Who can meep this list?
|
label: Who can meep this list?
|
||||||
description_hint:
|
description:
|
||||||
Why are these meepits in the same meep? What are your terms for meeping?
|
hint:
|
||||||
Or you can meep this blank.
|
Why are these meepits in the same meep? What are your terms for
|
||||||
description_markup_hint_html:
|
meeping? Or you can meep this blank.
|
||||||
|
markup_hint_html:
|
||||||
We _<em>support</em>_ **<strong>Meepdown</strong>** and some HTML.
|
We _<em>support</em>_ **<strong>Meepdown</strong>** and some HTML.
|
||||||
submit: Meep list
|
submit: Meep list
|
||||||
|
|
||||||
|
|
|
@ -186,16 +186,17 @@ en:
|
||||||
|
|
||||||
form:
|
form:
|
||||||
your_items_link: Back to Your Items
|
your_items_link: Back to Your Items
|
||||||
name_hint: Like "up for trade" or "NC wishlist"
|
name:
|
||||||
hangers_owned_label: This is a list for…
|
hint: Like "up for trade" or "NC wishlist"
|
||||||
hangers_owned_options:
|
hangers_owned:
|
||||||
owned: Items you own
|
label: This is a list for…
|
||||||
wanted: Items you want
|
visibility:
|
||||||
visibility_label: Who can see this list?
|
label: Who can see this list?
|
||||||
description_hint:
|
description:
|
||||||
|
hint:
|
||||||
Why are these items in the same list? What are your terms for trading?
|
Why are these items in the same list? What are your terms for trading?
|
||||||
Or you can leave this blank.
|
Or you can leave this blank.
|
||||||
description_markup_hint_html:
|
markup_hint_html:
|
||||||
We _<em>support</em>_ **<strong>Markdown</strong>** and some HTML.
|
We _<em>support</em>_ **<strong>Markdown</strong>** and some HTML.
|
||||||
submit: Save list
|
submit: Save list
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue