Example #1
0
                    <div class="form-group">
                        <label class="col-sm-4 control-label">{{Version}}</label>
                        <div class="col-sm-6">
                            <select class="widgetAttr form-control" data-l1key='version'>
                                <option value='dashboard'>{{Dashboard}}</option>
                                <option value='mobile'>{{Mobile}}</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label">{{Type}}</label>
                        <div class="col-sm-6">
                            <select class="widgetAttr form-control" data-l1key='type'>
                                <option value='none'>{{Aucun}}</option>
                                <?php 
foreach (cmd::allType() as $type) {
    echo '<option value="' . $type['type'] . '">' . ucfirst($type['type']) . '</option>';
}
?>
                           </select>
                       </div>
                   </div>
                   <div class="form-group">
                    <label class="col-sm-4 control-label">{{Sous-type}}</label>
                    <div class="col-sm-6">
                        <select class="widgetAttr form-control" data-l1key='subtype'>
                            <option value='none'>{{Aucun}}</option>
                            <?php 
global $JEEDOM_INTERNAL_CONFIG;
foreach ($JEEDOM_INTERNAL_CONFIG['cmd']['type'] as $kType => $type) {
    foreach ($type['subtype'] as $kSubtype => $subtype) {