diff --git a/angular/src/app/_components/image-upload/image-upload.component.html b/angular/src/app/_components/image-upload/image-upload.component.html index 0562abe..9be071e 100644 --- a/angular/src/app/_components/image-upload/image-upload.component.html +++ b/angular/src/app/_components/image-upload/image-upload.component.html @@ -1,19 +1,24 @@ -
- +
+
+ - - + + - @if (selectedFile) { - {{ selectedFile.name }} - } + @if (selectedFile) { + {{ selectedFile.name }} + } +
@if (imageUrl && showImage) { -
- - +
+   +
+ + +
}
\ No newline at end of file diff --git a/angular/src/app/_components/list/list.component.ts b/angular/src/app/_components/list/list.component.ts index cad8fd9..46697a9 100644 --- a/angular/src/app/_components/list/list.component.ts +++ b/angular/src/app/_components/list/list.component.ts @@ -295,7 +295,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { if (elementValue !== undefined && elementValue !== null) { return elementValue; } - return "/assets/images/icons/dummy-product.png" + return "/assets/images/icons/dummy-person.png" } diff --git a/angular/src/app/_views/location/location-form/location-form.component.html b/angular/src/app/_views/location/location-form/location-form.component.html index 10302dd..d6c7de4 100644 --- a/angular/src/app/_views/location/location-form/location-form.component.html +++ b/angular/src/app/_views/location/location-form/location-form.component.html @@ -4,63 +4,63 @@
-
- - +
+
+ + +
+
+ + +
+
+ + + + +
+
+

{{ 'location.is_zone' | translate }}:

+ +
+
+

{{ 'location.is_place' | translate }}:

+ +
+
+

{{ 'location.is_port' | translate }}:

+ +
-
- - -
-
- - - - -
- -
-

{{ 'location.is_zone' | translate }}:

- -
- -
-

{{ 'location.is_place' | translate }}:

- -
- -
-

{{ 'location.is_port' | translate }}:

- -
- -
- - - @if (isEditMode()) { - - } + + @if (isEditMode()) { + + } +
diff --git a/angular/src/app/_views/shipping-company/shipping-company-form/shipping-company-form.component.html b/angular/src/app/_views/shipping-company/shipping-company-form/shipping-company-form.component.html index 6868ad8..b4015f7 100644 --- a/angular/src/app/_views/shipping-company/shipping-company-form/shipping-company-form.component.html +++ b/angular/src/app/_views/shipping-company/shipping-company-form/shipping-company-form.component.html @@ -4,34 +4,36 @@
-
- - +
+
+ + +
+
+ + +
- -
- - -
- -
- - - @if (isEditMode()) { - - } + + @if (isEditMode()) { + + } +
diff --git a/angular/src/app/_views/trip/trip-detail/trip-detail.component.html b/angular/src/app/_views/trip/trip-detail/trip-detail.component.html index ab3e0dd..f8599b0 100644 --- a/angular/src/app/_views/trip/trip-detail/trip-detail.component.html +++ b/angular/src/app/_views/trip/trip-detail/trip-detail.component.html @@ -17,9 +17,9 @@

{{ 'trip.itinerary_locations' | translate }}

-
+
-
+
-
+
-
+
-
+
-
- +
+
-
- +
+
+ +
-
- +
+
+ +

{{ 'trip.assigned_users' | translate }}

- -
+
-
+
-
- +
+
-
- +
+
+ +
-
- +
+
+ +
diff --git a/angular/src/app/_views/trip/trip-form/trip-form.component.html b/angular/src/app/_views/trip/trip-form/trip-form.component.html index 69b9b0c..a793881 100644 --- a/angular/src/app/_views/trip/trip-form/trip-form.component.html +++ b/angular/src/app/_views/trip/trip-form/trip-form.component.html @@ -6,87 +6,87 @@ }
-
- - - - -
-
- - - - -
-
- - - - -
- -
- - -
- -
- - -
- -
- -
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + +
+
+ + +
+
+ +
-
- +
+ +
- -
- - - @if (isEditMode()) { - - } + + @if (isEditMode()) { + + } +
diff --git a/angular/src/app/_views/user-trip/user-trip-detail/user-trip-detail.component.html b/angular/src/app/_views/user-trip/user-trip-detail/user-trip-detail.component.html index 36334e3..15d9c08 100644 --- a/angular/src/app/_views/user-trip/user-trip-detail/user-trip-detail.component.html +++ b/angular/src/app/_views/user-trip/user-trip-detail/user-trip-detail.component.html @@ -19,9 +19,9 @@

{{ 'user_trip.events' | translate }}

-
+
-
+
-
+
-
+
-
+
-
- -
-
- -
-
+
+ +
+ +
-
- +
+
+ +
-
- +
+
+ +
diff --git a/angular/src/app/_views/user-trip/user-trip-form/user-trip-form.component.html b/angular/src/app/_views/user-trip/user-trip-form/user-trip-form.component.html index ef2680f..6069a44 100644 --- a/angular/src/app/_views/user-trip/user-trip-form/user-trip-form.component.html +++ b/angular/src/app/_views/user-trip/user-trip-form/user-trip-form.component.html @@ -2,22 +2,24 @@
@if (data !== undefined) {
- -
- - -
-
-

{{ 'user_trip.completed' | translate }}:

- +
+
+ + +
+
+

{{ 'user_trip.completed' | translate }}:

+ +
+ -
- - - @if (isEditMode()) { - - } + + @if (isEditMode()) { + + } +
\ No newline at end of file diff --git a/angular/src/app/_views/user/user-form/user-form.component.html b/angular/src/app/_views/user/user-form/user-form.component.html index 893a7c4..96c15cf 100644 --- a/angular/src/app/_views/user/user-form/user-form.component.html +++ b/angular/src/app/_views/user/user-form/user-form.component.html @@ -7,49 +7,43 @@
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
-

{{ 'users.active' | translate }}:

- -
- -
-

{{ 'users.is_admin' | translate }}:

- +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+

{{ 'users.active' | translate }}:

+ +
+
+

{{ 'users.is_admin' | translate }}:

+ +
- - -
- - - @if (isEditMode()) { - - } + + @if (isEditMode()) { + + } +
diff --git a/angular/src/app/_views/vessel/vessel-form/vessel-form.component.html b/angular/src/app/_views/vessel/vessel-form/vessel-form.component.html index 153438a..05340ec 100644 --- a/angular/src/app/_views/vessel/vessel-form/vessel-form.component.html +++ b/angular/src/app/_views/vessel/vessel-form/vessel-form.component.html @@ -4,48 +4,49 @@
-
- - +
+
+ + +
+
+ + +
+
+ + + + +
- -
- - -
- -
- - - - -
- -
- - - @if (isEditMode()) { - - } + + @if (isEditMode()) { + + } +
diff --git a/angular/src/app/_views/zone/zone-form/zone-form.component.html b/angular/src/app/_views/zone/zone-form/zone-form.component.html index 88a53f8..ead9e88 100644 --- a/angular/src/app/_views/zone/zone-form/zone-form.component.html +++ b/angular/src/app/_views/zone/zone-form/zone-form.component.html @@ -4,21 +4,23 @@
-
- - -
- -
- +
+
+ + +
- @if (isEditMode()) { - - } + + @if (isEditMode()) { + + } +
diff --git a/angular/src/app/core/api/v1/model/constraintViolationJsonldJsonld.ts b/angular/src/app/core/api/v1/model/constraintViolationJsonldJsonld.ts index 35286ff..5ea0eb3 100644 --- a/angular/src/app/core/api/v1/model/constraintViolationJsonldJsonld.ts +++ b/angular/src/app/core/api/v1/model/constraintViolationJsonldJsonld.ts @@ -19,7 +19,6 @@ import { ConstraintViolationJsonViolationsInner } from './constraintViolationJso export interface ConstraintViolationJsonldJsonld { context?: ConstraintViolationJsonldJsonldContext; readonly id?: string; - readonly type?: string; status?: number; violations?: Array; readonly detail?: string; diff --git a/angular/src/app/core/api/v1/model/errorJsonld.ts b/angular/src/app/core/api/v1/model/errorJsonld.ts index 7e4f759..db06279 100644 --- a/angular/src/app/core/api/v1/model/errorJsonld.ts +++ b/angular/src/app/core/api/v1/model/errorJsonld.ts @@ -18,7 +18,6 @@ import { ConstraintViolationJsonldJsonldContext } from './constraintViolationJso export interface ErrorJsonld { context?: ConstraintViolationJsonldJsonldContext; readonly id?: string; - readonly type?: string; /** * A short, human-readable summary of the problem. */ diff --git a/angular/src/assets/i18n/en.json b/angular/src/assets/i18n/en.json index c6c78c2..3a406cc 100644 --- a/angular/src/assets/i18n/en.json +++ b/angular/src/assets/i18n/en.json @@ -13,7 +13,10 @@ { "name": "Name", "code": "Code", - "created_at": "Created at" + "created_at": "Created at", + "date": "Date", + "time": "Time", + "note": "Note" }, "trip": { @@ -43,7 +46,8 @@ "events": "Events", "completed": "Completed", "completed_at": "Completed at", - "signature": "Signature Image" + "signature": "Signature Image", + "event_date": "Event date" }, "base_data": { diff --git a/angular/src/assets/scss/_basics.scss b/angular/src/assets/scss/_basics.scss index ee37070..f00b458 100644 --- a/angular/src/assets/scss/_basics.scss +++ b/angular/src/assets/scss/_basics.scss @@ -134,7 +134,7 @@ body { } } -.spt-headline { +.spt-headline:not(.modal-content .spt-headline) { @media only screen and (min-width: 1200px) { margin: -32px 0 0 50px; } @@ -142,6 +142,7 @@ body { label, .form-label { + display: block; font-size: 13px; margin-bottom: 5px !important; @@ -270,7 +271,7 @@ textarea#pasteCodes { width: 85.5%; min-width: calc(100% - 200px); @media only screen and (max-width: 1199px) { - width: auto; + width: 100%; //width: calc(100% - calc(var(--bs-gutter-x) * 0.5) - calc(var(--bs-gutter-x) * 0.5)); } } @@ -597,6 +598,7 @@ textarea#pasteCodes { line-height: 24px; min-height: 38px; cursor: text; + background-color: #fff; &.search-empty { &:before { diff --git a/angular/src/assets/scss/_dark.scss b/angular/src/assets/scss/_dark.scss index eab5b4f..ccf05a8 100644 --- a/angular/src/assets/scss/_dark.scss +++ b/angular/src/assets/scss/_dark.scss @@ -27,9 +27,13 @@ select, label a, .form-label a, - .card-body { + .card-body, + .search-select .show-name p { color: #fff !important; } + .search-select .show-name p { + background: transparent; + } .mat-mdc-paginator-icon { fill: #fff; @@ -53,7 +57,8 @@ fill: #3e525f; } - .mat-mdc-tab-list .mat-ripple { + .mat-mdc-tab-list .mat-ripple, + .changing-list { background: #4e697b; } @@ -80,4 +85,31 @@ background-image: url("../images/icons/icon-back-white.svg"); background-size: 100% auto; } -} \ No newline at end of file + table, + p, + ul, + ol, + dl, + .post h3, + .tasks h3 { + a { + color: #fff; + &:hover { + color: #ddd; + } + } + } + .btn-link { + color: #fff; + &:hover { + color: #ddd; + } + } + .spt-clear { + background-color: transparent; + &:before, + &:after { + background: #fff; + } + } +} diff --git a/angular/src/assets/scss/_form.scss b/angular/src/assets/scss/_form.scss index 91d592d..7489d47 100644 --- a/angular/src/assets/scss/_form.scss +++ b/angular/src/assets/scss/_form.scss @@ -5,6 +5,7 @@ } .spt-form { + overflow: hidden; .delete-image { display: flex; justify-content: flex-start; @@ -34,3 +35,37 @@ } } +.image-display { + position: relative; + max-width: 300px; + img { + width: 100%; + } + .btn { + position: absolute; + right: 0; + top: 0; + padding: 6px 14px; + } +} + +.form-control::file-selector-button { + margin: 0; + padding: 3px 5px; + color: #000; + border: none; +} +textarea.form-control { + min-height: auto; + height: 34px; +} +.form-check { + margin-bottom: 1.25rem; +} +.btn-margin { + margin-bottom: 0.75rem; +} + +.changing-list { + background-color: #f6f6f6; +} diff --git a/httpdocs/src/DataFixtures/AppFixtures.php b/httpdocs/src/DataFixtures/AppFixtures.php index bee3f7b..762f84e 100644 --- a/httpdocs/src/DataFixtures/AppFixtures.php +++ b/httpdocs/src/DataFixtures/AppFixtures.php @@ -41,7 +41,8 @@ class AppFixtures extends Fixture 'firstName' => 'Jakob', 'lastName' => 'Nordstrøm', 'password' => '12spawntree345', - 'roles' => ['ROLE_ADMIN'] + 'roles' => ['ROLE_ADMIN'], + 'reference_id' => 1 ] ); $system->_set('image', MediaObjectFactory::createOne()->_real()); @@ -53,7 +54,8 @@ class AppFixtures extends Fixture 'firstName' => 'Daniel', 'lastName' => 'Knudsen', 'password' => '12spawntree345', - 'roles' => ['ROLE_ADMIN'] + 'roles' => ['ROLE_ADMIN'], + 'reference_id' => 1 ] ); $system->_set('image', MediaObjectFactory::createOne()->_real()); @@ -66,7 +68,8 @@ class AppFixtures extends Fixture 'lastName' => 'Eisenmenger', 'password' => '12spawntree345', 'image' => MediaObjectFactory::createOne(), - 'roles' => ['ROLE_ADMIN'] + 'roles' => ['ROLE_ADMIN'], + 'reference_id' => 1 ] ); $system->_set('image', MediaObjectFactory::createOne()->_real()); @@ -79,7 +82,8 @@ class AppFixtures extends Fixture 'lastName' => 'Pilot1', 'password' => '12spawntree345', 'image' => MediaObjectFactory::createOne(), - 'roles' => ['ROLE_USER'] + 'roles' => ['ROLE_USER'], + 'reference_id' => 1 ] ); $system->_set('image', MediaObjectFactory::createOne()->_real()); @@ -87,12 +91,13 @@ class AppFixtures extends Fixture UserFactory::createOne( [ - 'email' => 'pilot1@spawntree.de', + 'email' => 'pilot2@spawntree.de', 'firstName' => 'Pilot2', 'lastName' => 'Pilot2', 'password' => '12spawntree345', 'image' => MediaObjectFactory::createOne(), - 'roles' => ['ROLE_USER'] + 'roles' => ['ROLE_USER'], + 'reference_id' => 1 ] ); $system->_set('image', MediaObjectFactory::createOne()->_real()); @@ -100,12 +105,13 @@ class AppFixtures extends Fixture UserFactory::createOne( [ - 'email' => 'pilot1@spawntree.de', + 'email' => 'pilot3@spawntree.de', 'firstName' => 'Pilot3', 'lastName' => 'Pilot3', 'password' => '12spawntree345', 'image' => MediaObjectFactory::createOne(), - 'roles' => ['ROLE_USER'] + 'roles' => ['ROLE_USER'], + 'reference_id' => 1 ] ); $system->_set('image', MediaObjectFactory::createOne()->_real()); @@ -113,12 +119,13 @@ class AppFixtures extends Fixture UserFactory::createOne( [ - 'email' => 'pilot1@spawntree.de', + 'email' => 'pilot4@spawntree.de', 'firstName' => 'Pilot4', 'lastName' => 'Pilot4', 'password' => '12spawntree345', 'image' => MediaObjectFactory::createOne(), - 'roles' => ['ROLE_USER'] + 'roles' => ['ROLE_USER'], + 'reference_id' => 1 ] ); $system->_set('image', MediaObjectFactory::createOne()->_real());