-
-
- Input groups
-
-
-
- @
-
-
-
-
-
- @example.com
-
-
-
-
- https://example.com/users/
-
-
-
-
- $
-
- .00
-
-
-
- $
- 0.00
-
-
- Rating
-
-
+
+ Rating
-
+
-
-
+ ★
- Rate: {{ rate1 }}
+ {{ currentRate }}
-
+
-
-
+ ★
- Rate: {{ rate2 }}
-
-
-
-
-
- Selects
-
-
-
-
-
-
-
-
-
-
+ {{ currentRate }}
diff --git a/src/app/pages/forms/form-inputs/form-inputs.component.ts b/src/app/pages/forms/form-inputs/form-inputs.component.ts
index 8944204d..380631a2 100644
--- a/src/app/pages/forms/form-inputs/form-inputs.component.ts
+++ b/src/app/pages/forms/form-inputs/form-inputs.component.ts
@@ -5,11 +5,5 @@ import { Component } from '@angular/core';
templateUrl: './form-inputs.component.html',
})
export class FormInputsComponent {
-
- rate1: number = 3;
- rate2: number = 4;
-
- max1: number = 5;
- max2: number = 10;
-
+ currentRate: number = 6;
}
diff --git a/src/app/pages/forms/form-layouts/form-layouts.component.html b/src/app/pages/forms/form-layouts/form-layouts.component.html
deleted file mode 100644
index 0e71dab6..00000000
--- a/src/app/pages/forms/form-layouts/form-layouts.component.html
+++ /dev/null
@@ -1,211 +0,0 @@
-
-
-
-
- Inline form
-
-
-
-
-
-
-
-
-
-
- Using the Grid
-
-
-
-
-
-
- Form without labels
-
-
-
-
-
-
-
-
-
-
-
-
- Horizontal form
-
-
-
-
-
-
-
diff --git a/src/app/pages/forms/form-layouts/form-layouts.component.ts b/src/app/pages/forms/form-layouts/form-layouts.component.ts
deleted file mode 100644
index aab7e4b6..00000000
--- a/src/app/pages/forms/form-layouts/form-layouts.component.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'ngx-form-layouts',
- templateUrl: './form-layouts.component.html',
-})
-export class FormLayoutsComponent {
-
-}
diff --git a/src/app/pages/forms/forms-routing.module.ts b/src/app/pages/forms/forms-routing.module.ts
index 2ce66ace..dc0f8b2f 100644
--- a/src/app/pages/forms/forms-routing.module.ts
+++ b/src/app/pages/forms/forms-routing.module.ts
@@ -3,7 +3,6 @@ import { Routes, RouterModule } from '@angular/router';
import { FormsComponent } from './forms.component';
import { FormInputsComponent } from './form-inputs/form-inputs.component';
-import { FormLayoutsComponent } from './form-layouts/form-layouts.component';
const routes: Routes = [{
path: '',
@@ -11,9 +10,6 @@ const routes: Routes = [{
children: [{
path: 'inputs',
component: FormInputsComponent,
- }, {
- path: 'layouts',
- component: FormLayoutsComponent,
}],
}];
@@ -32,5 +28,4 @@ export class FormsRoutingModule {
export const routedComponents = [
FormsComponent,
FormInputsComponent,
- FormLayoutsComponent,
];
diff --git a/src/app/pages/forms/forms.component.scss b/src/app/pages/forms/forms.component.scss
new file mode 100644
index 00000000..54a8544f
--- /dev/null
+++ b/src/app/pages/forms/forms.component.scss
@@ -0,0 +1,44 @@
+:host /deep/ {
+ .input-group {
+ margin-bottom: 1rem;
+ }
+
+ .validation-checkboxes {
+ display: flex;
+ justify-content: space-between;
+ }
+
+ .demo-checkboxes {
+ display: flex;
+ flex-direction: column;
+ }
+
+ .demo-radio {
+ display: flex;
+ flex-direction: column;
+ }
+
+ .demo-disabled-checkbox-radio {
+ display: flex;
+ flex-direction: column;
+ }
+
+ .demo-checkboxes-radio {
+ display: flex;
+ justify-content: space-between;
+ }
+
+ .demo-rating {
+ display: flex;
+ justify-content: space-between;
+ }
+
+ .star {
+ font-size: 1.5rem;
+ color: #b0c4de;
+ }
+
+ .filled {
+ color: #1e90ff;
+ }
+}
diff --git a/src/app/pages/forms/forms.component.ts b/src/app/pages/forms/forms.component.ts
index 66202993..f306fc52 100644
--- a/src/app/pages/forms/forms.component.ts
+++ b/src/app/pages/forms/forms.component.ts
@@ -2,10 +2,10 @@ import { Component } from '@angular/core';
@Component({
selector: 'ngx-form-elements',
+ styleUrls: ['./forms.component.scss'],
template: `
`,
})
export class FormsComponent {
-
}
diff --git a/src/app/pages/forms/forms.module.ts b/src/app/pages/forms/forms.module.ts
index c365c4aa..54559f49 100644
--- a/src/app/pages/forms/forms.module.ts
+++ b/src/app/pages/forms/forms.module.ts
@@ -1,4 +1,5 @@
import { NgModule } from '@angular/core';
+import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { SharedModule } from '../../shared.module';
@@ -8,6 +9,7 @@ import { FormsRoutingModule, routedComponents } from './forms-routing.module';
imports: [
SharedModule,
FormsRoutingModule,
+ NgbModule,
],
declarations: [
...routedComponents,
diff --git a/src/app/pages/pages-menu.ts b/src/app/pages/pages-menu.ts
index ffbacceb..ac8c103a 100644
--- a/src/app/pages/pages-menu.ts
+++ b/src/app/pages/pages-menu.ts
@@ -33,7 +33,7 @@ export const menuItems: List
= List([{
}, {
title: 'Animated Searches',
link: '/pages/ui-features/search-fields',
- },
+ },
{
title: 'Tabs',
link: '/pages/ui-features/tabs',
@@ -89,9 +89,6 @@ export const menuItems: List = List([{
children: List([{
title: 'Form Inputs',
link: '/pages/forms/inputs',
- }, {
- title: 'Form Layouts',
- link: '/pages/forms/layouts',
}]),
}, {
title: 'Tables',