Setting name for inputs
thomas15v opened this issue · 3 comments
thomas15v commented
+modal("Modal title","addDaemon")
form(action='/admin/add_daemon', method="post")
input(type='hidden', name="id", id="editid")
+input('text','name', 'A nice name for the daemon', "Name")
+input('text','ip', 'The http address from the daemon.', "Address")
+input('text','key', 'The Key for the daemon', "Key")
+input('text','group', 'The group for the daemon', "Group")
+submit-primary('Add')
I have this code. Only my posts don't send data because the name tag is missing. And I can't figure out a way to bruteforce that in their 😟.
rajasegar commented
Fixed in the latest commit , now you can add name as a parameter to the mixin just like you mentioned, so now the syntax will be
+input(type,id,placeholder,label, name)
hagabaka commented
The checkbox and radio mixins still don't allow specifying names.