value.html 452 B

123456789101112
  1. <input data-update="change"<%=
  2. attr("id", id) ..
  3. attr("name", id) ..
  4. attr("type", self.password and "password" or "text") ..
  5. attr("class", self.password and "gluon-input-password" or "gluon-input-text") ..
  6. attr("value", self:cfgvalue()) ..
  7. attr("size", self.size) ..
  8. attr("placeholder", self.placeholder) ..
  9. attr("maxlength", self.maxlength) ..
  10. attr("data-type", self.datatype) ..
  11. attr("data-optional", self.datatype and self.optional)
  12. %> />