diff --git a/src/app/subscription-display/subscription-display.component.ts b/src/app/subscription-display/subscription-display.component.ts index 85f73cf..a9ad349 100644 --- a/src/app/subscription-display/subscription-display.component.ts +++ b/src/app/subscription-display/subscription-display.component.ts @@ -3,13 +3,12 @@ import { ActivatedRoute, Router } from '@angular/router'; import { SubscriptionInfo } from '../model/subscription'; import { AnalyticsService } from '../shared/analytics.service'; import { InfoService } from '../shared/info.service'; -import { getLocalizedContent, SubscriptionService } from '../shared/subscription.service'; +import { SubscriptionService } from '../shared/subscription.service'; import { zip } from 'rxjs'; import {TranslateService} from '@ngx-translate/core'; -import {isDifferentTimeZone} from '../shared/event.service'; import {I18nService} from '../shared/i18n.service'; -import {getErrorObject, handleServerSideValidationError} from '../shared/validation-helper'; -import {ErrorDescriptor, ValidatedResponse} from '../model/validated-response'; +import {getErrorObject} from '../shared/validation-helper'; +import {ErrorDescriptor} from '../model/validated-response'; import {FeedbackService} from '../shared/feedback/feedback.service'; @Component({ diff --git a/src/app/subscription-summary/subscription-summary.component.html b/src/app/subscription-summary/subscription-summary.component.html index c336699..53fe3ef 100644 --- a/src/app/subscription-summary/subscription-summary.component.html +++ b/src/app/subscription-summary/subscription-summary.component.html @@ -1,26 +1,26 @@
-
-
{{'show-event.by'|translate}} {{subscription.organizationName}}
+
+
{{'show-event.by'|translate}} {{subscription.organizationName}}
-
-
+
+
{{ 'subscription.detail.validity.NOT_SET.description' | translate : { '0': subscription.maxEntries, '1': ('subscription.usage-type.'+subscription.usageType) | translate } }}
-
-
+
+
{{ 'subscription.detail.validity.STANDARD.description' | translate : { '0': subscription.validityUnits, '1': ('subscription.time-unit.'+subscription.validityTimeUnit | translate), '2': ('subscription.usage-type.'+subscription.usageType) | translate } }}
-
-
+
+
@@ -39,11 +39,11 @@
-
-
+
+
-
-
{{owner.firstName}} {{owner.lastName}} ({{owner.email}})
+
+
{{owner.firstName}} {{owner.lastName}} ({{owner.email}})
diff --git a/src/app/subscription-summary/subscription-summary.component.scss b/src/app/subscription-summary/subscription-summary.component.scss new file mode 100644 index 0000000..3ce7ee3 --- /dev/null +++ b/src/app/subscription-summary/subscription-summary.component.scss @@ -0,0 +1,7 @@ +.col-icon { + width: 40px; +} + +.col-text { + width: calc(100% - 40px); +} \ No newline at end of file diff --git a/src/app/subscription-summary/subscription-summary.component.ts b/src/app/subscription-summary/subscription-summary.component.ts index 074b561..d8dd6c8 100644 --- a/src/app/subscription-summary/subscription-summary.component.ts +++ b/src/app/subscription-summary/subscription-summary.component.ts @@ -1,5 +1,5 @@ import {Component, Input} from '@angular/core'; -import {SubscriptionInfo, SubscriptionSummaryData} from '../model/subscription'; +import {SubscriptionSummaryData} from '../model/subscription'; import {getLocalizedContent} from '../shared/subscription.service'; import {isDifferentTimeZone} from '../shared/event.service'; import {TranslateService} from '@ngx-translate/core'; @@ -7,7 +7,8 @@ import {SubscriptionOwner} from '../model/reservation-info'; @Component({ selector: 'app-subscription-summary', - templateUrl: './subscription-summary.component.html' + templateUrl: './subscription-summary.component.html', + styleUrls: ['./subscription-summary.component.scss'] }) export class SubscriptionSummaryComponent {