diff --git a/client/src/app/site/motions/motion-detail/motion-detail.component.html b/client/src/app/site/motions/motion-detail/motion-detail.component.html index 53a402dc6..6d954e780 100644 --- a/client/src/app/site/motions/motion-detail/motion-detail.component.html +++ b/client/src/app/site/motions/motion-detail/motion-detail.component.html @@ -33,171 +33,227 @@ - + - - - - - - - Meta information - - + + - -
+ + + + + + Meta information + + - -
- -
-

Identifier

- {{motion.identifier}} -
- - - + +
+ +
+ + + + + + + + Personal note + + + TEST + + + + + + + + Content + + + +
+ +
+
+ + + + +
+
+ + +
+
- -
-

Submitters

- {{motion.submitterAsUser}} + +
+ + + + Personal Note +
+ + +
+ +
+
+ + Hier könnte ihre Werbung stehen. 1 2 3 4 5 6 Hier könnte ihre Werbung stehen. 1 2 3 4 5 6 + +
- -
-

Supporters

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

Identifier

+ {{motion.identifier}}
+ + + +
- -
-
-

State

- {{motion.state}} -
- - - {{motionCopy.state}} - - {{state}} - - - Reset State - - - + +
+

Submitters

+ {{motion.submitterAsUser}} +
+ + +
+

Supporters

+ +
+ + +
+
+

State

+ {{motion.state}}
+ + + {{motionCopy.state}} + + {{state}} + + + Reset State + + + +
- - -
-
-

{{motion.recomBy}}

- {{motion.recommendation.name}} -
- - - {{state}} - - - - - - Reset recommendation - - - + + +
+
+

{{motion.recomBy}}

+ {{motion.recommendation.name}}
+ + + {{state}} + - -
-
-

Category

- {{motion.category}} -
- - - None - - {{cat}} - - + + + + Reset recommendation + + + +
+ + +
+
+

Category

+ {{motion.category}}
+ + + None + + {{cat}} + + +
- -
-
-

Origin

- {{motion.origin}} -
- - - + +
+
+

Origin

+ {{motion.origin}}
+ + + +
- - + - - + + - - - - - - Personal note - - - TEST - + +
- - - - - - Content - - - - - - -
-
-

{{motion.currentTitle}}

-
- - - + +
+
+

{{motion.currentTitle}}

- - - -

The assembly may decide:

-
-
-
- - + + - -
-
-

Reason

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

The assembly may decide:

+
+
+
+ + + + + + +
+
+

Reason

+
+
+ + + +
+ + + diff --git a/client/src/app/site/motions/motion-detail/motion-detail.component.scss b/client/src/app/site/motions/motion-detail/motion-detail.component.scss index 4043eaee2..e54d18361 100644 --- a/client/src/app/site/motions/motion-detail/motion-detail.component.scss +++ b/client/src/app/site/motions/motion-detail/motion-detail.component.scss @@ -27,13 +27,7 @@ mat-panel-title { } } -.meta-info-panel { - padding-top: 25px; - - a:hover { - cursor: pointer; - } - +.meta-info-block { h3 { display: block; margin-top: 12px; //distance between heading and text @@ -62,11 +56,21 @@ mat-panel-title { } } -.wide-text { - width: 95%; - +.wide-form { textarea { - height: 200px; + height: 25vh; + } + + ::ng-deep { + width: 100%; + } +} + +.meta-info-panel { + padding-top: 25px; + + a:hover { + cursor: pointer; } } @@ -95,3 +99,61 @@ mat-expansion-panel { font-size: 100%; } } + +.desktop-view { + .desktop-left { + width: 30%; + float: left; + + .meta-info-desktop { + padding: 40px 20px 10px 20px; + } + + .personal-note { + mat-card { + padding: 0px; + margin: 20px; + min-width: 10hv; + min-width: 200px; + + .mat-card-header-text { + width: 100%; + } + + mat-card-header { + display: inherit; + padding: 15px; + margin: 0; + background-color: #eee; + + .title-right { + float: right; + fa-icon { + padding-left: 10px; + } + } + + mat-card-title { + font-weight: bold; + display: inline; + } + } + + mat-card-content { + padding: 30px 15px 15px 15px; + } + } + } + } + + .desktop-right { + display: grid; + + min-width: 70%; + + mat-card { + display: inline; + margin: 20px; + } + } +} diff --git a/client/src/app/site/motions/motion-detail/motion-detail.component.ts b/client/src/app/site/motions/motion-detail/motion-detail.component.ts index c4ff3a259..4abc80dd8 100644 --- a/client/src/app/site/motions/motion-detail/motion-detail.component.ts +++ b/client/src/app/site/motions/motion-detail/motion-detail.component.ts @@ -1,11 +1,13 @@ import { Component, OnInit, ViewChild } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; +import { FormGroup, FormBuilder, Validators } from '@angular/forms'; +import { MatExpansionPanel } from '@angular/material'; + import { BaseComponent } from '../../../base.component'; import { Motion } from '../../../shared/models/motions/motion'; import { Category } from '../../../shared/models/motions/category'; -import { FormGroup, FormBuilder, Validators } from '@angular/forms'; -import { MatExpansionPanel } from '@angular/material'; import { DataSendService } from '../../../core/services/data-send.service'; +import { ViewportService } from '../../../core/services/viewport.service'; /** * Component for the motion detail view @@ -59,11 +61,14 @@ export class MotionDetailComponent extends BaseComponent implements OnInit { /** * Constuct the detail view. * - * + * @param vp the viewport service + * @param router to navigate back to the motion list and to an existing motion * @param route determine if this is a new or an existing motion * @param formBuilder For reactive forms. Form Group and Form Control + * @param dataSend To send changes of the motion */ public constructor( + public vp: ViewportService, private router: Router, private route: ActivatedRoute, private formBuilder: FormBuilder, @@ -180,8 +185,11 @@ export class MotionDetailComponent extends BaseComponent implements OnInit { this.motionCopy = new Motion(); this.motionCopy.patchValues(this.motion); this.patchForm(this.motionCopy); - this.metaInfoPanel.open(); - this.contentPanel.open(); + + if (this.vp.isMobile) { + this.metaInfoPanel.open(); + this.contentPanel.open(); + } } else { this.saveMotion(); } diff --git a/client/src/app/site/motions/motion-list/motion-list.component.html b/client/src/app/site/motions/motion-list/motion-list.component.html index 6e7cea8dd..abdbf21dd 100644 --- a/client/src/app/site/motions/motion-list/motion-list.component.html +++ b/client/src/app/site/motions/motion-list/motion-list.component.html @@ -1,24 +1,3 @@ - - @@ -71,4 +50,4 @@ - \ No newline at end of file +