diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.component.html b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.component.html index 6f31f960c..667b139f9 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.component.html +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.component.html @@ -16,8 +16,7 @@ ~ specific language governing permissions and limitations ~ under the License. --> -
- +
-
-
+
+
-
- + -
+
\ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.module.ts b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.module.ts index 3be9131ff..e991091b0 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.module.ts +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.module.ts @@ -27,6 +27,7 @@ import { AboutComponent } from './modules/general/about/about.component'; import { LoginComponent } from './modules/general/login/login.component'; import { NotFoundComponent } from './modules/general/not-found/not-found.component'; import { SidemenuComponent } from './modules/general/sidemenu/sidemenu.component'; +import {FormsModule} from "@angular/forms"; @NgModule({ declarations: [ @@ -41,6 +42,7 @@ import { SidemenuComponent } from './modules/general/sidemenu/sidemenu.component imports: [ BrowserModule, AppRoutingModule, + FormsModule, ], providers: [], bootstrap: [AppComponent] diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/logindata.ts b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/logindata.ts new file mode 100644 index 000000000..4aec82efe --- /dev/null +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/logindata.ts @@ -0,0 +1,26 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export class Logindata { + + constructor( + public username: string, + public password: string + ) { } + +} \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/general/login/login.component.html b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/general/login/login.component.html index cf12d1d9f..bfab352d9 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/general/login/login.component.html +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/general/login/login.component.html @@ -16,4 +16,36 @@ ~ specific language governing permissions and limitations ~ under the License. --> -

Login

+
+
+
+
+
+ + + Enter your username. + +
+ Username is required +
+
+
+ + + Enter your password. +
+ Password is required +
+
+ +
+
+
+
\ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/general/login/login.component.ts b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/general/login/login.component.ts index 7a8913789..bb018b6a6 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/general/login/login.component.ts +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/general/login/login.component.ts @@ -17,6 +17,9 @@ * under the License. */ import { Component, OnInit } from '@angular/core'; +// noinspection ES6UnusedImports +import { FormsModule } from "@angular/forms"; +import { Logindata } from "../../../logindata"; @Component({ selector: 'app-login', @@ -25,7 +28,15 @@ import { Component, OnInit } from '@angular/core'; }) export class LoginComponent implements OnInit { - constructor() { } + model = new Logindata('', ''); + + submitted = false; + + onSubmit() { this.submitted = true; } + + get diagnostic() { return JSON.stringify(this.submitted); } + + constructor() { } ngOnInit(): void { } diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/index.html b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/index.html index a1038bdf1..537bebfcb 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/index.html +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/index.html @@ -25,7 +25,7 @@ - + diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/styles.scss b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/styles.scss index b31b9a039..78150ac5a 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/styles.scss +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/styles.scss @@ -21,10 +21,25 @@ $archiva-orange: #f46e1b; $primary: $archiva-orange; + +html { + height: 100%; +} +.app { + height: 100%; +} + + body { color: black; font-weight: 400; padding-top: 5rem; + min-height:100%; + height: 100%; +} + +.flex-fill { + flex:1 1 auto; } @import "~bootstrap/scss/bootstrap";