Sha256: 9206ee61893d95b88172253ff810a4e50d55d4d9cf6f3ca23665d4bb5481f6b7

Contents?: true

Size: 686 Bytes

Versions: 157

Compression:

Stored size: 686 Bytes

Contents

/**
 * @ngdoc directive
 * @name Bastion.subscriptions:subscriptionStartDate
 *
 * @description
 *   Directive for the subscription start date
 */
angular.module('Bastion.subscriptions').directive('subscriptionStartDate', function () {
    return {
        restrict: 'AE',
        scope: {
            subscription: '=subscriptionStartDate'
        },
        templateUrl: 'subscriptions/views/subscription-start-date.html',
        controller: ['$scope', 'translate', function ($scope, translate) {
            $scope.checkFutureDate = function (date) {
                return (Date.parse(date) > Date.parse(Date()) ? translate(' (future)') : '');
            };
        }]
    };
});

Version data entries

157 entries across 157 versions & 1 rubygems

Version Path
katello-3.6.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js
katello-3.6.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js
katello-3.5.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js
katello-3.5.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js
katello-3.5.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js
katello-3.5.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js
katello-3.5.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js
katello-3.5.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js
katello-3.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js
katello-3.4.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js
katello-3.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js
katello-3.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js
katello-3.4.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js
katello-3.4.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js
katello-3.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js
katello-3.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js
katello-3.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js