aboutsummaryrefslogtreecommitdiffstats
path: root/ecd-app-os/src/main/webapp/app/fusion/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'ecd-app-os/src/main/webapp/app/fusion/scripts')
-rw-r--r--ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-controllers/ds-profile/post-controller.js24
-rw-r--r--ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-services/postSearch.js26
-rw-r--r--ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-view-models/ds2-profile/profile_searchDS2.html86
-rw-r--r--ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-view-models/ds2-profile/self_profile.html189
-rw-r--r--ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-view-models/footer.html13
5 files changed, 338 insertions, 0 deletions
diff --git a/ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-controllers/ds-profile/post-controller.js b/ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-controllers/ds-profile/post-controller.js
new file mode 100644
index 0000000..432df78
--- /dev/null
+++ b/ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-controllers/ds-profile/post-controller.js
@@ -0,0 +1,24 @@
+/*******************************************************************************
+ * =============LICENSE_START=========================================================
+ *
+ * =================================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ *
+ * ECOMP is a trademark and service mark of AT&T Intellectual Property.
+ *******************************************************************************/
+appDS2.controller('postController', function($scope, $http, $modal, $routeParams, $rootScope,PostService){
+ // Trivial file to silence 404 errors in browser.
+});
diff --git a/ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-services/postSearch.js b/ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-services/postSearch.js
new file mode 100644
index 0000000..650dae5
--- /dev/null
+++ b/ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-services/postSearch.js
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * =============LICENSE_START=========================================================
+ *
+ * =================================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ *
+ * ECOMP is a trademark and service mark of AT&T Intellectual Property.
+ *******************************************************************************/
+appDS2.factory('PostService', function ($http, $q) {
+ return {
+ // Trivial file to silence 404 errors in browser.
+ };
+});
diff --git a/ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-view-models/ds2-profile/profile_searchDS2.html b/ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-view-models/ds2-profile/profile_searchDS2.html
new file mode 100644
index 0000000..669139d
--- /dev/null
+++ b/ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-view-models/ds2-profile/profile_searchDS2.html
@@ -0,0 +1,86 @@
+<div id="page-content">
+ <div>
+ <h1 class="heading-page" id="profileSearch">Profile Search</h1>
+ <div ng-show="showLoader" class="span loader-container">
+ <i class="icon-primary-spinner" role="img"
+ aria-label="Please wait while we load your content"></i>
+ </div>
+
+ <div ng-hide="showLoader">
+ <table class="striped" table-data="tableData">
+ <thead>
+ <tr>
+ <th>User ID</th>
+ <th>Last Name</th>
+ <th>First Name</th>
+ <th>Email</th>
+ <th>User ID</th>
+ <th>Manager User ID</th>
+ <th>Edit</th>
+ <th>Active?</th>
+ </tr>
+ </thead>
+ <tbody type="body" ng-repeat="rowData in tableData">
+ <tr>
+ <td>{{rowData.id}}</td>
+ <td>{{rowData.lastName}}</td>
+ <td>{{rowData.firstName}}</td>
+ <td>{{rowData.email}}</td>
+ <td>{{rowData.orgUserId}}</td>
+ <td>{{rowData.orgManagerUserId}}</td>
+ <!-- Include an edit image with respective redirection -->
+ <td><a href="#/profile/{{rowData.id}}" class="icon-misc-pen"
+ style="color: #888; font-size: 20px;"></a></td>
+ <td>
+ <div class="form-row">
+ <label class="btn-switch-label" tabindex="0" role="option">
+ <input type="checkbox" b2b-switches ng-model="rowData.active"
+ ng-disabled="allDisabled" aria-disabled="{{allDisabled}}">
+ <div class="sr-text hidden-spoken" ng-if="!allDisabled">Double
+ tap to turn</div>
+ </label>
+ </div>
+ </td>
+
+ </tr>
+ </tbody>
+ </table>
+
+ <!-- Short Pagination view -->
+ <!-- <div class="page-heading" style="width: 140px; margin-left: 42%;">
+ <h4 class="ds2 page-heading-group" id="pagination-short-count"
+ id="short-page-count">Short page count</h4>
+ </div> -->
+
+ <div class="well" style="padding-bottom: 35px;">
+ <div class="row -page short">
+ <div b2b-pagination="" total-pages="totalPages1"
+ current-page="currentPage1" click-handler="customHandler"
+ role="navigation" aria-label="Customer Data Pages"></div>
+ </div>
+ <div class="row span10 offset1">
+ <div class="span6">
+ <div class="form-row">
+ <label for="totalPages1">Total Pages:</label>
+ <div class="field-group">
+ <input id="totalPages1" type="number" class="span12"
+ only-digits="" name="totalPages1" ng-model="totalPages1"
+ title="Total Pages {{totalPages1}}">
+ </div>
+ </div>
+ </div>
+ <div class="span6 font-clearview">
+ <div class="form-row">
+ <label for="currentPage1">Current Page:</label>
+ <div class="field-group">
+ <input id="currentPage1" type="number" class="span12"
+ only-digits="" name="currentPage1" ng-model="currentPage1"
+ title="Current Page {{currentPage1}}">
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
diff --git a/ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-view-models/ds2-profile/self_profile.html b/ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-view-models/ds2-profile/self_profile.html
new file mode 100644
index 0000000..3b5ef52
--- /dev/null
+++ b/ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-view-models/ds2-profile/self_profile.html
@@ -0,0 +1,189 @@
+<div id="page-content">
+ <div>
+ <h1 class="heading-page" id="profileSearch">{{pageTitle}}</h1>
+ <div ng-show="showLoader" class="span loader-container">
+ <i class="icon-primary-spinner" role="img" aria-label="Please wait while we load your content"></i>
+ </div>
+ <div ng-hide="showLoader" >
+ <h3 class="heading-small">Please edit the profile details below:</h3>
+ <div class="row-nowrap">
+ <div class="span12">
+ <div class="form-row">
+ <label for="textinputID-2a">*First Name</label>
+ <div class="field-group">
+ <input id="textinputID-2a" b2b-reset="" class="span12" type="text" data-ng-model="profile.lastName">
+ </div>
+ </div>
+ </div>
+ <div class="span12">
+ <div class="form-row">
+ <label for="textinputID-3a">*Last Name</label>
+ <div class="field-group">
+ <input id="textinputID-3a" b2b-reset="" class="span12" type="text" data-ng-model="profile.firstName">
+ </div>
+ </div>
+ </div>
+ <div class="span12">
+ <div class="form-row">
+ <label for="textinputID-3a">Organization User ID</label>
+ <div class="field-group">
+ <input id="textinputID-3a" b2b-reset="" class="span12" type="text" data-ng-model="profile.orgUserId" disabled="true">
+ </div>
+ </div>
+ </div>
+ <div class="span12">
+ <div class="form-row">
+ <label for="textinputID-3a">Organization Manager ID</label>
+ <div class="field-group">
+ <input id="textinputID-3a" b2b-reset="" class="span12" type="text" data-ng-model="profile.orgManagerUserId" disabled="true">
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="row-nowrap">
+ <div class="span12">
+ <div class="form-row">
+ <label for="textinputID-2a">Login Id</label>
+ <div class="field-group">
+ <input id="textinputID-2a" b2b-reset="" class="span12" type="text" data-ng-model="profile.loginId" disabled="true">
+ </div>
+ </div>
+ </div>
+ <div class="span12">
+ <div class="form-row">
+ <label for="textinputID-3a">Password</label>
+ <div class="field-group">
+ <input id="textinputID-3a" b2b-reset="" class="span12" type="text" data-ng-model="profile.loginPwd" disabled="true">
+ </div>
+ </div>
+ </div>
+ <div class="span12">
+ <div class="form-row">
+ <label for="textinputID-3a">*Phone</label>
+ <div class="field-group">
+ <input id="textinputID-3a" b2b-reset="" class="span12" type="text" data-ng-model="profile.phone">
+ </div>
+ </div>
+ </div>
+ <div class="span12">
+ <div class="form-row">
+ <label for="textinputID-3a">Fax</label>
+ <div class="field-group">
+ <input id="textinputID-3a" b2b-reset="" class="span12" type="text" data-ng-model="profile.fax">
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="row-nowrap">
+ <div class="span12">
+ <div class="form-row">
+ <label for="textinputID-2a">Cellular</label>
+ <div class="field-group">
+ <input id="textinputID-2a" b2b-reset="" class="span12" type="text" data-ng-model="profile.cellular">
+ </div>
+ </div>
+ </div>
+ <div class="span12">
+ <div class="form-row">
+ <label for="textinputID-3a">*Email</label>
+ <div class="field-group">
+ <input id="textinputID-3a" b2b-reset="" class="span12" type="text" data-ng-model="profile.email">
+ </div>
+ </div>
+ </div>
+ <div class="span12">
+ <div class="form-row">
+ <label for="textinputID-3a">Address 1</label>
+ <div class="field-group">
+ <input id="textinputID-3a" b2b-reset="" class="span12" type="text" data-ng-model="profile.address1">
+ </div>
+ </div>
+ </div>
+ <div class="span12">
+ <div class="form-row">
+ <label for="textinputID-3a">Address 2</label>
+ <div class="field-group">
+ <input id="textinputID-3a" b2b-reset="" class="span12" type="text" data-ng-model="profile.address2">
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="row-nowrap">
+ <div class="span12">
+ <div class="form-row">
+ <label for="textinputID-2a">City</label>
+ <div class="field-group">
+ <input id="textinputID-2a" b2b-reset="" class="span12" type="text" data-ng-model="profile.city">
+ </div>
+ </div>
+ </div>
+ <div class="span12">
+ <div class="form-row">
+ <label for="textinputID-3a">State</label>
+ <select name="dropdown1" b2b-dropdown ng-model="stateList.selected.value">
+ <option b2b-dropdown-list option-repeat="d in stateList.options" value="{{d.value}}" init-value="{{stateList.selected.title}}">{{d.title}}</option>
+ </select>
+ </div>
+ </div>
+ <div class="span12">
+ <div class="form-row">
+ <label for="textinputID-3a">Zip Code</label>
+ <div class="field-group">
+ <input id="textinputID-3a" b2b-reset="" class="span12" type="text" data-ng-model="profile.zipCode">
+ </div>
+ </div>
+ </div>
+ <div class="span12">
+ <div class="form-row">
+ <label for="textinputID-3a">Country</label>
+ <select name="dropdown1" b2b-dropdown ng-model="selectedCountry.value">
+ <option b2b-dropdown-list option-repeat="d in countries" value="{{d.value}}" init-value="{{selectedCountry.title}}">{{d.title}}</option>
+ </select>
+ </div>
+ </div>
+ </div>
+ <div class="span3">
+ <div class="form-row">
+ <label for="textinputID-3a">Time Zone</label>
+ <select name="dropdown1" b2b-dropdown ng-model="selectedTimeZone.value">
+ <option b2b-dropdown-list option-repeat="d in timeZones" value="{{d.value}}" init-value="{{selectedTimeZone.title}}">{{d.title}}</option>
+ </select>
+ </div>
+ </div>
+
+ <div>
+ <button class="btn btn-alt btn-small" type="button" ng-click="saveProfile()">Save</button>
+ </div>
+ <br>
+ <div>
+ Role
+ <a ng-click="addNewRoleFunctionModalPopup(role.roleFunctions,role.name, role);" class="icon-primary-accordion-plus" size="small"></a>
+ </div>
+
+ <div id="rolesTable" title="Role Functions">
+ <table class="striped" table-data="profile.roles">
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Delete</th>
+ </tr>
+ </thead>
+ <tbody type="body" ng-repeat="rowData in profile.roles">
+ <tr>
+ <td ng-bind="rowData['name']"></td>
+
+ <td>
+ <div style="font-size: 20px;">
+ <a href="javascript:void(0)" ng-click="removeRole(rowData);" class="icon-misc-trash"></a>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </div>
+ </div>
+</div>
diff --git a/ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-view-models/footer.html b/ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-view-models/footer.html
new file mode 100644
index 0000000..f4d8d7e
--- /dev/null
+++ b/ecd-app-os/src/main/webapp/app/fusion/scripts/DS2-view-models/footer.html
@@ -0,0 +1,13 @@
+<div style="width: 100%">
+ <footer class="b2b-footer-wrapper" role="contentinfo" aria-label="footer">
+ <div class="b2b-footer-container" >
+ <div class="divider-bottom-footer">
+ <div class="span12 footerLogo">
+ <p class="copyright-text">
+ Copyright 2017 Open ECOMP and Linux Foundation. <span class="build_number">Build Number: {{build_number}}</span>
+ </p>
+ </div>
+ </div>
+ </div>
+ </footer>
+</div> \ No newline at end of file