| 1 | <div ng-include="'/new/views/universe-header.html'"></div> |
| 2 | <div class="form-inline settings"> |
| 3 | <div class="input-group"> |
| 4 | <div class="input-group-addon">Id:</div> |
| 5 | <input type="text" class="form-control number" ng-model="Data.old.id" disabled> |
| 6 | </div> |
| 7 | <div class="input-group"> |
| 8 | <div class="input-group-addon">Mode:</div> |
| 9 | <select class="form-control priority" ng-model="Data.model.merge_mode" > |
| 10 | <option>HTP</option> |
| 11 | <option>LTP</option> |
| 12 | </select> |
| 13 | </div> |
| 14 | <div class="input-group"> |
| 15 | <div class="input-group-addon">Name:</div> |
| 16 | <input type="text" class="form-control" ng-model="Data.model.name"> |
| 17 | </div> |
| 18 | <button class="btn btn-primary btn-md save-settings" ng-click="Save()" >Save</button> |
| 19 | </div> |
| 20 | <br/> |
| 21 | <div class="row"> |
| 22 | <div class="col-md-6 settings-table"> |
| 23 | <table class="table table-condensed"> |
| 24 | <caption>Input Ports:</caption> |
| 25 | <tr> |
| 26 | <th>Enabled</th> |
| 27 | <th>Device</th> |
| 28 | <th>Description</th> |
| 29 | <th>Mode</th> |
| 30 | <th>Priority</th> |
| 31 | </tr> |
| 32 | <tr class="striped-table" ng-repeat="port in ActivePorts" ng-if="!port.is_output"> |
| 33 | <td> |
| 34 | <div class="checkbox-tr"> |
| 35 | <input type="checkbox" ng-model="Data.Remove[$index]" ng-true-value="''" ng-false-value="'{{port.id}}'"> |
| 36 | </div> |
| 37 | </td> |
| 38 | <td>{{port.device}}</td> |
| 39 | <td>{{port.description}}</td> |
| 40 | <td> |
| 41 | <div ng-if="port.priority.priority_capability"> |
| 42 | <div ng-if="port.priority.priority_capability === 'full'"> |
| 43 | <select class="form-control priority" ng-model="port.priority.current_mode"> |
| 44 | <option value="inherit">Inherit</option> |
| 45 | <option value="static">Static</option> |
| 46 | </select> |
| 47 | </div> |
| 48 | <div class="static-fake" ng-if="port.priority.priority_capability === 'static'">static</div> |
| 49 | </div> |
| 50 | </td> |
| 51 | <td> |
| 52 | <input class="form-control priority" ng-if="port.priority.current_mode" ng-model="port.priority.value" type="number" ng-disabled="port.priority.current_mode === 'inherit'"/> |
| 53 | </td> |
| 54 | </tr> |
| 55 | <tr class="striped-table" ng-repeat="port in DeactivePorts" ng-if="!port.is_output"> |
| 56 | <td> |
| 57 | <div class="checkbox-tr"> |
| 58 | <input type="checkbox" ng-model="Data.Add[$index]" ng-true-value="'{{port.id}}'" ng-false-value="''"> |
| 59 | </div> |
| 60 | </td> |
| 61 | <td>{{port.device}}</td> |
| 62 | <td>{{port.description}}</td> |
| 63 | <td> |
| 64 | <div ng-if="port.priority.priority_capability"> |
| 65 | <div ng-if="port.priority.priority_capability === 'full'"> |
| 66 | <select class="form-control priority" ng-model="port.priority.current_mode"> |
| 67 | <option value="inherit">Inherit</option> |
| 68 | <option value="static">Static</option> |
| 69 | </select> |
| 70 | </div> |
| 71 | <div class="static-fake" ng-if="port.priority.priority_capability === 'static'">static</div> |
| 72 | </div> |
| 73 | </td> |
| 74 | <td> |
| 75 | <input class="form-control priority" ng-if="port.priority.current_mode" ng-model="port.priority.value" type="number" ng-disabled="port.priority.current_mode === 'inherit'"/> |
| 76 | </td> |
| 77 | </tr> |
| 78 | </table> |
| 79 | </div> |
| 80 | <div class="col-md-6 settings-table"> |
| 81 | <table class="table table-condensed"> |
| 82 | <caption>Output Ports:</caption> |
| 83 | <tr> |
| 84 | <th>Enabled</th> |
| 85 | <th>Device</th> |
| 86 | <th>Description</th> |
| 87 | <th>Mode</th> |
| 88 | <th>Priority</th> |
| 89 | </tr> |
| 90 | <tr class="striped-table" ng-repeat="port in ActivePorts" ng-if="port.is_output"> |
| 91 | <td> |
| 92 | <div class="checkbox-tr"> |
| 93 | <input type="checkbox" ng-model="Data.Remove[$index]" ng-true-value="''" ng-false-value="'{{port.id}}'"> |
| 94 | </div> |
| 95 | </td> |
| 96 | <td>{{port.device}}</td> |
| 97 | <td>{{port.description}}</td> |
| 98 | <td> |
| 99 | <div ng-if="port.priority.priority_capability"> |
| 100 | <div ng-if="port.priority.priority_capability === 'full'"> |
| 101 | <select class="form-control priority" ng-model="port.priority.current_mode"> |
| 102 | <option value="inherit">Inherit</option> |
| 103 | <option value="static">Static</option> |
| 104 | </select> |
| 105 | </div> |
| 106 | <div class="static-fake" ng-if="port.priority.priority_capability === 'static'">static</div> |
| 107 | </div> |
| 108 | </td> |
| 109 | <td> |
| 110 | <input class="form-control priority" ng-if="port.priority.current_mode" ng-model="port.priority.value" type="number" ng-disabled="port.priority.current_mode === 'inherit'"/> |
| 111 | </td> |
| 112 | </tr> |
| 113 | <tr class="striped-table" ng-repeat="port in DeactivePorts" ng-if="port.is_output"> |
| 114 | <td> |
| 115 | <div class="checkbox-tr"> |
| 116 | <input type="checkbox" ng-model="Data.Add[$index]" ng-true-value="'{{port.id}}'" ng-false-value="''"> |
| 117 | </div> |
| 118 | </td> |
| 119 | <td>{{port.device}}</td> |
| 120 | <td>{{port.description}}</td> |
| 121 | <td> |
| 122 | <div ng-if="port.priority.priority_capability"> |
| 123 | <div ng-if="port.priority.priority_capability === 'full'"> |
| 124 | <select class="form-control priority" ng-model="port.priority.current_mode"> |
| 125 | <option value="inherit">Inherit</option> |
| 126 | <option value="static">Static</option> |
| 127 | </select> |
| 128 | </div> |
| 129 | <div class="static-fake" ng-if="port.priority.priority_capability === 'static'">static</div> |
| 130 | </div> |
| 131 | </td> |
| 132 | <td> |
| 133 | <input class="form-control priority" ng-if="port.priority.current_mode" ng-model="port.priority.value" type="number" ng-disabled="port.priority.current_mode === 'inherit'"/> |
| 134 | </td> |
| 135 | </tr> |
| 136 | </table> |
| 137 | </div> |
| 138 | </div> |