Add another YML feature like :hint

8 views
Skip to first unread message

metageeky

unread,
Apr 14, 2017, 9:06:03 PM4/14/17
to SimpleForm
I apologize in advance if what I'm doing is super simple, but I've been having trouble even figuring out search terms for this. What I would like to do is the following. I'm working in a system (Hydra Sufia) that incorporates Simple Form and Bootstrap and provides a simple_form_bootstrap.rb configuration file. I'd like to add something like :hint or :error so that I could put some extra instructional information in a yaml file as as with the metainstruction data below:

en:
  sufia
:
    simple_form
:
      labels
:
        work
:
          name
:       "Title"
          description
:      "Abstract or Summary"
      hints
:
        work
:
          name
: "..."
      metainstruction
:
        work
:
          title
: "..."
          keyword
: "..."

Is this possible? If so, can someone provide example code?

Thanks in advance,

metageeky

Reply all
Reply to author
Forward
0 new messages