Skip to content

Config form  #301

Description

@robotnic

All form fields are text-single at the moment.
There are no label, no text-multi, list-single,....

The form should look like this:
http://www.xmpp.org/extensions/xep-0060.html#registrar-formtypes-config

list-single example:

<field var='pubsub#publish_model'
         type='list-single'
         label='The publisher model'>
    <option label='Only publishers may publish'>
      <value>publishers</value>
    </option>
    <option label='Subscribers may publish'>
      <value>subscribers</value>
    </option>
    <option label='Anyone may publish'>
      <value>open</value>
    </option>
  </field>

Activity

  1. lloydwatkin commented on Apr 7, 2015

    @lloydwatkin
    Member

    I understand label should not exist on <field/> but this isn't a big issue, however where are you expecting to see 'list-multi' (I'm assuming description field) ?

  2. robotnic commented on Apr 7, 2015

    @robotnic
    Author

    The other way around. The above example is from pubsub. Buddycloud does not send "label" at all - but should.

  3. lloydwatkin commented on Apr 7, 2015

    @lloydwatkin
    Member

    Right I understand. Actually the label is optional as outlined in the schema for XEP-0004 (http://www.xmpp.org/extensions/xep-0004.html#schema). Its a nice to have I agree, but not a requirement.

  4. robotnic commented on Apr 7, 2015

    @robotnic
    Author

    That's how the form look at the moment:

    bildschirmfoto von 2015-04-07 11 02 59

    Without reading the specs no user will know how to use it.

  5. lloydwatkin commented on Apr 7, 2015

    @lloydwatkin
    Member

    At present I'd reply on the config values and map these to locale aware strings for your own labels. Later we can add fallbacks in english for where the client doesn't understand the values :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions