You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2017/06/30 22:42:11 UTC
[41/52] [partial] incubator-trafficcontrol git commit: promotes TO
experimental UI to the new Traffic Portal
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/server/edit/FormEditServerController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/server/edit/FormEditServerController.js b/traffic_ops/experimental/ui/app/src/common/modules/form/server/edit/FormEditServerController.js
deleted file mode 100644
index a7fbc08..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/server/edit/FormEditServerController.js
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-var FormEditServerController = function(server, $scope, $controller, $uibModal, $anchorScroll, locationUtils, serverService) {
-
- // extends the FormServerController to inherit common methods
- angular.extend(this, $controller('FormServerController', { server: server, $scope: $scope }));
-
- var deleteServer = function(server) {
- serverService.deleteServer(server.id)
- .then(function() {
- locationUtils.navigateToPath('/configure/servers');
- });
- };
-
- $scope.serverName = angular.copy(server.hostName);
-
- $scope.settings = {
- isNew: false,
- saveLabel: 'Update'
- };
-
- $scope.save = function(server) {
- serverService.updateServer(server).
- then(function() {
- $scope.serverName = angular.copy(server.hostName);
- $anchorScroll(); // scrolls window to top
- });
- };
-
- $scope.confirmDelete = function(server) {
- var params = {
- title: 'Delete Server: ' + server.hostName,
- key: server.hostName
- };
- var modalInstance = $uibModal.open({
- templateUrl: 'common/modules/dialog/delete/dialog.delete.tpl.html',
- controller: 'DialogDeleteController',
- size: 'md',
- resolve: {
- params: function () {
- return params;
- }
- }
- });
- modalInstance.result.then(function() {
- deleteServer(server);
- }, function () {
- // do nothing
- });
- };
-
-};
-
-FormEditServerController.$inject = ['server', '$scope', '$controller', '$uibModal', '$anchorScroll', 'locationUtils', 'serverService'];
-module.exports = FormEditServerController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/server/edit/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/server/edit/index.js b/traffic_ops/experimental/ui/app/src/common/modules/form/server/edit/index.js
deleted file mode 100644
index aff7a84..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/server/edit/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-module.exports = angular.module('trafficPortal.form.server.edit', [])
- .controller('FormEditServerController', require('./FormEditServerController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/server/form.server.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/server/form.server.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/form/server/form.server.tpl.html
deleted file mode 100644
index 2bc9dd2..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/server/form.server.tpl.html
+++ /dev/null
@@ -1,336 +0,0 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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.
--->
-
-<div class="x_panel">
- <div class="x_title">
- <ol class="breadcrumb pull-left">
- <li><a ng-click="navigateToPath('/configure/servers')">Servers</a></li>
- <li class="active">{{serverName}}</li>
- </ol>
- <div class="pull-right" role="group" ng-show="!settings.isNew">
- <button class="btn btn-primary" ng-click="confirmStatusUpdate()">Update Status</button>
- <!--<button class="btn btn-success" ng-click="onlineServer()">Online Server</button>-->
- <button class="btn btn-primary" title="Queue Server Updates" ng-show="!server.updPending" ng-click="queueServerUpdates(server)"><i class="fa fa-flag"></i></button>
- <button class="btn btn-primary" title="Clear Server Updates" ng-show="server.updPending" ng-click="clearServerUpdates(server)"><i class="fa fa-ban"></i></button>
- <div class="btn-group" role="group" uib-dropdown is-open="more.isopen">
- <button type="button" class="btn btn-default dropdown-toggle" uib-dropdown-toggle aria-haspopup="true" aria-expanded="false">
- More
- <span class="caret"></span>
- </button>
- <ul class="dropdown-menu-right dropdown-menu" uib-dropdown-menu>
- <li ng-show="!server.updPending"><a ng-click="queueServerUpdates(server)">Queue Server Updates</a></li>
- <li ng-show="server.updPending"><a ng-click="clearServerUpdates(server)">Clear Server Updates</a></li>
- <li class="divider"></li>
- <li><a ng-click="confirmStatusUpdate()">Update Status</a></li>
- <li class="divider"></li>
- <li><a ng-click="viewDeliveryServices()">View Delivery Services</a></li>
- <li><a ng-click="viewConfig()">View Config Files</a></li>
- </ul>
- </div>
- </div>
- <div class="clearfix"></div>
- </div>
- <div class="x_content">
- <br>
- <form name="serverForm" class="form-horizontal form-label-left" novalidate>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.status), 'has-feedback': hasError(serverForm.status)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Status *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <select id="status" name="status" class="form-control" ng-model="server.statusId" ng-options="status.id as status.name for status in statuses" ng-disabled="true"></select>
- </div>
- </div>
- <div class="form-group" ng-show="server.offlineReason.length > 0">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Offline Reason</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="offlineReason" name="offlineReason" type="text" class="form-control" ng-model="server.offlineReason" ng-maxlength="256" ng-readonly="true">
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.updPending), 'has-feedback': hasError(serverForm.updPending)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Update Pending *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="updPending" name="updPending" type="text" class="form-control" ng-model="server.updPending" ng-disabled="true">
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.hostName), 'has-feedback': hasError(serverForm.hostName)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Hostname *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="hostName" name="hostName" type="text" class="form-control" ng-model="server.hostName" ng-required="true" ng-maxlength="45" ng-pattern="/^\S*$/" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.hostName, 'required')">Required</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.hostName, 'maxlength')">Too Long</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.hostName, 'pattern')">No Spaces</small>
- <span ng-show="hasError(serverForm.hostName)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.domainName), 'has-feedback': hasError(serverForm.domainName)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Domain name *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="domainName" name="domainName" type="text" class="form-control" ng-model="server.domainName" ng-required="true" ng-maxlength="45" ng-pattern="/^\S*$/" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.domainName, 'required')">Required</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.domainName, 'maxlength')">Too Long</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.domainName, 'pattern')">No Spaces</small>
- <span ng-show="hasError(serverForm.domainName)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.tcpPort), 'has-feedback': hasError(serverForm.tcpPort)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">TCP Port</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="tcpPort" name="tcpPort" type="text" class="form-control" ng-model="server.tcpPort" ng-maxlength="10" ng-pattern="/^\d+$/" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.tcpPort, 'maxlength')">Too Long</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.tcpPort, 'pattern')">Number</small>
- <span ng-show="hasError(serverForm.tcpPort)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.xmppId), 'has-feedback': hasError(serverForm.xmppId)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">XMPP ID</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="xmppId" name="xmppId" type="text" class="form-control" ng-model="server.xmppId" ng-maxlength="256" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.xmppId, 'maxlength')">Too Long</small>
- <span ng-show="hasError(serverForm.xmppId)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.xmppPasswd), 'has-feedback': hasError(serverForm.xmppPasswd)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">XMPP Password</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="xmppPasswd" name="xmppPasswd" type="text" class="form-control" ng-model="server.xmppPasswd" ng-maxlength="45" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.xmppPasswd, 'maxlength')">Too Long</small>
- <span ng-show="hasError(serverForm.xmppPasswd)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.interfaceName), 'has-feedback': hasError(serverForm.interfaceName)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Interface Name *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="interfaceName" name="interfaceName" type="text" class="form-control" ng-model="server.interfaceName" ng-required="true" ng-maxlength="45" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.interfaceName, 'required')">Required</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.interfaceName, 'maxlength')">Too Long</small>
- <span ng-show="hasError(serverForm.interfaceName)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.ipAddress), 'has-feedback': hasError(serverForm.ipAddress)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">IP Address *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="ipAddress" name="ipAddress" type="text" class="form-control" ng-model="server.ipAddress" ng-required="true" ng-maxlength="45" ng-pattern="ipRegex()" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.ipAddress, 'required')">Required</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.ipAddress, 'maxlength')">Too Long</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.ipAddress, 'pattern')">Invalid</small>
- <span ng-show="hasError(serverForm.ipAddress)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.ipNetmask), 'has-feedback': hasError(serverForm.ipNetmask)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">IP Netmask *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="ipNetmask" name="ipNetmask" type="text" class="form-control" ng-model="server.ipNetmask" ng-required="true" ng-maxlength="45" ng-pattern="validations.ipRegex" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.ipNetmask, 'required')">Required</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.ipNetmask, 'maxlength')">Too Long</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.ipNetmask, 'pattern')">Invalid</small>
- <span ng-show="hasError(serverForm.ipNetmask)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.ipGateway), 'has-feedback': hasError(serverForm.ipGateway)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">IP Gateway *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="ipGateway" name="ipGateway" type="text" class="form-control" ng-model="server.ipGateway" ng-required="true" ng-maxlength="45" ng-pattern="ipRegex()" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.ipGateway, 'required')">Required</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.ipGateway, 'maxlength')">Too Long</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.ipGateway, 'pattern')">Invalid</small>
- <span ng-show="hasError(serverForm.ipGateway)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.ip6Address), 'has-feedback': hasError(serverForm.ip6Address)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">IPv6 Address</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="ip6Address" name="ip6Address" type="text" class="form-control" ng-model="server.ip6Address" ng-maxlength="50" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.ip6Address, 'maxlength')">Too Long</small>
- <span ng-show="hasError(serverForm.ip6Address)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.ip6Gateway), 'has-feedback': hasError(serverForm.ip6Gateway)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">IPv6 Gateway</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="ip6Gateway" name="ip6Gateway" type="text" class="form-control" ng-model="server.ip6Gateway" ng-maxlength="50" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.ip6Gateway, 'maxlength')">Too Long</small>
- <span ng-show="hasError(serverForm.ip6Gateway)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.interfaceMtu), 'has-feedback': hasError(serverForm.interfaceMtu)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Interface MTU *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="interfaceMtu" name="interfaceMtu" type="text" class="form-control" ng-model="server.interfaceMtu" ng-required="true" ng-maxlength="11" ng-pattern="/(^1500$|^9000$)/" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.interfaceMtu, 'required')">Required</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.interfaceMtu, 'maxlength')">Too Long</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.interfaceMtu, 'pattern')">1500 or 9000</small>
- <span ng-show="hasError(serverForm.interfaceMtu)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.rack), 'has-feedback': hasError(serverForm.rack)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Rack</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="rack" name="rack" type="text" class="form-control" ng-model="server.rack" ng-maxlength="64" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.rack, 'maxlength')">Too Long</small>
- <span ng-show="hasError(serverForm.rack)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.mgmtIpAddress), 'has-feedback': hasError(serverForm.mgmtIpAddress)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Management IP Address</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="mgmtIpAddress" name="mgmtIpAddress" type="text" class="form-control" ng-model="server.mgmtIpAddress" ng-maxlength="50" ng-pattern="ipRegex()" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.mgmtIpAddress, 'maxlength')">Too Long</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.mgmtIpAddress, 'pattern')">Invalid</small>
- <span ng-show="hasError(serverForm.mgmtIpAddress)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.mgmtIpNetmask), 'has-feedback': hasError(serverForm.mgmtIpNetmask)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Management IP Netmask</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="mgmtIpNetmask" name="mgmtIpNetmask" type="text" class="form-control" ng-model="server.mgmtIpNetmask" ng-maxlength="45" ng-pattern="ipRegex()" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.mgmtIpNetmask, 'maxlength')">Too Long</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.mgmtIpNetmask, 'pattern')">Invalid</small>
- <span ng-show="hasError(serverForm.mgmtIpNetmask)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.mgmtIpGateway), 'has-feedback': hasError(serverForm.mgmtIpGateway)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Management IP Gateway</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="mgmtIpGateway" name="mgmtIpGateway" type="text" class="form-control" ng-model="server.mgmtIpGateway" ng-maxlength="45" ng-pattern="ipRegex()" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.mgmtIpGateway, 'maxlength')">Too Long</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.mgmtIpGateway, 'pattern')">Invalid</small>
- <span ng-show="hasError(serverForm.mgmtIpGateway)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.iloIpAddress), 'has-feedback': hasError(serverForm.iloIpAddress)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">ILO IP Address</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="iloIpAddress" name="iloIpAddress" type="text" class="form-control" ng-model="server.iloIpAddress" ng-maxlength="45" ng-pattern="ipRegex()" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.iloIpAddress, 'maxlength')">Too Long</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.iloIpAddress, 'pattern')">Invalid</small>
- <span ng-show="hasError(serverForm.iloIpAddress)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.iloIpNetmask), 'has-feedback': hasError(serverForm.iloIpNetmask)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">ILO IP Netmask</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="iloIpNetmask" name="iloIpNetmask" type="text" class="form-control" ng-model="server.iloIpNetmask" ng-maxlength="45" ng-pattern="ipRegex()" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.iloIpNetmask, 'maxlength')">Too Long</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.iloIpNetmask, 'pattern')">Invalid</small>
- <span ng-show="hasError(serverForm.iloIpNetmask)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.iloIpGateway), 'has-feedback': hasError(serverForm.iloIpGateway)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">ILO IP Gateway</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="iloIpGateway" name="iloIpGateway" type="text" class="form-control" ng-model="server.iloIpGateway" ng-maxlength="45" ng-pattern="ipRegex()" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.iloIpGateway, 'maxlength')">Too Long</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.iloIpGateway, 'pattern')">Invalid</small>
- <span ng-show="hasError(serverForm.iloIpGateway)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.iloUsername), 'has-feedback': hasError(serverForm.iloUsername)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">ILO Username</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="iloUsername" name="iloUsername" type="text" class="form-control" ng-model="server.iloUsername" ng-maxlength="45" ng-pattern="/^\S*$/" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.iloUsername, 'maxlength')">Too Long</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.iloUsername, 'pattern')">No Spaces</small>
- <span ng-show="hasError(serverForm.iloUsername)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.iloPassword), 'has-feedback': hasError(serverForm.iloPassword)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">ILO Password</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="iloPassword" name="iloPassword" type="text" class="form-control" ng-model="server.iloPassword" ng-maxlength="45" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.iloPassword, 'maxlength')">Too Long</small>
- <span ng-show="hasError(serverForm.iloPassword)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.routerHostName), 'has-feedback': hasError(serverForm.routerHostName)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Router Hostname</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="routerHostName" name="routerHostName" type="text" class="form-control" ng-model="server.routerHostName" ng-maxlength="256" ng-pattern="/^\S*$/" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.routerHostName, 'maxlength')">Too Long</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.routerHostName, 'pattern')">No Spaces</small>
- <span ng-show="hasError(serverForm.routerHostName)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.routerPortName), 'has-feedback': hasError(serverForm.routerPortName)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Router Port Name</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="routerPortName" name="routerPortName" type="text" class="form-control" ng-model="server.routerPortName" ng-maxlength="256" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.routerPortName, 'maxlength')">Too Long</small>
- <span ng-show="hasError(serverForm.routerPortName)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.httpsPort), 'has-feedback': hasError(serverForm.httpsPort)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">HTTPS Port</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="httpsPort" name="httpsPort" type="text" class="form-control" ng-model="server.httpsPort" ng-maxlength="10" ng-pattern="/^\d+$/" autofocus>
- <small class="input-error" ng-show="hasPropertyError(serverForm.httpsPort, 'maxlength')">Too Long</small>
- <small class="input-error" ng-show="hasPropertyError(serverForm.httpsPort, 'pattern')">Number</small>
- <span ng-show="hasError(serverForm.httpsPort)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.cdn), 'has-feedback': hasError(serverForm.cdn)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">CDN *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <select id="cdn" name="cdn" class="form-control" ng-model="server.cdnId" ng-options="cdn.id as cdn.name for cdn in cdns" required>
- <option value="">Select...</option>
- </select>
- <small class="input-error" ng-show="hasPropertyError(serverForm.cdn, 'required')">Required</small>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.physLocation), 'has-feedback': hasError(serverForm.physLocation)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Phys Location *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <select id="physLocation" name="physLocation" class="form-control" ng-model="server.physLocationId" ng-options="physLocation.id as physLocation.name for physLocation in physLocations" required>
- <option value="">Select...</option>
- </select>
- <small class="input-error" ng-show="hasPropertyError(serverForm.physLocation, 'required')">Required</small>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.cachegroup), 'has-feedback': hasError(serverForm.cachegroup)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Cache Group *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <select id="cachegroup" name="cachegroup" class="form-control" ng-model="server.cachegroupId" ng-options="cachegroup.id as cachegroup.name for cachegroup in cacheGroups" required>
- <option value="">Select...</option>
- </select>
- <small class="input-error" ng-show="hasPropertyError(serverForm.cachegroup, 'required')">Required</small>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.type), 'has-feedback': hasError(serverForm.type)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Type *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <select id="type" name="type" class="form-control" ng-model="server.typeId" ng-options="type.id as type.name for type in types" required>
- <option value="">Select...</option>
- </select>
- <small class="input-error" ng-show="hasPropertyError(serverForm.type, 'required')">Required</small>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(serverForm.profile), 'has-feedback': hasError(serverForm.profile)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Profile *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <select id="profile" name="profile" class="form-control" ng-model="server.profileId" ng-options="profile.id as profile.name for profile in profiles" required>
- <option value="">Select...</option>
- </select>
- <small class="input-error" ng-show="hasPropertyError(serverForm.profile, 'required')">Required</small>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-danger" ng-show="!settings.isNew" ng-click="confirmDelete(server)">Delete</button>
- <button type="button" class="btn btn-success" ng-disabled="serverForm.$pristine || serverForm.$invalid" ng-click="save(server)">{{settings.saveLabel}}</button>
- </div>
- </form>
- </div>
-</div>
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/server/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/server/index.js b/traffic_ops/experimental/ui/app/src/common/modules/form/server/index.js
deleted file mode 100644
index 95bea58..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/server/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-module.exports = angular.module('trafficPortal.form.server', [])
- .controller('FormServerController', require('./FormServerController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/server/new/FormNewServerController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/server/new/FormNewServerController.js b/traffic_ops/experimental/ui/app/src/common/modules/form/server/new/FormNewServerController.js
deleted file mode 100644
index 744f588..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/server/new/FormNewServerController.js
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-var FormNewServerController = function(server, $scope, $controller, serverService) {
-
- // extends the FormServerController to inherit common methods
- angular.extend(this, $controller('FormServerController', { server: server, $scope: $scope }));
-
- $scope.serverName = 'New';
-
- $scope.settings = {
- isNew: true,
- saveLabel: 'Create'
- };
-
- $scope.save = function(server) {
- serverService.createServer(server);
- };
-
-};
-
-FormNewServerController.$inject = ['server', '$scope', '$controller', 'serverService'];
-module.exports = FormNewServerController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/server/new/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/server/new/index.js b/traffic_ops/experimental/ui/app/src/common/modules/form/server/new/index.js
deleted file mode 100644
index ff3487b..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/server/new/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-module.exports = angular.module('trafficPortal.form.server.new', [])
- .controller('FormNewServerController', require('./FormNewServerController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/status/FormStatusController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/status/FormStatusController.js b/traffic_ops/experimental/ui/app/src/common/modules/form/status/FormStatusController.js
deleted file mode 100644
index fd015db..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/status/FormStatusController.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-var FormStatusController = function(status, $scope, $location, formUtils, stringUtils, locationUtils) {
-
- $scope.status = status;
-
- $scope.props = [
- { name: 'name', type: 'text', required: true, maxLength: 45 }
- ];
-
- $scope.viewServers = function() {
- $location.path($location.path() + '/servers');
- };
-
- $scope.labelize = stringUtils.labelize;
-
- $scope.navigateToPath = locationUtils.navigateToPath;
-
- $scope.hasError = formUtils.hasError;
-
- $scope.hasPropertyError = formUtils.hasPropertyError;
-
-};
-
-FormStatusController.$inject = ['status', '$scope', '$location', 'formUtils', 'stringUtils', 'locationUtils'];
-module.exports = FormStatusController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/status/edit/FormEditStatusController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/status/edit/FormEditStatusController.js b/traffic_ops/experimental/ui/app/src/common/modules/form/status/edit/FormEditStatusController.js
deleted file mode 100644
index ff940be..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/status/edit/FormEditStatusController.js
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-var FormEditStatusController = function(status, $scope, $controller, $uibModal, $anchorScroll, locationUtils, statusService) {
-
- // extends the FormStatusController to inherit common methods
- angular.extend(this, $controller('FormStatusController', { status: status, $scope: $scope }));
-
- var deleteStatus = function(status) {
- statusService.deleteStatus(status.id)
- .then(function() {
- locationUtils.navigateToPath('/admin/statuses');
- });
- };
-
- $scope.statusName = angular.copy(status.name);
-
- $scope.settings = {
- isNew: false,
- saveLabel: 'Update'
- };
-
- $scope.save = function(status) {
- statusService.updateStatus(status).
- then(function() {
- $scope.statusName = angular.copy(status.name);
- $anchorScroll(); // scrolls window to top
- });
- };
-
- $scope.confirmDelete = function(status) {
- var params = {
- title: 'Delete Status: ' + status.name,
- key: status.name
- };
- var modalInstance = $uibModal.open({
- templateUrl: 'common/modules/dialog/delete/dialog.delete.tpl.html',
- controller: 'DialogDeleteController',
- size: 'md',
- resolve: {
- params: function () {
- return params;
- }
- }
- });
- modalInstance.result.then(function() {
- deleteStatus(status);
- }, function () {
- // do nothing
- });
- };
-
-};
-
-FormEditStatusController.$inject = ['status', '$scope', '$controller', '$uibModal', '$anchorScroll', 'locationUtils', 'statusService'];
-module.exports = FormEditStatusController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/status/edit/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/status/edit/index.js b/traffic_ops/experimental/ui/app/src/common/modules/form/status/edit/index.js
deleted file mode 100644
index 55520d3..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/status/edit/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-module.exports = angular.module('trafficPortal.form.status.edit', [])
- .controller('FormEditStatusController', require('./FormEditStatusController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/status/form.status.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/status/form.status.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/form/status/form.status.tpl.html
deleted file mode 100644
index d8733d7..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/status/form.status.tpl.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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.
--->
-
-<div class="x_panel">
- <div class="x_title">
- <ol class="breadcrumb pull-left">
- <li><a ng-click="navigateToPath('/admin/statuses')">Statuses</a></li>
- <li class="active">{{statusName}}</li>
- </ol>
- <div class="pull-right" role="group" ng-show="!settings.isNew">
- <button class="btn btn-primary" title="View Servers" ng-click="viewServers()">View Servers</button>
- </div>
- <div class="clearfix"></div>
- </div>
- <div class="x_content">
- <br>
- <form name="statusForm" class="form-horizontal form-label-left" novalidate>
- <div class="form-group" ng-class="{'has-error': hasError(statusForm[prop.name]), 'has-feedback': hasError(statusForm[prop.name])}" ng-repeat="prop in props">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">{{labelize(prop.name)}} <span ng-show="prop.required">*</span></label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="{{prop.name}}" name="{{prop.name}}" type="{{prop.type}}" class="form-control" ng-model="status[prop.name]" ng-readonly="prop.readonly" ng-required="prop.required" ng-maxlength="prop.maxLength" autofocus>
- <small class="input-error" ng-show="hasPropertyError(statusForm[prop.name], 'required')">Required</small>
- <small class="input-error" ng-show="hasPropertyError(statusForm[prop.name], 'maxlength')">Too Long</small>
- <span ng-show="hasError(statusForm[prop.name])" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Description</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <textarea id="description" name="description" rows="3" cols="17" class="form-control" ng-model="status.description" maxlength="256"></textarea>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-danger" ng-show="!settings.isNew" ng-click="confirmDelete(status)">Delete</button>
- <button type="button" class="btn btn-success" ng-disabled="statusForm.$pristine || statusForm.$invalid" ng-click="save(status)">{{settings.saveLabel}}</button>
- </div>
- </form>
- </div>
-</div>
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/status/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/status/index.js b/traffic_ops/experimental/ui/app/src/common/modules/form/status/index.js
deleted file mode 100644
index 87173fb..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/status/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-module.exports = angular.module('trafficPortal.form.status', [])
- .controller('FormStatusController', require('./FormStatusController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/status/new/FormNewStatusController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/status/new/FormNewStatusController.js b/traffic_ops/experimental/ui/app/src/common/modules/form/status/new/FormNewStatusController.js
deleted file mode 100644
index 9ea4c87..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/status/new/FormNewStatusController.js
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-var FormNewStatusController = function(status, $scope, $controller, statusService) {
-
- // extends the FormStatusController to inherit common methods
- angular.extend(this, $controller('FormStatusController', { status: status, $scope: $scope }));
-
- $scope.statusName = 'New';
-
- $scope.settings = {
- isNew: true,
- saveLabel: 'Create'
- };
-
- $scope.save = function(status) {
- statusService.createStatus(status);
- };
-
-};
-
-FormNewStatusController.$inject = ['status', '$scope', '$controller', 'statusService'];
-module.exports = FormNewStatusController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/status/new/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/status/new/index.js b/traffic_ops/experimental/ui/app/src/common/modules/form/status/new/index.js
deleted file mode 100644
index f3673fe..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/status/new/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-module.exports = angular.module('trafficPortal.form.status.new', [])
- .controller('FormNewStatusController', require('./FormNewStatusController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/FormTenantController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/FormTenantController.js b/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/FormTenantController.js
deleted file mode 100644
index 4acf374..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/FormTenantController.js
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-var FormTenantController = function(tenant, $scope, formUtils, locationUtils, tenantService) {
-
- var getTenants = function() {
- tenantService.getTenants()
- .then(function(result) {
- $scope.tenants = result;
- });
- };
-
- $scope.tenant = tenant;
-
- $scope.falseTrue = [
- { value: false, label: 'false' },
- { value: true, label: 'true' }
- ];
-
- $scope.navigateToPath = locationUtils.navigateToPath;
-
- $scope.hasError = formUtils.hasError;
-
- $scope.hasPropertyError = formUtils.hasPropertyError;
-
- var init = function () {
- getTenants();
- };
- init();
-
-};
-
-FormTenantController.$inject = ['tenant', '$scope', 'formUtils', 'locationUtils', 'tenantService'];
-module.exports = FormTenantController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/edit/FormEditTenantController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/edit/FormEditTenantController.js b/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/edit/FormEditTenantController.js
deleted file mode 100644
index 28c69e2..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/edit/FormEditTenantController.js
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-var FormEditTenantController = function(tenant, $scope, $controller, $uibModal, $anchorScroll, locationUtils, tenantService) {
-
- // extends the FormTenantController to inherit common methods
- angular.extend(this, $controller('FormTenantController', { tenant: tenant, $scope: $scope }));
-
- var deleteTenant = function(tenant) {
- tenantService.deleteTenant(tenant.id)
- .then(function() {
- locationUtils.navigateToPath('/admin/tenants');
- });
- };
-
- $scope.tenantName = angular.copy(tenant.name);
-
- $scope.settings = {
- isNew: false,
- saveLabel: 'Update'
- };
-
- $scope.save = function(tenant) {
- tenantService.updateTenant(tenant).
- then(function() {
- $scope.tenantName = angular.copy(tenant.name);
- $anchorScroll(); // scrolls window to top
- });
- };
-
- $scope.confirmDelete = function(tenant) {
- var params = {
- title: 'Delete Tenant: ' + tenant.name,
- key: tenant.name
- };
- var modalInstance = $uibModal.open({
- templateUrl: 'common/modules/dialog/delete/dialog.delete.tpl.html',
- controller: 'DialogDeleteController',
- size: 'md',
- resolve: {
- params: function () {
- return params;
- }
- }
- });
- modalInstance.result.then(function() {
- deleteTenant(tenant);
- }, function () {
- // do nothing
- });
- };
-
-};
-
-FormEditTenantController.$inject = ['tenant', '$scope', '$controller', '$uibModal', '$anchorScroll', 'locationUtils', 'tenantService'];
-module.exports = FormEditTenantController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/edit/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/edit/index.js b/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/edit/index.js
deleted file mode 100644
index 63484fd..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/edit/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-module.exports = angular.module('trafficPortal.form.tenant.edit', [])
- .controller('FormEditTenantController', require('./FormEditTenantController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/form.tenant.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/form.tenant.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/form.tenant.tpl.html
deleted file mode 100644
index 8567a86..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/form.tenant.tpl.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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.
--->
-
-<div class="x_panel">
- <div class="x_title">
- <ol class="breadcrumb">
- <li><a ng-click="navigateToPath('/admin/tenants')">Tenants</a></li>
- <li class="active">{{tenantName}}</li>
- </ol>
- <div class="clearfix"></div>
- </div>
- <div class="x_content">
- <br>
- <form name="tenantForm" class="form-horizontal form-label-left" novalidate>
- <div class="form-group" ng-class="{'has-error': hasError(tenantForm.name), 'has-feedback': hasError(tenantForm.name)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Name *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="name" name="name" type="text" class="form-control" ng-model="tenant.name" ng-required="true" ng-maxlength="45" autofocus>
- <small class="input-error" ng-show="hasPropertyError(tenantForm.name, 'required')">Required</small>
- <small class="input-error" ng-show="hasPropertyError(tenantForm.name, 'maxlength')">Too Long</small>
- <span ng-show="hasError(tenantForm.name)" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(tenantForm.active), 'has-feedback': hasError(tenantForm.active)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Active *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <select id="active" name="active" class="form-control" ng-model="tenant.active" ng-options="x.value as x.label for x in falseTrue" required></select>
- <small class="input-error" ng-show="hasPropertyError(tenantForm.active, 'required')">Required</small>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error': hasError(tenantForm.parentId), 'has-feedback': hasError(tenantForm.parentId)}">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Parent Tenant *</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <select id="parentId" name="parentId" class="form-control" ng-model="tenant.parentId" ng-options="tenant.id as tenant.name for tenant in tenants" required>
- <option value="">Select...</option>
- </select>
- <small class="input-error" ng-show="hasPropertyError(tenantForm.parentId, 'required')">Required</small>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-danger" ng-show="!settings.isNew" ng-click="confirmDelete(tenant)">Delete</button>
- <button type="button" class="btn btn-success" ng-disabled="tenantForm.$pristine || tenantForm.$invalid" ng-click="save(tenant)">{{settings.saveLabel}}</button>
- </div>
- </form>
- </div>
-</div>
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/index.js b/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/index.js
deleted file mode 100644
index 7b76c87..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-module.exports = angular.module('trafficPortal.form.tenant', [])
- .controller('FormTenantController', require('./FormTenantController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/new/FormNewTenantController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/new/FormNewTenantController.js b/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/new/FormNewTenantController.js
deleted file mode 100644
index b1aab29..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/new/FormNewTenantController.js
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-var FormNewTenantController = function(tenant, $scope, $controller, locationUtils, tenantService) {
-
- // extends the FormTenantController to inherit common methods
- angular.extend(this, $controller('FormTenantController', { tenant: tenant, $scope: $scope }));
-
- $scope.tenantName = 'New';
-
- $scope.settings = {
- isNew: true,
- saveLabel: 'Create'
- };
-
- $scope.save = function(tenant) {
- tenantService.createTenant(tenant).
- then(function() {
- locationUtils.navigateToPath('/admin/tenants');
- });
- };
-
-};
-
-FormNewTenantController.$inject = ['tenant', '$scope', '$controller', 'locationUtils', 'tenantService'];
-module.exports = FormNewTenantController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/new/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/new/index.js b/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/new/index.js
deleted file mode 100644
index 5e8a903..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/tenant/new/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-module.exports = angular.module('trafficPortal.form.tenant.new', [])
- .controller('FormNewTenantController', require('./FormNewTenantController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/type/FormTypeController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/type/FormTypeController.js b/traffic_ops/experimental/ui/app/src/common/modules/form/type/FormTypeController.js
deleted file mode 100644
index 065fda9..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/type/FormTypeController.js
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-var FormTypeController = function(type, $scope, $location, formUtils, stringUtils, locationUtils) {
-
- $scope.type = type;
-
- $scope.props = [
- { name: 'name', type: 'text', required: true, maxLength: 45 },
- { name: 'useInTable', type: 'text', required: true, maxLength: 45 }
- ];
-
- $scope.labelize = stringUtils.labelize;
-
- $scope.viewServers = function() {
- $location.path($location.path() + '/servers');
- };
-
- $scope.viewDeliveryServices = function() {
- $location.path($location.path() + '/delivery-services');
- };
-
- $scope.viewCacheGroups = function() {
- $location.path($location.path() + '/cache-groups');
- };
-
- $scope.viewStaticDnsEntries = function() {
- $location.path($location.path() + '/static-dns-entries');
- };
-
- $scope.navigateToPath = locationUtils.navigateToPath;
-
- $scope.hasError = formUtils.hasError;
-
- $scope.hasPropertyError = formUtils.hasPropertyError;
-
-};
-
-FormTypeController.$inject = ['type', '$scope', '$location', 'formUtils', 'stringUtils', 'locationUtils'];
-module.exports = FormTypeController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/type/edit/FormEditTypeController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/type/edit/FormEditTypeController.js b/traffic_ops/experimental/ui/app/src/common/modules/form/type/edit/FormEditTypeController.js
deleted file mode 100644
index 6dc8baa..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/type/edit/FormEditTypeController.js
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-var FormEditTypeController = function(type, $scope, $controller, $uibModal, $anchorScroll, locationUtils, typeService) {
-
- // extends the FormTypeController to inherit common methods
- angular.extend(this, $controller('FormTypeController', { type: type, $scope: $scope }));
-
- var deleteType = function(type) {
- typeService.deleteType(type.id)
- .then(function() {
- locationUtils.navigateToPath('/admin/types');
- });
- };
-
- $scope.typeName = angular.copy(type.name);
-
- $scope.settings = {
- isNew: false,
- saveLabel: 'Update'
- };
-
- $scope.save = function(type) {
- typeService.updateType(type).
- then(function() {
- $scope.typeName = angular.copy(type.name);
- $anchorScroll(); // scrolls window to top
- });
- };
-
- $scope.confirmDelete = function(type) {
- var params = {
- title: 'Delete Type: ' + type.name,
- key: type.name
- };
- var modalInstance = $uibModal.open({
- templateUrl: 'common/modules/dialog/delete/dialog.delete.tpl.html',
- controller: 'DialogDeleteController',
- size: 'md',
- resolve: {
- params: function () {
- return params;
- }
- }
- });
- modalInstance.result.then(function() {
- deleteType(type);
- }, function () {
- // do nothing
- });
- };
-
-};
-
-FormEditTypeController.$inject = ['type', '$scope', '$controller', '$uibModal', '$anchorScroll', 'locationUtils', 'typeService'];
-module.exports = FormEditTypeController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/type/edit/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/type/edit/index.js b/traffic_ops/experimental/ui/app/src/common/modules/form/type/edit/index.js
deleted file mode 100644
index e4f9cb9..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/type/edit/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-module.exports = angular.module('trafficPortal.form.type.edit', [])
- .controller('FormEditTypeController', require('./FormEditTypeController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/type/form.type.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/type/form.type.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/form/type/form.type.tpl.html
deleted file mode 100644
index 1fc3e1f..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/type/form.type.tpl.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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.
--->
-
-<div class="x_panel">
- <div class="x_title">
- <ol class="breadcrumb pull-left">
- <li><a ng-click="navigateToPath('/admin/types')">Types</a></li>
- <li class="active">{{typeName}}</li>
- </ol>
- <div class="pull-right" role="group" ng-show="!settings.isNew">
- <button class="btn btn-primary" title="View Servers" ng-show="type.useInTable == 'server'" ng-click="viewServers()">View Servers</button>
- <button class="btn btn-primary" title="View Delivery Services" ng-show="type.useInTable == 'deliveryservice'" ng-click="viewDeliveryServices()">View Delivery Services</button>
- <button class="btn btn-primary" title="View Cache Groups" ng-show="type.useInTable == 'cachegroup'" ng-click="viewCacheGroups()">View Cache Groups</button>
- <button class="btn btn-primary" title="View Static DNS Entries" ng-show="type.useInTable == 'staticdnsentry'" ng-click="viewStaticDnsEntries()">View Static DNS Entries</button>
- </div>
- <div class="clearfix"></div>
- </div>
- <div class="x_content">
- <br>
- <form name="typeForm" class="form-horizontal form-label-left" novalidate>
- <div class="form-group" ng-class="{'has-error': hasError(typeForm[prop.name]), 'has-feedback': hasError(typeForm[prop.name])}" ng-repeat="prop in props">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">{{labelize(prop.name)}} <span ng-show="prop.required">*</span></label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <input id="{{prop.name}}" name="{{prop.name}}" type="{{prop.type}}" class="form-control" ng-model="type[prop.name]" ng-readonly="prop.readonly" ng-required="prop.required" ng-maxlength="prop.maxLength" autofocus>
- <small class="input-error" ng-show="hasPropertyError(typeForm[prop.name], 'required')">Required</small>
- <small class="input-error" ng-show="hasPropertyError(typeForm[prop.name], 'maxlength')">Too Long</small>
- <span ng-show="hasError(typeForm[prop.name])" class="form-control-feedback"><i class="fa fa-times"></i></span>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-md-2 col-sm-2 col-xs-12">Description</label>
- <div class="col-md-10 col-sm-10 col-xs-12">
- <textarea id="description" name="description" rows="3" cols="17" class="form-control" ng-model="type.description" maxlength="256"></textarea>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-danger" ng-show="!settings.isNew" ng-click="confirmDelete(type)">Delete</button>
- <button type="button" class="btn btn-success" ng-disabled="typeForm.$pristine || typeForm.$invalid" ng-click="save(type)">{{settings.saveLabel}}</button>
- </div>
- </form>
- </div>
-</div>
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/type/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/type/index.js b/traffic_ops/experimental/ui/app/src/common/modules/form/type/index.js
deleted file mode 100644
index 24ae187..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/type/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-module.exports = angular.module('trafficPortal.form.type', [])
- .controller('FormTypeController', require('./FormTypeController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3195e0cc/traffic_ops/experimental/ui/app/src/common/modules/form/type/new/FormNewTypeController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/type/new/FormNewTypeController.js b/traffic_ops/experimental/ui/app/src/common/modules/form/type/new/FormNewTypeController.js
deleted file mode 100644
index 2f07a52..0000000
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/type/new/FormNewTypeController.js
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-var FormNewTypeController = function(type, $scope, $controller, typeService) {
-
- // extends the FormTypeController to inherit common methods
- angular.extend(this, $controller('FormTypeController', { type: type, $scope: $scope }));
-
- $scope.typeName = 'New';
-
- $scope.settings = {
- isNew: true,
- saveLabel: 'Create'
- };
-
- $scope.save = function(type) {
- typeService.createType(type);
- };
-
-};
-
-FormNewTypeController.$inject = ['type', '$scope', '$controller', 'typeService'];
-module.exports = FormNewTypeController;