<div class="l-admin-content">
    <div>
        <div class="buttonContainer-centered standalone">
            <a class="button-raised" href="{{::$ctrl.licenseRequestPackageUrl}}" download target="_self" ng-disabled="$ctrl.isPending">
                {{::SettingsText.Button_DownloadLicenseRequestPackage}}
            </a>
            <button class="button-raised" title="{{::SettingsText.ToolTip_UploadLicense}}" ng-disabled="$ctrl.isPending" ng-click="$ctrl.uploadLicense()">
                {{::SettingsText.Button_UploadLicense}}
            </button>
            <spinner-medium ng-if="$ctrl.isPending"></spinner-medium>
            <span ng-if="!$ctrl.isPending && $ctrl.uploadedLicenseInfo">
                <span ng-if="$ctrl.uploadedLicenseInfo.IsLicensed" class="ui-indicator-medium ui-indicator-tick"></span>
                <span ng-if="!$ctrl.uploadedLicenseInfo.Exists || !$ctrl.uploadedLicenseInfo.IsLicensed" title="{{$ctrl.uploadedLicenseInfo.Error}}" class="ui-indicator-medium ui-indicator-error"></span>
            </span>
        </div>
        <div class="admin-form" ng-if="$ctrl.uploadedLicenseInfo.Exists">
            <span class="ui-subtitle admin-license-details-header">{{::SettingsText.Label_LicenseDetails}}</span>
            <div class="ui-field admin-license-details">
                <table class="grid-view grid-view-autoWidth">
                    <thead>
                        <tr>
                            <th>{{::SettingsText.Label_LicenseRestrictionType}}</th>
                            <th>{{::SettingsText.Label_LicenseRestrictionDetails}}</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-repeat="restriction in $ctrl.uploadedLicenseInfo.Restrictions">
                            <td>{{::restriction.RestrictionType}}</td>
                            <td title="{{::restriction.Tooltip}}" ng-bind-html="::restriction.Details"></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
