Added currency field type.
This commit is contained in:
parent
2983bcb56b
commit
4ac4448336
@ -93,7 +93,7 @@
|
||||
},
|
||||
"priceCurrency": {
|
||||
"title": "Currency",
|
||||
"type": "text",
|
||||
"type": "currency",
|
||||
"required": false,
|
||||
"group": 2,
|
||||
"short": true
|
||||
|
@ -25,3 +25,6 @@
|
||||
{{#fieldtype_status}}
|
||||
{{>mdl_input_status}}
|
||||
{{/fieldtype_status}}
|
||||
{{#fieldtype_currency}}
|
||||
{{>mdl_input_currency}}
|
||||
{{/fieldtype_currency}}
|
||||
|
7
templates/partials/mdl_input_currency.mustache
Normal file
7
templates/partials/mdl_input_currency.mustache
Normal file
@ -0,0 +1,7 @@
|
||||
<p>
|
||||
<select name="{{field_id}}" size="1">
|
||||
<option value="EUR">Euro - €</option>
|
||||
<option value="USD">US Dollar - $</option>
|
||||
<option value="GBP">British Pound - £</option>
|
||||
</select>
|
||||
</p>
|
Reference in New Issue
Block a user