diff --git a/src/main/java/com/warhammer/enums/UnitKeywordEnum.java b/src/main/java/com/warhammer/enums/UnitKeywordEnum.java index 1470f39a..62783ca9 100644 --- a/src/main/java/com/warhammer/enums/UnitKeywordEnum.java +++ b/src/main/java/com/warhammer/enums/UnitKeywordEnum.java @@ -6,6 +6,7 @@ public enum UnitKeywordEnum { ELITE("Elite"), FASTATTACK("Fast Attack"), HEAVYSUPPORT("Heavy Support"), + DEDICATEDTRANSPORT("Dedicated Transport"), FORTIFICATION("Fortification"), FLYER("Flyer"); diff --git a/src/main/webapp/app/entities/army/army.module.ts b/src/main/webapp/app/entities/army/army.module.ts index 3ba7529d..50caf3f8 100644 --- a/src/main/webapp/app/entities/army/army.module.ts +++ b/src/main/webapp/app/entities/army/army.module.ts @@ -20,6 +20,9 @@ import {ArmyDetailComponent} from "./army-detail.component"; ArmyDetailDesktopComponent, ArmyUpdateComponent, ArmyDeleteDialogComponent], + exports: [ + ArmyDetailDesktopComponent + ], entryComponents: [ArmyDeleteDialogComponent] }) export class CrusadetrackerArmyModule {} diff --git a/src/main/webapp/app/entities/unit-army/unit-army-detail-desktop.component.ts b/src/main/webapp/app/entities/unit-army/unit-army-detail-desktop.component.ts new file mode 100644 index 00000000..72f0615f --- /dev/null +++ b/src/main/webapp/app/entities/unit-army/unit-army-detail-desktop.component.ts @@ -0,0 +1,23 @@ +import {Component} from "@angular/core"; +import {UnitArmyDetailComponent} from "./unit-army-detail.component"; +import {JhiDataUtils, JhiEventManager} from "ng-jhipster"; +import {ActivatedRoute} from "@angular/router"; +import {UnitArmyService} from "./unit-army.service"; +import {ArmyService} from "../army/army.service"; +import {FormBuilder} from "@angular/forms"; + +@Component({ + selector: 'jhi-unit-army-detail-desktop', + templateUrl: './unit-army-detail.component-desktop.html' +}) +export class UnitArmyDetailDesktopComponent extends UnitArmyDetailComponent { + constructor(protected dataUtils: JhiDataUtils, + protected activatedRoute: ActivatedRoute, + protected eventManager: JhiEventManager, + protected unitArmyService: UnitArmyService, + protected armyService: ArmyService, + protected fb: FormBuilder) { + // super(dataUtils, activatedRoute); + super(dataUtils, activatedRoute, eventManager, unitArmyService, armyService, fb); + } +} diff --git a/src/main/webapp/app/entities/unit-army/unit-army-detail-mobile.component.ts b/src/main/webapp/app/entities/unit-army/unit-army-detail-mobile.component.ts new file mode 100644 index 00000000..23f0a9c8 --- /dev/null +++ b/src/main/webapp/app/entities/unit-army/unit-army-detail-mobile.component.ts @@ -0,0 +1,24 @@ +import {Component} from "@angular/core"; +import {UnitArmyDetailComponent} from "./unit-army-detail.component"; +import {JhiDataUtils, JhiEventManager} from "ng-jhipster"; +import {ActivatedRoute} from "@angular/router"; +import {UnitArmyService} from "./unit-army.service"; +import {ArmyService} from "../army/army.service"; +import {FormBuilder} from "@angular/forms"; +import {EventManager} from "@angular/platform-browser"; + +@Component({ + selector: 'jhi-unit-army-detail-mobile', + templateUrl: './unit-army-detail.component-mobile.html' +}) +export class UnitArmyDetailMobileComponent extends UnitArmyDetailComponent { + constructor(protected dataUtils: JhiDataUtils, + protected activatedRoute: ActivatedRoute, + protected eventManager: JhiEventManager, + protected unitArmyService: UnitArmyService, + protected armyService: ArmyService, + protected fb: FormBuilder) { + // super(dataUtils, activatedRoute); + super(dataUtils, activatedRoute, eventManager, unitArmyService, armyService, fb); + } +} diff --git a/src/main/webapp/app/entities/unit-army/unit-army-detail.component-desktop.html b/src/main/webapp/app/entities/unit-army/unit-army-detail.component-desktop.html new file mode 100644 index 00000000..b1949846 --- /dev/null +++ b/src/main/webapp/app/entities/unit-army/unit-army-detail.component-desktop.html @@ -0,0 +1,147 @@ +
Entries below should remain blank when the unit is first added to your Order of Battle. Fill these entries out as you play with the unit and when it has earned any Battle Honours or Battle Scars.
+Entries below should remain blank when the unit is first added to your Order of Battle. Fill these entries out as you play with the unit and when it has earned any Battle Honours or Battle Scars.
+Entries below should remain blank when the unit is first added to your Order of Battle. Fill these entries out as you play with the unit and when it has earned any Battle Honours or Battle Scars.
-