|
44 | 44 | </style> |
45 | 45 |
|
46 | 46 | <div class="row row-overflow"> |
47 | | - <div class="col-xs-12 eqLogicThumbnailDisplay"> |
48 | | - <legend><i class="fas fa-cog"></i> {{Gestion}}</legend> |
| 47 | + <div class="col-xs-12 eqLogicThumbnailDisplay"> |
| 48 | + <legend><i class="fas fa-cog"></i> {{Gestion}}</legend> |
49 | 49 | <div class="eqLogicThumbnailContainer"> |
50 | 50 | <div class="cursor eqLogicAction logoPrimary" data-action="add" > |
51 | 51 | <i class="fas fa-plus-circle"></i> |
52 | 52 | <br/> |
53 | 53 | <span>{{Ajouter}}</span> |
54 | 54 | </div> |
55 | | - <div class="cursor eqLogicAction logoSecondary" data-action="gotoPluginConf"> |
56 | | - <i class="fas fa-wrench"></i> |
57 | | - <br/> |
58 | | - <span>{{Configuration}}</span> |
59 | | - </div> |
60 | | - <div class="cursor logoSecondary" id="bt_getFromMarketicon"> |
61 | | - <i class="fas fa-shopping-cart"></i> |
62 | | - <br /> |
63 | | - <span>{{Market}}</span> |
64 | | - </div> |
65 | | - </div> |
66 | | - <legend><i class="fas fa-file"></i> {{Mes Scripts}}</legend> |
67 | | - <input class="form-control" placeholder="{{Rechercher}}" id="in_searchEqlogic" /> |
68 | | - <div class="eqLogicThumbnailContainer"> |
69 | | - <?php |
70 | | - foreach ($eqLogics as $eqLogic) { |
71 | | - $opacity = ($eqLogic->getIsEnable()) ? '' : 'disableCard'; |
72 | | - echo '<div class="eqLogicDisplayCard cursor '.$opacity.'" data-eqLogic_id="' . $eqLogic->getId() . '" >'; |
73 | | - echo '<img src="' . $plugin->getPathImgIcon() . '" />'; |
74 | | - echo '<br>'; |
75 | | - echo '<span class="name">' . $eqLogic->getHumanName(true, true) . '</span>'; |
76 | | - echo '</div>'; |
77 | | - } |
78 | | - ?> |
79 | | - </div> |
80 | | - </div> |
| 55 | + <div class="cursor eqLogicAction logoSecondary" data-action="gotoPluginConf"> |
| 56 | + <i class="fas fa-wrench"></i> |
| 57 | + <br/> |
| 58 | + <span>{{Configuration}}</span> |
| 59 | + </div> |
| 60 | + <div class="cursor logoSecondary" id="bt_getFromMarketicon"> |
| 61 | + <i class="fas fa-shopping-cart"></i> |
| 62 | + <br /> |
| 63 | + <span>{{Market}}</span> |
| 64 | + </div> |
| 65 | + </div> |
| 66 | + <legend><i class="fas fa-file"></i> {{Mes Scripts}}</legend> |
| 67 | + <input class="form-control" placeholder="{{Rechercher}}" id="in_searchEqlogic" /> |
| 68 | + <div class="eqLogicThumbnailContainer"> |
| 69 | + <?php |
| 70 | + foreach ($eqLogics as $eqLogic) { |
| 71 | + $opacity = ($eqLogic->getIsEnable()) ? '' : 'disableCard'; |
| 72 | + echo '<div class="eqLogicDisplayCard cursor '.$opacity.'" data-eqLogic_id="' . $eqLogic->getId() . '" >'; |
| 73 | + echo '<img src="' . $plugin->getPathImgIcon() . '" />'; |
| 74 | + echo '<br>'; |
| 75 | + echo '<span class="name">' . $eqLogic->getHumanName(true, true) . '</span>'; |
| 76 | + echo '</div>'; |
| 77 | + } |
| 78 | + ?> |
| 79 | + </div> |
| 80 | + </div> |
81 | 81 | </div> |
82 | 82 |
|
83 | 83 | <div class="col-xs-12 eqLogic" style="display: none;"> |
84 | 84 | <div class="input-group pull-right" style="display:inline-flex"> |
85 | | - <span class="input-group-btn"> |
86 | | - <a class="btn btn-default btn-sm eqLogicAction" data-action="configure"><i class="fas fa-cogs"></i> {{Configuration avancée}}</a><a class="btn btn-default btn-sm eqLogicAction" data-action="copy"><i class="fas fa-copy"></i> {{Dupliquer}}</a><a class="btn btn-sm btn-success eqLogicAction" data-action="save"><i class="fas fa-check-circle"></i> {{Sauvegarder}}</a><a class="btn btn-danger btn-sm eqLogicAction roundedRight" data-action="remove"><i class="fas fa-minus-circle"></i> {{Supprimer}}</a> |
87 | | - </span> |
88 | | - </div> |
89 | | - <ul class="nav nav-tabs" role="tablist"> |
90 | | - <li role="presentation"><a href="#" class="eqLogicAction" aria-controls="home" role="tab" data-toggle="tab" data-action="returnToThumbnailDisplay"><i class="fas fa-arrow-circle-left"></i></a></li> |
91 | | - <li role="presentation" class="active"><a href="#eqlogictab" aria-controls="home" role="tab" data-toggle="tab"><i class="fas fa-tachometer-alt"></i> {{Equipement}}</a></li> |
92 | | - <li role="presentation"><a href="#commandtab" aria-controls="profile" role="tab" data-toggle="tab"><i class="fas fa-list-alt"></i> {{Commandes}}</a></li> |
93 | | - </ul> |
94 | | - <div class="tab-content" style="height:calc(100% - 50px);overflow:auto;overflow-x: hidden;"> |
95 | | - <div role="tabpanel" class="tab-pane active" id="eqlogictab"> |
96 | | - <br/> |
97 | | - <form class="form-horizontal"> |
98 | | - <fieldset> |
99 | | - <div class="form-group"> |
100 | | - <label class="col-sm-2 control-label">{{Nom de l'équipement script}}</label> |
101 | | - <div class="col-sm-3"> |
102 | | - <input type="text" class="eqLogicAttr form-control" data-l1key="id" style="display : none;" /> |
103 | | - <input type="text" class="eqLogicAttr form-control" data-l1key="name" placeholder="{{Nom de l'équipement script}}"/> |
104 | | - </div> |
105 | | - </div> |
106 | | - <div class="form-group"> |
107 | | - <label class="col-sm-2 control-label" >{{Objet parent}}</label> |
108 | | - <div class="col-sm-3"> |
109 | | - <select class="form-control eqLogicAttr" data-l1key="object_id"> |
110 | | - <option value="">{{Aucun}}</option> |
111 | | - <?php |
112 | | - foreach (jeeObject::all() as $object) { |
113 | | - echo '<option value="' . $object->getId() . '">' . $object->getName() . '</option>'; |
114 | | - } |
115 | | - ?> |
116 | | - </select> |
117 | | - </div> |
118 | | - </div> |
119 | | - <div class="form-group"> |
120 | | - <label class="col-sm-2 control-label">{{Catégorie}}</label> |
121 | | - <div class="col-sm-8"> |
122 | | - <?php |
123 | | - foreach (jeedom::getConfiguration('eqLogic:category') as $key => $value) { |
124 | | - echo '<label class="checkbox-inline">'; |
125 | | - echo '<input type="checkbox" class="eqLogicAttr" data-l1key="category" data-l2key="' . $key . '" />' . $value['name']; |
126 | | - echo '</label>'; |
127 | | - } |
128 | | - ?> |
129 | | - </div> |
130 | | - </div> |
131 | | - <div class="form-group"> |
132 | | - <label class="col-sm-2 control-label"></label> |
133 | | - <div class="col-sm-9"> |
134 | | - <label class="checkbox-inline"><input type="checkbox" class="eqLogicAttr" data-l1key="isEnable" checked/>{{Activer}}</label> |
135 | | - <label class="checkbox-inline"><input type="checkbox" class="eqLogicAttr" data-l1key="isVisible" checked/>{{Visible}}</label> |
136 | | - </div> |
137 | | - </div> |
138 | | - <div class="form-group"> |
139 | | - <label class="col-sm-2 control-label">{{Auto-actualisation (cron)}}</label> |
140 | | - <div class="col-sm-2"> |
141 | | - <input type="text" class="eqLogicAttr form-control" data-l1key="configuration" data-l2key="autorefresh" placeholder="{{Auto-actualisation (cron)}}"/> |
142 | | - </div> |
143 | | - <div class="col-sm-1"> |
144 | | - <i class="fas fa-question-circle cursor floatright" id="bt_cronGenerator"></i> |
145 | | - </div> |
146 | | - </div> |
147 | | - <div class="form-group"> |
148 | | - <label class="col-sm-2 control-label">{{Délai avant d'actualiser les infos suite à une action (en secondes)}}</label> |
149 | | - <div class="col-sm-2"> |
150 | | - <input type="text" class="eqLogicAttr form-control" data-l1key="configuration" data-l2key="delayBeforeRefrehInfo" /> |
151 | | - </div> |
152 | | - </div> |
153 | | - </fieldset> |
154 | | - </form> |
155 | | - </div> |
156 | | - <div role="tabpanel" class="tab-pane" id="commandtab"> |
157 | | - <a class="btn btn-default btn-sm cmdAction pull-right" style="margin-top:5px;" data-action="add"><i class="fas fa-plus-circle"></i> {{Ajouter une commande script}}</a> |
158 | | - <br /> |
159 | | - <br /> |
160 | | - <div class="alert alert-info"> |
161 | | - {{ Sous type :}} <br/> |
162 | | - - {{Curseur : mettre #slider# pour récupérer la valeur}}<br/> |
163 | | - - {{Couleur : mettre #color# pour récupérer la valeur}}<br/> |
164 | | - - {{Message : mettre #title# et #message#}}<br/> |
165 | | - - {{Liste : value|display;}} |
166 | | - </div> |
167 | | - <br/> |
168 | | - <table id="table_cmd" class="table table-bordered table-condensed"> |
169 | | - <thead> |
170 | | - <tr> |
171 | | - <th style="width: 200px;">{{Nom}}</th> |
172 | | - <th style="width: 100px;">{{Type script}}</th> |
173 | | - <th style="width: 70px;">{{Type}}</th> |
174 | | - <th style="width: 400px;">{{Requête}}</th> |
175 | | - <th style="width: *;">{{Options}}</th> |
176 | | - <th style="width: 110px;">{{Divers}}</th> |
177 | | - <th style="width: 150px;">{{Paramètres}}</th> |
178 | | - <th style="width: 150px;"></th> |
179 | | - </tr> |
180 | | - </thead> |
181 | | - <tbody> |
182 | | - |
183 | | - </tbody> |
184 | | - </table> |
185 | | - </div> |
186 | | - </div> |
| 85 | + <span class="input-group-btn"> |
| 86 | + <a class="btn btn-default btn-sm eqLogicAction" data-action="configure"><i class="fas fa-cogs"></i> {{Configuration avancée}}</a><a class="btn btn-default btn-sm eqLogicAction" data-action="copy"><i class="fas fa-copy"></i> {{Dupliquer}}</a><a class="btn btn-sm btn-success eqLogicAction" data-action="save"><i class="fas fa-check-circle"></i> {{Sauvegarder}}</a><a class="btn btn-danger btn-sm eqLogicAction roundedRight" data-action="remove"><i class="fas fa-minus-circle"></i> {{Supprimer}}</a> |
| 87 | + </span> |
| 88 | + </div> |
| 89 | + <ul class="nav nav-tabs" role="tablist"> |
| 90 | + <li role="presentation"><a href="#" class="eqLogicAction" aria-controls="home" role="tab" data-toggle="tab" data-action="returnToThumbnailDisplay"><i class="fas fa-arrow-circle-left"></i></a></li> |
| 91 | + <li role="presentation" class="active"><a href="#eqlogictab" aria-controls="home" role="tab" data-toggle="tab"><i class="fas fa-tachometer-alt"></i> {{Equipement}}</a></li> |
| 92 | + <li role="presentation"><a href="#commandtab" aria-controls="profile" role="tab" data-toggle="tab"><i class="fas fa-list-alt"></i> {{Commandes}}</a></li> |
| 93 | + </ul> |
| 94 | + <div class="tab-content" style="height:calc(100% - 50px);overflow:auto;overflow-x: hidden;"> |
| 95 | + <div role="tabpanel" class="tab-pane active" id="eqlogictab"> |
| 96 | + <br/> |
| 97 | + <form class="form-horizontal"> |
| 98 | + <fieldset> |
| 99 | + <div class="form-group"> |
| 100 | + <label class="col-sm-2 control-label">{{Nom de l'équipement script}}</label> |
| 101 | + <div class="col-sm-3"> |
| 102 | + <input type="text" class="eqLogicAttr form-control" data-l1key="id" style="display : none;" /> |
| 103 | + <input type="text" class="eqLogicAttr form-control" data-l1key="name" placeholder="{{Nom de l'équipement script}}"/> |
| 104 | + </div> |
| 105 | + </div> |
| 106 | + <div class="form-group"> |
| 107 | + <label class="col-sm-2 control-label" >{{Objet parent}}</label> |
| 108 | + <div class="col-sm-3"> |
| 109 | + <select class="form-control eqLogicAttr" data-l1key="object_id"> |
| 110 | + <option value="">{{Aucun}}</option> |
| 111 | + <?php |
| 112 | + foreach (jeeObject::all() as $object) { |
| 113 | + echo '<option value="' . $object->getId() . '">' . $object->getName() . '</option>'; |
| 114 | + } |
| 115 | + ?> |
| 116 | + </select> |
| 117 | + </div> |
| 118 | + </div> |
| 119 | + <div class="form-group"> |
| 120 | + <label class="col-sm-2 control-label">{{Catégorie}}</label> |
| 121 | + <div class="col-sm-8"> |
| 122 | + <?php |
| 123 | + foreach (jeedom::getConfiguration('eqLogic:category') as $key => $value) { |
| 124 | + echo '<label class="checkbox-inline">'; |
| 125 | + echo '<input type="checkbox" class="eqLogicAttr" data-l1key="category" data-l2key="' . $key . '" />' . $value['name']; |
| 126 | + echo '</label>'; |
| 127 | + } |
| 128 | + ?> |
| 129 | + </div> |
| 130 | + </div> |
| 131 | + <div class="form-group"> |
| 132 | + <label class="col-sm-2 control-label"></label> |
| 133 | + <div class="col-sm-9"> |
| 134 | + <label class="checkbox-inline"><input type="checkbox" class="eqLogicAttr" data-l1key="isEnable" checked/>{{Activer}}</label> |
| 135 | + <label class="checkbox-inline"><input type="checkbox" class="eqLogicAttr" data-l1key="isVisible" checked/>{{Visible}}</label> |
| 136 | + </div> |
| 137 | + </div> |
| 138 | + <div class="form-group"> |
| 139 | + <label class="col-sm-2 control-label">{{Auto-actualisation (cron)}}</label> |
| 140 | + <div class="col-sm-2"> |
| 141 | + <input type="text" class="eqLogicAttr form-control" data-l1key="configuration" data-l2key="autorefresh" placeholder="{{Auto-actualisation (cron)}}"/> |
| 142 | + </div> |
| 143 | + <div class="col-sm-1"> |
| 144 | + <i class="fas fa-question-circle cursor floatright" id="bt_cronGenerator"></i> |
| 145 | + </div> |
| 146 | + </div> |
| 147 | + <div class="form-group"> |
| 148 | + <label class="col-sm-2 control-label">{{Délai avant d'actualiser les infos suite à une action (en secondes)}}</label> |
| 149 | + <div class="col-sm-2"> |
| 150 | + <input type="text" class="eqLogicAttr form-control" data-l1key="configuration" data-l2key="delayBeforeRefrehInfo" /> |
| 151 | + </div> |
| 152 | + </div> |
| 153 | + </fieldset> |
| 154 | + </form> |
| 155 | + </div> |
| 156 | + <div role="tabpanel" class="tab-pane" id="commandtab"> |
| 157 | + <a class="btn btn-default btn-sm cmdAction pull-right" style="margin-top:5px;" data-action="add"><i class="fas fa-plus-circle"></i> {{Ajouter une commande script}}</a> |
| 158 | + <br /> |
| 159 | + <br /> |
| 160 | + <div class="alert alert-info"> |
| 161 | + {{ Sous type :}} <br/> |
| 162 | + - {{Curseur : mettre #slider# pour récupérer la valeur}}<br/> |
| 163 | + - {{Couleur : mettre #color# pour récupérer la valeur}}<br/> |
| 164 | + - {{Message : mettre #title# et #message#}}<br/> |
| 165 | + - {{Liste : value|display;}} |
| 166 | + </div> |
| 167 | + <br/> |
| 168 | + <table id="table_cmd" class="table table-bordered table-condensed"> |
| 169 | + <thead> |
| 170 | + <tr> |
| 171 | + <th style="width: 200px;">{{Nom}}</th> |
| 172 | + <th style="width: 100px;">{{Type script}}</th> |
| 173 | + <th style="width: 70px;">{{Type}}</th> |
| 174 | + <th style="width: 250px;">{{Requête}}</th> |
| 175 | + <th style="width: *;">{{Options}}</th> |
| 176 | + <th style="width: 110px;">{{Divers}}</th> |
| 177 | + <th style="width: 150px;">{{Paramètres}}</th> |
| 178 | + <th style="width: 150px;"></th> |
| 179 | + </tr> |
| 180 | + </thead> |
| 181 | + <tbody> |
| 182 | + |
| 183 | + </tbody> |
| 184 | + </table> |
| 185 | + </div> |
| 186 | + </div> |
187 | 187 | </div> |
188 | 188 | <div id="md_browseScriptFile" title="Parcourir..."> |
189 | | - <div style="display: none;" id="div_browseScriptFileAlert"></div> |
190 | | - <div id="div_browseScriptFileTree"></div> |
| 189 | + <div style="display: none;" id="div_browseScriptFileAlert"></div> |
| 190 | + <div id="div_browseScriptFileTree"></div> |
191 | 191 | </div> |
192 | 192 |
|
193 | 193 | <div id="md_editScriptFile" title="Editer..."> |
194 | | - <div style="display: none;" id="div_editScriptFileAlert"></div> |
195 | | - <textarea id="ta_editScriptFile" class="form-control" style="height: 100%;"></textarea> |
| 194 | + <div style="display: none;" id="div_editScriptFileAlert"></div> |
| 195 | + <textarea id="ta_editScriptFile" class="form-control" style="height: 100%;"></textarea> |
196 | 196 | </div> |
197 | 197 |
|
198 | 198 | <?php include_file('3rdparty', 'jquery.fileTree/jquery.easing.1.3', 'js', 'script');?> |
|
0 commit comments