Esempio n. 1
0
const RegFormI18n = function (locale) {
  return t.subtype(t.struct({
    openDate: t.Dat,
    closeDate: t.Dat,
    url: t.maybe(Url)
  }), function (value) {
    return (
      (value.openDate <= value.closeDate)
    )
  })
}
Esempio n. 2
0
        hasError: false,
        help: <i>{_T('form.changePassword.passwordCheck.help', {locale})}</i>,
        attrs: {
          placeholder: _T('form.changePassword.passwordCheck.placeholder', {locale})
        }
      }
    }
  }
}
exports.ChangePasswordFormOptions = function (locale) {
  return ChangePasswordFormOptionsI18n(locale)
}

exports.ManageForm = t.struct({
  ocname: t.Str,
  email: t.maybe(Email),
  contact: t.maybe(t.Str),
  url: t.maybe(t.Str),
  zipcode: t.maybe(t.Num),
  country: t.maybe(t.Str),
  city: t.maybe(t.Str),
  address: t.maybe(t.Str),
  tel: t.maybe(t.Str),
  fax: t.maybe(t.Str)
})

const ManageFormOptionsI18n = function (locale) {
  return {
    auto: 'none',
    fields: {
      ocname: {