mapping.controller.js
7 years ago
mapping.directive.js
7 years ago
mapping.scss
7 years ago
mapping.tpl.html
7 years ago
mapping.tpl.html
67 lines
| 1 | <div class="wp-pointer wp-pointer-right" style="width: 450px; display: block; position: absolute; top: -70px; left: -23px;" ng-if="show"> |
| 2 | <div class="wp-pointer-content"> |
| 3 | <fieldset> |
| 4 | <table cellpadding="0" cellspacing="5" class="cf-form-table" rel="cf_mapping_0"> |
| 5 | <thead> |
| 6 | <tr> |
| 7 | <td>Exported Data</td> |
| 8 | <td>Translated To</td> |
| 9 | <td> </td> |
| 10 | </tr> |
| 11 | </thead> |
| 12 | <tbody> |
| 13 | <tr class="form-field" ng-repeat="mapping in mappings"> |
| 14 | <td style="width: 50%;"> |
| 15 | <input type="text" ng-model="mapping.mapFrom"/> |
| 16 | </td> |
| 17 | <td style="width: 50%;"> |
| 18 | <div ng-if="context == 'sizeType'"> |
| 19 | <select chosen ng-model="mapping.mapTo" > |
| 20 | <option value="">Please select</option> |
| 21 | <option value="regular">Regular</option> |
| 22 | <option value="petite">Petite</option> |
| 23 | <option value="plus">Plus</option> |
| 24 | <option value="big and tall">Big and tall</option> |
| 25 | <option value="maternity">Maternity</option> |
| 26 | </select> |
| 27 | </div> |
| 28 | <div ng-if="context == 'condition' "> |
| 29 | <select chosen ng-model="mapping.mapTo"> |
| 30 | <option value="new">New</option> |
| 31 | <option value="refurbished">Refurbished</option> |
| 32 | <option value="used">Used</option> |
| 33 | </select> |
| 34 | </div> |
| 35 | <div ng-if="context != 'sizeType' && context != 'condition'"> |
| 36 | <input type="text" ng-model="mapping.mapTo" /> |
| 37 | </div> |
| 38 | </td> |
| 39 | <td class="action remove"> |
| 40 | <a href="" ng-click="removeMapping(mapping)" ng-show="$index > 0" |
| 41 | style="right:-10px;"></a> |
| 42 | </td> |
| 43 | </tr> |
| 44 | <tr> |
| 45 | <td colspan="3"> |
| 46 | <a href="" ng-click="addMapping()" title="Add Another" class="action add-new-key add-new-entry"> |
| 47 | Add Another |
| 48 | </a> |
| 49 | </td> |
| 50 | </tr> |
| 51 | <tr> |
| 52 | <td colspan="3"> |
| 53 | <div class="wrap" style="position:relative;"> |
| 54 | <a class="save_popup save_mr" href="" ng-click="saveMappings()">Save Rules</a> |
| 55 | </div> |
| 56 | </td> |
| 57 | </tr> |
| 58 | </tbody> |
| 59 | </table> |
| 60 | <input type="hidden" name="custom_mapping_rules[]" value=""> |
| 61 | </fieldset> |
| 62 | <div class="wp-pointer-buttons"><a class="close" href="" ng-click="close()">Close</a></div> |
| 63 | </div> |
| 64 | <div class="wp-pointer-arrow"> |
| 65 | <div class="wp-pointer-arrow-inner"></div> |
| 66 | </div> |
| 67 | </div> |