Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1f81dba7
authored
Apr 01, 2018
by
Riina Antikainen
Browse files
Options
Browse Files
Download
Plain Diff
merge
2 parents
80de8094
b6bb15bc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
13 deletions
code/moya-management-portal/src/app/organization/event-list/event-list.component.html
code/moya-management-portal/src/app/organization/event-list/event-list.component.ts
code/moya-management-portal/src/app/organization/organization-list/organization-list.component.html
code/moya-management-portal/src/app/organization/organization.component.html
code/moya-management-portal/src/app/organization/organization.component.ts
code/moya-management-portal/src/app/organization/event-list/event-list.component.html
View file @
1f81dba
<mat-card
*
ngFor=
"let event of events"
style=
"margin:1em;max-width:75%"
>
<mat-card-title>
{{event.title}}
</mat-card-title>
<mat-card-subtitle>
{{event.date}}
</mat-card-subtitle>
<
!--<
mat-card-actions>
<button mat-raised-button color="primary" (click)="onClick()" style="
float:right;margin-top: ;margin-right:1em;">Edi
t</button>
</mat-card-actions>
-->
<mat-card-actions>
<button
mat-raised-button
color=
"primary"
(
click
)="
onClick
()"
style=
"
margin-left:0.8em;"
>
Go to even
t
</button>
</mat-card-actions>
</mat-card>
\ No newline at end of file
code/moya-management-portal/src/app/organization/event-list/event-list.component.ts
View file @
1f81dba
...
...
@@ -8,7 +8,7 @@ import { OnChanges } from '@angular/core/src/metadata/lifecycle_hooks';
styleUrls
:
[
'./event-list.component.scss'
]
})
export
class
EventListComponent
implements
OnInit
,
OnChanges
{
@
Input
()
organi
s
ation
:
string
;
@
Input
()
organi
z
ation
:
string
;
public
events
:
any
;
constructor
(
private
appService
:
EventsService
)
{
...
...
@@ -19,12 +19,12 @@ export class EventListComponent implements OnInit, OnChanges {
}
ngOnInit
()
{
console
.
log
(
this
.
organi
s
ation
);
this
.
events
=
this
.
appService
.
get
(
this
.
organi
s
ation
);
console
.
log
(
this
.
organi
z
ation
);
this
.
events
=
this
.
appService
.
get
(
this
.
organi
z
ation
);
}
ngOnChanges
(
changes
:
SimpleChanges
):
void
{
console
.
log
(
changes
);
this
.
events
=
this
.
appService
.
get
(
changes
.
organi
s
ation
.
currentValue
);
this
.
events
=
this
.
appService
.
get
(
changes
.
organi
z
ation
.
currentValue
);
}
}
code/moya-management-portal/src/app/organization/organization-list/organization-list.component.html
View file @
1f81dba
...
...
@@ -2,6 +2,4 @@
<mat-select
placeholder=
"Organization"
[(
ngModel
)]="
selectedValue
"
(
ngModelChange
)="
onChange
($
event
)"
>
<mat-option
*
ngFor=
"let organization of organizations"
value=
{{organization.name}}
>
{{organization.name}}
</mat-option>
</mat-select>
</mat-form-field>
{{selectedValue}}
\ No newline at end of file
</mat-form-field>
\ No newline at end of file
code/moya-management-portal/src/app/organization/organization.component.html
View file @
1f81dba
...
...
@@ -6,8 +6,13 @@
<a
style=
"float:right; font-size:20px; margin-top: 20px"
href=
"#"
>
Moya Login
</a>
</div>
<div
style=
"width:50%; float:left"
>
<<<<<<
< HEAD
<
h2
style=
"margin-left: 10px"
>
Coming events
</h2>
<moya-event-list
[
organisation
]="
currentOrganisation
"
style=
"margin-top:5em;"
></moya-event-list>
=======
<h2
style=
"margin-left: 10px"
>
Tulevat tapahtumat
</h2>
<moya-event-list
[
organization
]="
currentOrganization
"
style=
"margin-top:5em;"
></moya-event-list>
>>>>>>> b6bb15bc0dea08e0c1d6588d2424d194218ce163
</div>
<div
style=
"width:50%; float:right"
>
<h2>
Ei omaa organisaatiota?
</h2>
...
...
code/moya-management-portal/src/app/organization/organization.component.ts
View file @
1f81dba
...
...
@@ -8,7 +8,7 @@ import { Component, OnInit } from '@angular/core';
export
class
OrganizationComponent
implements
OnInit
{
title
=
'Moay'
;
public
currentOrgani
s
ation
:
string
;
public
currentOrgani
z
ation
:
string
;
constructor
()
{
}
...
...
@@ -16,7 +16,7 @@ export class OrganizationComponent implements OnInit {
}
onOrganizationChange
(
event
)
{
this
.
currentOrgani
s
ation
=
event
;
this
.
currentOrgani
z
ation
=
event
;
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment