From 8ae03c37181822617418d1fc372982b245ac0a9a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 3 Sep 2019 09:49:04 +0200 Subject: Add creation reason --- .../about-instance/about-instance.component.html | 12 +++++++--- .../about-instance/about-instance.component.ts | 2 ++ .../edit-custom-config.component.html | 26 ++++++++++++++++------ .../edit-custom-config.component.scss | 4 ++-- .../edit-custom-config.component.ts | 2 ++ 5 files changed, 34 insertions(+), 12 deletions(-) (limited to 'client/src') diff --git a/client/src/app/+about/about-instance/about-instance.component.html b/client/src/app/+about/about-instance/about-instance.component.html index 80acfcce0..8b21137af 100644 --- a/client/src/app/+about/about-instance/about-instance.component.html +++ b/client/src/app/+about/about-instance/about-instance.component.html @@ -24,19 +24,25 @@
-
Who are we?
+
Who we are
+
+
Why we created this instance
+ +

{{ creationReason }}

+
+
-
How long do we plan to maintain this instance?
+
How long we plan to maintain this instance

{{ maintenanceLifetime }}

-
How will we pay this instance?
+
How we will pay this instance

{{ businessModel }}

diff --git a/client/src/app/+about/about-instance/about-instance.component.ts b/client/src/app/+about/about-instance/about-instance.component.ts index e2c448501..b6cade4fe 100644 --- a/client/src/app/+about/about-instance/about-instance.component.ts +++ b/client/src/app/+about/about-instance/about-instance.component.ts @@ -25,6 +25,7 @@ export class AboutInstanceComponent implements OnInit { administrator: '' } + creationReason = '' maintenanceLifetime = '' businessModel = '' @@ -61,6 +62,7 @@ export class AboutInstanceComponent implements OnInit { async ([ about, translations ]) => { this.shortDescription = about.instance.shortDescription + this.creationReason = about.instance.creationReason this.maintenanceLifetime = about.instance.maintenanceLifetime this.businessModel = about.instance.businessModel diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html index 5aa6fda3c..ef24e5b24 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html @@ -21,7 +21,7 @@
{{ formErrors.instance.shortDescription }}
@@ -130,14 +130,26 @@
You and your instance
- +
A single person? A non profit? A company?
+ + +
{{ formErrors.instance.administrator }}
+
+ +
+ +
To share your personal videos? To open registrations and allow people to upload what they want?
+ -
{{ formErrors.instance.administrator }}
+
{{ formErrors.instance.creationReason }}
@@ -145,7 +157,7 @@
It's important to know for users who want to register on your instance
{{ formErrors.instance.maintenanceLifetime }}
@@ -156,7 +168,7 @@
With you own funds? With users donations? Advertising?
{{ formErrors.instance.businessModel }}
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss index 68f1b01b7..2b4d0da2c 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss @@ -44,8 +44,8 @@ textarea { display: block; - &#instanceShortDescription { - height: 100px; + &.small { + height: 75px; } } diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts index 3119ab040..e6f56bc97 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts @@ -100,6 +100,8 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { terms: null, codeOfConduct: null, + + creationReason: null, moderationInformation: null, administrator: null, maintenanceLifetime: null, -- cgit v1.2.3