-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pack.move): rework for pack move to add fiber offers
- add the new eligibility search for copper and fiber offers - add the fiber offers into the result of offers available Ref: UXCT-193 Signed-off-by: Stephanie Moallic <[email protected]>
- Loading branch information
Stephanie Moallic
committed
Aug 5, 2020
1 parent
8406ecc
commit ef39f1b
Showing
99 changed files
with
5,219 additions
and
1,891 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
packages/manager/apps/telecom/src/app/telecom/pack/move/address/current/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import angular from 'angular'; | ||
|
||
import ngTranslateAsyncLoader from '@ovh-ux/ng-translate-async-loader'; | ||
import uiRouter from '@uirouter/angularjs'; | ||
import angularTranslate from 'angular-translate'; | ||
|
||
import addressCurrent from './move-address-current.component'; | ||
|
||
const moduleName = 'ovhManagerTelecomPackMoveAddressCurrent'; | ||
|
||
angular | ||
.module(moduleName, [ngTranslateAsyncLoader, uiRouter, angularTranslate]) | ||
.component('packMoveAddressCurrent', addressCurrent); | ||
|
||
export default moduleName; |
12 changes: 12 additions & 0 deletions
12
.../apps/telecom/src/app/telecom/pack/move/address/current/move-address-current.component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import template from './move-address-current.html'; | ||
|
||
export default { | ||
template, | ||
bindings: { | ||
address: '=?', | ||
addressLoading: '=?', | ||
portLineNumber: '=?', | ||
portability: '=?', | ||
lineNumber: '@', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
.../telecom/src/app/telecom/pack/move/address/current/pack-move-address-current.component.js
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
packages/manager/apps/telecom/src/app/telecom/pack/move/address/future/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import angular from 'angular'; | ||
|
||
import ngTranslateAsyncLoader from '@ovh-ux/ng-translate-async-loader'; | ||
import uiRouter from '@uirouter/angularjs'; | ||
import angularTranslate from 'angular-translate'; | ||
|
||
import addressFuture from './move-address-future.component'; | ||
|
||
const moduleName = 'ovhManagerTelecomPackMoveAddressFuture'; | ||
|
||
angular | ||
.module(moduleName, [ngTranslateAsyncLoader, uiRouter, angularTranslate]) | ||
.component('packMoveAddressFuture', addressFuture); | ||
|
||
export default moduleName; |
15 changes: 15 additions & 0 deletions
15
...er/apps/telecom/src/app/telecom/pack/move/address/future/move-address-future.component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import controller from './move-address-future.controller'; | ||
import template from './move-address-future.html'; | ||
|
||
export default { | ||
controller, | ||
template, | ||
bindings: { | ||
address: '=?', | ||
addressLoading: '=?', | ||
rio: '=?', | ||
keepLineNumber: '=?', | ||
lineNumber: '@', | ||
canKeepLineNumber: '=?', | ||
}, | ||
}; |
6 changes: 6 additions & 0 deletions
6
...r/apps/telecom/src/app/telecom/pack/move/address/future/move-address-future.controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default class MoveAddressFutureCtrl { | ||
/* @ngInject */ | ||
constructor(tucValidator) { | ||
this.tucValidator = tucValidator; | ||
} | ||
} |
106 changes: 106 additions & 0 deletions
106
...es/manager/apps/telecom/src/app/telecom/pack/move/address/future/move-address-future.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
<div class="col-md-5 col-sm-12 col-xs-12 m-0 p-0"> | ||
<div class="block-emphasis"> | ||
<div class="block-emphasis__row"> | ||
<div class="block-emphasis__column block-emphasis__column--first"> | ||
<span | ||
class="location__icon ovh-font ovh-font-home" | ||
aria-hidden="true" | ||
></span> | ||
</div> | ||
<div class="block-emphasis__column"> | ||
<h3 data-translate="pack_move_line_future_address"></h3> | ||
<div class="text-center" data-ng-if="$ctrl.loading"> | ||
<oui-spinner></oui-spinner> | ||
</div> | ||
<div | ||
data-ng-if="$ctrl.address.floor || $ctrl.address.door || $ctrl.address.stairs" | ||
> | ||
<span data-ng-if="$ctrl.address.door"> | ||
<span | ||
data-translate="pack_move_line_address_door" | ||
></span> | ||
<span data-ng-bind="$ctrl.address.door"></span> | ||
</span> | ||
<span data-ng-if="$ctrl.address.floor"> | ||
<span | ||
data-translate="pack_move_line_address_floor" | ||
></span> | ||
<span data-ng-bind="$ctrl.address.floor"></span> | ||
</span> | ||
<span data-ng-if="$ctrl.address.stairs"> | ||
<span | ||
data-translate="pack_move_line_address_stairs" | ||
></span> | ||
<span data-ng-bind="$ctrl.address.stairs"></span> | ||
</span> | ||
</div> | ||
<div | ||
data-ng-if="$ctrl.address.residence || $ctrl.address.building" | ||
> | ||
<span data-ng-if="$ctrl.address.building"> | ||
<span | ||
data-translate="pack_move_line_address_building" | ||
></span> | ||
<span data-ng-bind="$ctrl.address.building"></span> | ||
</span> | ||
<span data-ng-if="$ctrl.address.residence"> | ||
<span | ||
data-translate="pack_move_line_address_residence" | ||
></span> | ||
<span | ||
data-ng-bind="$ctrl.address.address.residence" | ||
></span> | ||
</span> | ||
</div> | ||
<div> | ||
<span data-ng-bind="$ctrl.address.streetNumber"></span> | ||
<span data-ng-bind="$ctrl.address.streetName"></span> | ||
</div> | ||
<div> | ||
<span data-ng-bind="$ctrl.address.zipCode"></span> | ||
<span data-ng-bind="$ctrl.address.city"></span> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- BEGIN: keep new number --> | ||
<div data-ng-if="$ctrl.lineNumber"> | ||
<div class="checkbox mt-3 ml-4 mr-2"> | ||
<label for="keepLine" class="pl-2"> | ||
<input | ||
id="keepLine" | ||
type="checkbox" | ||
data-ng-disabled="!$ctrl.canKeepLineNumber" | ||
data-ng-change="$ctrl.rio = null" | ||
data-ng-model="$ctrl.keepLineNumber" | ||
/> | ||
<span | ||
class="service-item" | ||
data-translate="pack_move_keepLine" | ||
></span> | ||
<strong | ||
class="location__lineNumber" | ||
data-ng-bind="$ctrl.lineNumber" | ||
></strong> | ||
</label> | ||
</div> | ||
<p | ||
data-translate="pack_move_keepLine_disabled" | ||
class="mt-2" | ||
data-ng-if="!$ctrl.canKeepLineNumber" | ||
></p> | ||
<!-- END: keep new number --> | ||
<!-- BEGIN: rio --> | ||
<div data-ng-if="$ctrl.keepLineNumber" class="input-group my-md-2"> | ||
<input | ||
type="text" | ||
name="rio" | ||
class="form-control" | ||
data-ui-validate="'$ctrl.validator.tucIsRio($value, $ctrl.lineNumber)'" | ||
data-ng-model="$ctrl.rio" | ||
placeholder="{{ 'pack_move_rio' | translate }}" | ||
/> | ||
</div> | ||
</div> | ||
<!-- END: rio --> | ||
</div> | ||
</div> |
16 changes: 0 additions & 16 deletions
16
...ps/telecom/src/app/telecom/pack/move/address/future/pack-move-address-future.component.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.