From ccbd1644b4447618c6322c1e1aceba572c5d6748 Mon Sep 17 00:00:00 2001 From: Diamadis Tziotzios Date: Mon, 11 Dec 2017 10:10:54 +0200 Subject: [PATCH 1/3] no message --- dmp-frontend/src/app/app.component.css | 162 ++---------------- dmp-frontend/src/app/app.component.html | 24 +-- dmp-frontend/src/app/app.component.ts | 5 +- .../dynamic-form-field.component.css | 4 +- .../dynamic-form-field.component.html | 12 +- .../dynamic-form-composite-field.css | 6 +- .../dynamic-form-composite-field.html | 24 ++- .../dynamic-form-group.component.css | 6 +- .../dynamic-form-group.component.html | 8 +- .../dynamic-form-section.html | 44 +++-- .../src/app/form/dynamic-form.component.css | 39 ++--- .../src/app/form/dynamic-form.component.html | 103 +---------- .../table-of-content-section.component.html | 16 +- dmp-frontend/src/index.html | 2 +- 14 files changed, 103 insertions(+), 352 deletions(-) diff --git a/dmp-frontend/src/app/app.component.css b/dmp-frontend/src/app/app.component.css index 7c3bd07bf..31b04e3cf 100644 --- a/dmp-frontend/src/app/app.component.css +++ b/dmp-frontend/src/app/app.component.css @@ -1,160 +1,22 @@ -.hide{ - display:none; -} - -.show { - display:block; -} - -.ng-valid[required], .ng-valid.required { - border-left: 5px solid #42A948; /* green */ - } - - .ng-invalid:not(form) { - border-left: 5px solid #a94442; /* red */ - } - - -.navbar-center { - position: absolute; +.full-width { width: 100%; - left: 0; - text-align: center; - vertical-align: middle; - margin:0 auto; } -.invisible { - display:none; -} - -.visible { - display:block; -} - -.cursor{ - cursor: pointer; -} - -.navbar { - -webkit-box-shadow: 0px 0px 12px 2px rgba(0,0,0,0.73); - -moz-box-shadow: 0px 0px 12px 2px rgba(0,0,0,0.73); - box-shadow: 0px 0px 12px 2px rgba(0,0,0,0.73); - margin-bottom: 5px; -} - - -.navbar-title { - /* - width: 100%; - position: absolute; - left: 0; - */ - margin:0 auto; - text-align: center; -} -.navbar-toggle { - z-index:3; -} - -.arrange-horizontally > * { - display: inline-block; - /*text-align: center;*/ - white-space: nowrap -} -.arrange-vertically > * { - display: block; -} - - -/* FOR THE SIDEBAR */ - -.parent_div{ - height:100%; - width:100%; - float:left; -} - -.child_div_left{ - height:100%; - float:left; -} - -.child_div_right{ - height:100%; - float:right; -} - - -.sidenav { - - display:none; - - border-radius: 15px; - - z-index: 1; - width: 0px; - /* - top: 0px; +.full-height { height: 100%; - left: 0px; - */ - overflow-x: hidden; - background-color: #f8f8f8; - transition: 0.5s; - padding-top: 60px; } -.sidenav.expanded{ - width: 15%; - +html, +body { + height: 100%; + width: 100%; +} +app-root { display: block; - - border-style: solid; - border-width: thin; - - border-radius: 15px; - padding-top: 60px; + height: 100%; } -#appBody { - width : 100%; - transition: 0.5s; -} -#appBody.expanded{ - width: 85%; -} - - - -.sidenav a { - padding: 8px 8px 8px 32px; - text-decoration: none; - font-size: 25px; - color: #818181; - display: block; - transition: 0.5s; -} - -.sidenav a:hover { - color: #000; -} - -.sidenav .closebtn { - position: absolute; - top: 0; - right: 25px; - font-size: 36px; - margin-left: 50px; -} - -#main { - transition: margin-left .5s; - /*padding: 16px;*/ -} - -@media screen and (max-height: 450px) { - .sidenav {padding-top: 15px;} - .sidenav a {font-size: 18px;} -} +html { + overflow-y: hidden +} \ No newline at end of file diff --git a/dmp-frontend/src/app/app.component.html b/dmp-frontend/src/app/app.component.html index 57546e87d..9af984168 100644 --- a/dmp-frontend/src/app/app.component.html +++ b/dmp-frontend/src/app/app.component.html @@ -85,26 +85,4 @@ - -
- - - - - -
- -
- - - -
\ No newline at end of file + \ No newline at end of file diff --git a/dmp-frontend/src/app/app.component.ts b/dmp-frontend/src/app/app.component.ts index fb0b02d02..1b14ed409 100644 --- a/dmp-frontend/src/app/app.component.ts +++ b/dmp-frontend/src/app/app.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit} from '@angular/core'; +import { Component, OnInit, ViewEncapsulation} from '@angular/core'; import { ServerService } from './services/server.service'; import { JsonObjest } from '../app/entities/JsonObject.class'; import { TokenService, TokenProvider } from './services/login/token.service'; @@ -16,7 +16,8 @@ declare var $ :any; selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'], - providers: [] + providers: [], + encapsulation: ViewEncapsulation.None }) export class AppComponent implements OnInit { diff --git a/dmp-frontend/src/app/form/dynamic-fields/dynamic-form-field.component.css b/dmp-frontend/src/app/form/dynamic-fields/dynamic-form-field.component.css index ad1e6a6d6..4e3148b1f 100644 --- a/dmp-frontend/src/app/form/dynamic-fields/dynamic-form-field.component.css +++ b/dmp-frontend/src/app/form/dynamic-fields/dynamic-form-field.component.css @@ -3,10 +3,10 @@ } .field-component { - border:1px solid grey; + /* border:1px solid grey; border-radius: 2px; padding: 10px; - margin-bottom: 10px; + margin-bottom: 10px; */ } .field-extended-desc { diff --git a/dmp-frontend/src/app/form/dynamic-fields/dynamic-form-field.component.html b/dmp-frontend/src/app/form/dynamic-fields/dynamic-form-field.component.html index b0f325df7..79540284d 100644 --- a/dmp-frontend/src/app/form/dynamic-fields/dynamic-form-field.component.html +++ b/dmp-frontend/src/app/form/dynamic-fields/dynamic-form-field.component.html @@ -2,12 +2,14 @@ [ngSwitch]="field.viewStyle.renderStyle">
{{path + ' ' + field.title}}
-
{{field.description}}
-
- {{field.extendedDescription}} -
-
+ +
+
{{field.description}}
+
+ {{field.extendedDescription}} +
+
diff --git a/dmp-frontend/src/app/form/dynamic-form-composite-field/dynamic-form-composite-field.css b/dmp-frontend/src/app/form/dynamic-form-composite-field/dynamic-form-composite-field.css index e19052935..a8e80f398 100644 --- a/dmp-frontend/src/app/form/dynamic-form-composite-field/dynamic-form-composite-field.css +++ b/dmp-frontend/src/app/form/dynamic-form-composite-field/dynamic-form-composite-field.css @@ -3,10 +3,10 @@ } .fieldset-component { - border:1px solid grey; + /* border:1px solid grey; border-radius: 2px; padding: 10px; - margin-bottom: 10px; + margin-bottom: 10px; */ } .fieldset-extended-desc { @@ -14,5 +14,5 @@ } .content-left-margin { - margin-left: 10px; + /* margin-left: 10px; */ } \ No newline at end of file diff --git a/dmp-frontend/src/app/form/dynamic-form-composite-field/dynamic-form-composite-field.html b/dmp-frontend/src/app/form/dynamic-form-composite-field/dynamic-form-composite-field.html index b13e9ed85..a033f0711 100644 --- a/dmp-frontend/src/app/form/dynamic-form-composite-field/dynamic-form-composite-field.html +++ b/dmp-frontend/src/app/form/dynamic-form-composite-field/dynamic-form-composite-field.html @@ -1,12 +1,18 @@ -
-

{{compositeField.title}}

-
-

{{compositeField.description}}

-

- {{compositeField.extendedDescription}} -

-
- +
+ + + + +
+

{{compositeField.title}}

+
+

{{compositeField.description}}

+

+ {{compositeField.extendedDescription}} +

+
+ +
\ No newline at end of file diff --git a/dmp-frontend/src/app/form/dynamic-form-group/dynamic-form-group.component.css b/dmp-frontend/src/app/form/dynamic-form-group/dynamic-form-group.component.css index 7657b454e..2f19bc1c6 100644 --- a/dmp-frontend/src/app/form/dynamic-form-group/dynamic-form-group.component.css +++ b/dmp-frontend/src/app/form/dynamic-form-group/dynamic-form-group.component.css @@ -7,10 +7,10 @@ } .group-component { - border:1px solid grey; + /* border:1px solid grey; border-radius: 2px; padding: 10px; - margin-bottom: 10px; + margin-bottom: 10px; */ } .group-extended-desc { @@ -18,5 +18,5 @@ } .content-left-margin { - margin-left: 10px; + /* margin-left: 10px; */ } \ No newline at end of file diff --git a/dmp-frontend/src/app/form/dynamic-form-group/dynamic-form-group.component.html b/dmp-frontend/src/app/form/dynamic-form-group/dynamic-form-group.component.html index c8f4256f9..fedb1603d 100644 --- a/dmp-frontend/src/app/form/dynamic-form-group/dynamic-form-group.component.html +++ b/dmp-frontend/src/app/form/dynamic-form-group/dynamic-form-group.component.html @@ -1,12 +1,12 @@
-

{{path + ' ' + group.title}}

+
-
{{group.description}}
+
-
diff --git a/dmp-frontend/src/app/form/dynamic-form-section/dynamic-form-section.html b/dmp-frontend/src/app/form/dynamic-form-section/dynamic-form-section.html index cc859b146..d7d33753e 100644 --- a/dmp-frontend/src/app/form/dynamic-form-section/dynamic-form-section.html +++ b/dmp-frontend/src/app/form/dynamic-form-section/dynamic-form-section.html @@ -1,22 +1,32 @@ - - -
-

{{path}} {{section.title}}

-
-
- -
-

{{section.description}}

-

{{section.extendedDescription}}

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

{{section.description}}

+

{{section.extendedDescription}}

+
+
+ +
+
+
+
+ +
+
+
- \ No newline at end of file +
\ No newline at end of file diff --git a/dmp-frontend/src/app/form/dynamic-form.component.css b/dmp-frontend/src/app/form/dynamic-form.component.css index a6a3e17b6..d2abf7208 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.css +++ b/dmp-frontend/src/app/form/dynamic-form.component.css @@ -1,34 +1,15 @@ -.full-width { - width: 100%; -} -.ui-steps .ui-steps-item { - width: 25%; -} - -.ui-steps.steps-custom { - margin-bottom: 30px; -} - -.ui-steps.steps-custom .ui-steps-item .ui-menuitem-link { - height: 10px; - padding: 0 1em; -} - -.ui-steps.steps-custom .ui-steps-item .ui-steps-number { - background-color: #0081c2; - color: #FFFFFF; - display: inline-block; - width: 36px; - border-radius: 50%; - margin-top: -14px; - margin-bottom: 10px; -} - -.ui-steps.steps-custom .ui-steps-item .ui-steps-title { - color: #555555; -} .ng-sidebar { width: 40%; +} + +.toc-container { + background: #f9f9f9 none repeat scroll 0 0; + border: 1px solid #aaa; + display: table; + font-size: 95%; + margin-bottom: 1em; + padding: 20px; + width: auto; } \ No newline at end of file diff --git a/dmp-frontend/src/app/form/dynamic-form.component.html b/dmp-frontend/src/app/form/dynamic-form.component.html index c9508bebf..ad055ba48 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.html +++ b/dmp-frontend/src/app/form/dynamic-form.component.html @@ -1,7 +1,7 @@ -
- - - +
+ + +
@@ -27,97 +27,4 @@
-
- - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file +
\ No newline at end of file diff --git a/dmp-frontend/src/app/form/tableOfContents/table-of-content-section/table-of-content-section.component.html b/dmp-frontend/src/app/form/tableOfContents/table-of-content-section/table-of-content-section.component.html index 71747739b..758a6f56e 100644 --- a/dmp-frontend/src/app/form/tableOfContents/table-of-content-section/table-of-content-section.component.html +++ b/dmp-frontend/src/app/form/tableOfContents/table-of-content-section/table-of-content-section.component.html @@ -1,11 +1,15 @@ -{{path+' '+model.title}} +{{path + ' ' + model.title}} + +
+
+ + +
+
-
    -
  • - -
  • -
  • diff --git a/dmp-frontend/src/index.html b/dmp-frontend/src/index.html index e99d8e9c3..6ec9a46e2 100644 --- a/dmp-frontend/src/index.html +++ b/dmp-frontend/src/index.html @@ -51,6 +51,6 @@ - + \ No newline at end of file From 3acba4ceb6c64617beea6f026ac981d45f95a87b Mon Sep 17 00:00:00 2001 From: Diamadis Tziotzios Date: Mon, 11 Dec 2017 10:40:11 +0200 Subject: [PATCH 2/3] no message --- .../dynamic-form-group/dynamic-form-group.component.html | 5 ++--- dmp-frontend/src/app/form/dynamic-form.component.html | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dmp-frontend/src/app/form/dynamic-form-group/dynamic-form-group.component.html b/dmp-frontend/src/app/form/dynamic-form-group/dynamic-form-group.component.html index fedb1603d..fca9cd0be 100644 --- a/dmp-frontend/src/app/form/dynamic-form-group/dynamic-form-group.component.html +++ b/dmp-frontend/src/app/form/dynamic-form-group/dynamic-form-group.component.html @@ -1,4 +1,4 @@ -
    +
    - +
    \ No newline at end of file diff --git a/dmp-frontend/src/app/form/dynamic-form.component.html b/dmp-frontend/src/app/form/dynamic-form.component.html index ad055ba48..ddeaacbc6 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.html +++ b/dmp-frontend/src/app/form/dynamic-form.component.html @@ -9,7 +9,7 @@
    -
    @@ -20,7 +20,7 @@
    -
    From 9e0d989b67a9ffb4965d77d89d981db47408b25a Mon Sep 17 00:00:00 2001 From: krommydas kyriakos Date: Mon, 11 Dec 2017 10:50:27 +0200 Subject: [PATCH 3/3] Small fix --- dmp-frontend/src/app/form/dynamic-form.component.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dmp-frontend/src/app/form/dynamic-form.component.html b/dmp-frontend/src/app/form/dynamic-form.component.html index ddeaacbc6..0732ad538 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.html +++ b/dmp-frontend/src/app/form/dynamic-form.component.html @@ -1,4 +1,4 @@ -
    +
    @@ -9,8 +9,7 @@
    - +