remove license input field and add ng-class to default text

This commit is contained in:
Leigh Johnson 2016-05-03 14:31:15 -04:00 committed by John Mitchell
parent dcd89aabfc
commit adb4703d45
3 changed files with 6 additions and 3 deletions

View File

@ -13,6 +13,9 @@
.License-field--label{
.OnePlusTwo-left--detailsLabel;
}
.License-fileName{
padding-left: 20px;
}
.License-management .CodeMirror-scroll{
min-height: 140px;
}

View File

@ -73,7 +73,7 @@ export default
return moment().add(days, 'days').calendar();
};
var init = function(){
$scope.fileName = "Please choose a file...";
$scope.fileName = "No file selected.";
$scope.title = $rootScope.licenseMissing ? "Tower License" : "License Management";
Wait('start');
CheckLicense.get()

View File

@ -98,8 +98,8 @@
<form id="License-form" name="license">
<div class="License-subTitleText prepend-asterisk"> License File</div>
<div class="input-group License-file--container">
<span class="btn btn-default input-group-addon" ng-click="fakeClick()">Browse...</span>
<input class="form-control License-input--fake" ng-disabled="true" placeholder="{{fileName}}" />
<span class="btn btn-primary" ng-click="fakeClick()">Browse</span>
<span class="License-fileName" ng-class="{'License-helperText' : fileName == 'No file selected.'}">{{fileName}}</span>
<input id="License-file" class="form-control" type="file" file-on-change="getKey"/>
</div>
<div class="License-subTitleText prepend-asterisk"> End User License Agreement</div>