giterlizzi / dokuwiki-plugin-bootswrapper

Bootstrap Wrapper for DokuWiki
GNU General Public License v2.0
35 stars 22 forks source link

Bureaucracy Form & Data Alias in Modal component not working #63

Closed marcofenoglio closed 7 years ago

marcofenoglio commented 7 years ago

Using the sintax below, the data_aliastextbox defined does not offer the valid values like defined in the data type alias table (Type Alias: "client", Type: "page", Data Prefix: "client:")

<btn type="primary" modal="new_invoice">New Invoice</btn>
<modal id="new_invoice" title="New Invoice">

<form>
action template template:new_invoice "invoice:N@@Year@@@@Invoice Number@@"

fieldset "Insert Invoice"
data_aliastextbox "Client" "_client"
number "Invoice Number" 0000
number "Year" >=2015
date "Invoice Date"
textbox "Total"
yesno "Paid" "!no" "=yes"
submit "Insert"

fieldset "" "Paid"
date "Payment Date"

</form>
</modal>

An other issue is: if I use the same form code above, but in a separate page, and use the remote attribute for Moda,l the dependencies of the fieldset "Paid" from the choice of yesno "Paid" does not work!