VJean
Member
1. Need type: 'checkbox' for settings. Types
This setting it's bad usabelity:
2. Fix for Script page. Add <label for="id" />
Current view:
Change to:
3. Add var and value "patern" for input tag. http://www.w3schools.com/tags/att_input_pattern.asp
generated to setting:
This setting it's bad usabelity:
PHP:
vars: {
selectOne: {
title: 'check it',
type: 'select',
options: ['yes','no']
}
},
2. Fix for Script page. Add <label for="id" />
Current view:
HTML:
<h4 class="ng-binding ng-scope" ng-if="!script.enableWeb" style="margin-bottom: 3px;">
<input class="ng-pristine ng-untouched ng-valid" ng-model="settings[scriptName].enabled" value="1" style="margin-right: 6px;" ng-hide="script.autorun" type="checkbox">
Advertising (Text)
<small class="ng-binding">2.0 by Michael Friese <[email protected]>, Raphael Touet <[email protected]> (advertising)</small>
</h4>
HTML:
<h4 class="ng-binding ng-scope" ng-if="!script.enableWeb" style="margin-bottom: 3px;">
<input id="advertising" class="ng-pristine ng-untouched ng-valid" ng-model="settings[scriptName].enabled" value="1" style="margin-right: 6px;" ng-hide="script.autorun" type="checkbox">
<label for="advertising"> Advertising (Text)</label>
<small class="ng-binding">2.0 by Michael Friese <[email protected]>, Raphael Touet <[email protected]> (advertising)</small>
</h4>
3. Add var and value "patern" for input tag. http://www.w3schools.com/tags/att_input_pattern.asp
PHP:
vars: {
stringPatern: {
title: 'sample string patern',
type: 'string',
pattern: '[A-Za-z]{3}'
}
},
HTML:
<input ng-if="var.type == 'string'" ng-model="settings[var.name]" class="form-control ng-pristine ng-untouched ng-valid ng-scope" id="f__adminUids" placeholder="" type="text" pattern="[A-Za-z]{3}>