From 0943d682970d2e296a164515ef92defe21d4d3b5 Mon Sep 17 00:00:00 2001 From: "sofia.baltzi" Date: Tue, 6 Mar 2018 15:25:09 +0000 Subject: [PATCH] Move community-edit-form to new directory community-edit-form git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@51056 d315682c-612b-4755-9ff5-7f18f6832af3 --- app/app.module.ts | 2 +- app/app.routing.ts | 4 ++-- .../community-edit-form.component.html | 7 +++++-- .../community-edit-form.component.ts | 4 ++-- .../community-edit-form/community-edit-form.service.ts | 6 ++++++ 5 files changed, 16 insertions(+), 7 deletions(-) rename app/pages/community/{ => community-edit-form}/community-edit-form.component.html (58%) rename app/pages/community/{ => community-edit-form}/community-edit-form.component.ts (92%) create mode 100644 app/pages/community/community-edit-form/community-edit-form.service.ts diff --git a/app/app.module.ts b/app/app.module.ts index c4beb38..9afec66 100644 --- a/app/app.module.ts +++ b/app/app.module.ts @@ -29,7 +29,7 @@ import { PageContentFormComponent } from "./pages/helpcontent/page-help-content- import { EditPageHelpContentComponent } from "./pages/helpcontent/edit-page-help-content.component"; import { CommunitiesComponent } from './pages/community/communities.component'; import { CommunityFormComponent } from './pages/community/community-form.component'; -import { CommunityEditFormComponent } from './pages/community/community-edit-form.component'; +import { CommunityEditFormComponent } from './pages/community/community-edit-form/community-edit-form.component'; import { EntitiesComponent } from "./pages/entity/entities.component"; import { EntityFormComponent } from "./pages/entity/entity-form.component"; import { DivIdsComponent } from "./pages/divId/divIds.component"; diff --git a/app/app.routing.ts b/app/app.routing.ts index f5e9dba..b5fd9b3 100644 --- a/app/app.routing.ts +++ b/app/app.routing.ts @@ -6,7 +6,7 @@ import { Routes, RouterModule } from '@angular/router'; import { DashboardComponent } from "./dashboard.component"; import { CommunitiesComponent } from './pages/community/communities.component'; -import { CommunityEditFormComponent } from "./pages/community/community-edit-form.component"; +import { CommunityEditFormComponent } from "./pages/community/community-edit-form/community-edit-form.component"; import { EntitiesComponent } from "./pages/entity/entities.component"; import { PagesComponent } from "./pages/page/pages.component"; import { PageHelpContentsComponent } from "./pages/helpcontent/page-help-contents.component"; @@ -24,7 +24,7 @@ import { EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/e import { EnvironmentSpecificService} from './openaireLibrary/utils/properties/environment-specific.service'; import{ClaimsAdminComponent} from './openaireLibrary/claims/claimsAdmin/claimsAdmin.component'; import {StatsComponent} from "./pages/stats/stats.component"; - + const appRoutes: Routes = [ diff --git a/app/pages/community/community-edit-form.component.html b/app/pages/community/community-edit-form/community-edit-form.component.html similarity index 58% rename from app/pages/community/community-edit-form.component.html rename to app/pages/community/community-edit-form/community-edit-form.component.html index 3e85e1d..eb30463 100644 --- a/app/pages/community/community-edit-form.component.html +++ b/app/pages/community/community-edit-form/community-edit-form.component.html @@ -1,9 +1,12 @@
Edit your community
-

Name:

+
+ +

Name:

+

Short Name:

Description:

-

Logo:

+

Logo Url:

diff --git a/app/pages/community/community-edit-form.component.ts b/app/pages/community/community-edit-form/community-edit-form.component.ts similarity index 92% rename from app/pages/community/community-edit-form.component.ts rename to app/pages/community/community-edit-form/community-edit-form.component.ts index 97cfe72..da0b5dd 100644 --- a/app/pages/community/community-edit-form.component.ts +++ b/app/pages/community/community-edit-form/community-edit-form.component.ts @@ -1,6 +1,6 @@ import {Component, OnInit, Input} from '@angular/core'; import {FormGroup, FormArray, FormBuilder, Validators} from "@angular/forms"; -import { HelpContentService } from "../../services/help-content.service"; +import { HelpContentService } from "../../../services/help-content.service"; @Component({ selector: 'community-edit-form', @@ -20,7 +20,7 @@ export class CommunityEditFormComponent implements OnInit{ ngOnInit(){ - + } public get form() { diff --git a/app/pages/community/community-edit-form/community-edit-form.service.ts b/app/pages/community/community-edit-form/community-edit-form.service.ts new file mode 100644 index 0000000..a8084cf --- /dev/null +++ b/app/pages/community/community-edit-form/community-edit-form.service.ts @@ -0,0 +1,6 @@ +// getDataProviders() { +// return this.http.get('https://beta.services.openaire.eu/search/v2/api/datasources?format=json') +// .map(res => res.json()) +// .map(res => res.results) +// .do(res => {console.log(res)}).catch(this.handleError); +// }