dynlist.html 466 B

1234567891011121314151617181920
  1. <div<%=
  2. attr("data-dynlist", {
  3. prefix = id,
  4. type = self.datatype,
  5. optional = self.datatype and self.optional,
  6. size = self.size,
  7. placeholder = self.placeholder,
  8. })
  9. %>>
  10. <%
  11. for i, val in ipairs(self:cfgvalue()) do
  12. %>
  13. <input class="gluon-input-text" value="<%|val%>" data-update="change" type="text"<%=
  14. attr("id", id .. "." .. i) ..
  15. attr("name", id) ..
  16. attr("size", self.size) ..
  17. attr("placeholder", self.placeholder)
  18. %> /><br />
  19. <% end %>
  20. </div>