Initial commit

This commit is contained in:
Isaac Parenteau committed 2018-07-07 20:43:51 -05:00
commit 880e39de2e
511 files changed
+38363

No files matched your search

@@ -0,0 +1,22 @@
<md-dialog flex>
<md-toolbar>
<div class="md-toolbar-tools md-portal">
<span>{{header}}</span>
<span flex></span>
<md-button class="md-icon-button" ng-click="cancel()">
<md-icon>close</md-icon>
</md-button>
</div>
</md-toolbar>
<md-dialog-content flex>
<div class="modal-body-preview md-dialog-content">
<div class="previewInfoPane pad-sm">
<div ng-bind-html="trustAsHtml(content)" id="previewPopOut" name="previewPopOut"></div>
</div>
</div>
</md-dialog-content>
<md-dialog-actions layout="row" class="modal-footer">
<md-button id="okButton" class="md-raised md-primary" ng-click="ok()">Ok</md-button>
</md-dialog-actions>
</md-dialog>
@@ -0,0 +1,41 @@
(function () {
'use strict';
/**
* MODULE DESCRIPTION:
*
* TODO: Write description here.
*/
angular.module('portal.common.partials.filevalidate', ['ui.router']).controller('FileValidateCtrl', fileValidateController);
function fileValidateController($scope, modalInstance, $state, $mdDialog, $sce) {
$scope.header = modalInstance.header;
$scope.getContent = function() {
var content = '';
$.each(modalInstance.results, function(key, value) {
content += '<p><b>' + key + ':</b></p>';
for (var i = 0; i < value.length; i++) {
content += '<span class="text-danger">' + value[i] + '</span><br/><br/>';
}
});
$scope.content = content;
};
$scope.getContent();
$scope.trustAsHtml = function (string){
return $sce.trustAsHtml(string);
};
$scope.ok = function () {
$mdDialog.hide();
};
$scope.cancel = function () {
//Dismiss the modal
$mdDialog.cancel();
};
} //end fileValidateController function
})();