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 1393c4a8
authored
Mar 31, 2018
by
Riina Antikainen
Browse files
Options
Browse Files
Download
Plain Diff
merge
2 parents
00cbd5b5
68d5fa20
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
7 deletions
code/moya-management-portal/src/app/app.component.html
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.scss
code/moya-management-portal/src/app/organization/event-list/event-list.component.ts
code/moya-management-portal/src/app/organization/organization.module.ts
code/moya-management-portal/src/app/app.component.html
View file @
1393c4a
...
...
@@ -5,4 +5,4 @@
</h1>
<img
width=
"300"
alt=
"Angular Logo"
src=
"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg=="
>
</div>
<moya-organization-list></moya-organization-list>
\ No newline at end of file
<moya-event-list></moya-event-list>
\ No newline at end of file
code/moya-management-portal/src/app/organization/event-list/event-list.component.html
View file @
1393c4a
<p>
event-list works!
</p>
<mat-card
*
ngFor=
"let event of events"
style=
"width:40%;margin:1em;"
>
<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:-5em;margin-right:1em;"
>
Edit
</button>
</mat-card-actions>
</mat-card>
\ No newline at end of file
code/moya-management-portal/src/app/organization/event-list/event-list.component.scss
View file @
1393c4a
@import
"~@angular/material/prebuilt-themes/indigo-pink.css"
;
\ No newline at end of file
code/moya-management-portal/src/app/organization/event-list/event-list.component.ts
View file @
1393c4a
...
...
@@ -7,8 +7,19 @@ import { Component, OnInit } from '@angular/core';
})
export
class
EventListComponent
implements
OnInit
{
public
events
=
[
{
title
:
'Assembly Winter 18'
,
date
:
'1.2.2018 - 3.2.2018'
},
{
title
:
'Assembly Summer 18'
,
date
:
'1.2.2018 - 3.2.2018'
},
{
title
:
'Assembly Winter 19'
,
date
:
'1.2.2018 - 3.2.2018'
},
{
title
:
'Assembly Summer 19'
,
date
:
'1.2.2018 - 3.2.2018'
}
];
constructor
()
{
}
onClick
()
{
console
.
log
(
'Nappitoimii'
);
}
ngOnInit
()
{
}
...
...
code/moya-management-portal/src/app/organization/organization.module.ts
View file @
1393c4a
...
...
@@ -3,14 +3,17 @@ import { CommonModule } from '@angular/common';
import
{
NewOrganizationComponent
}
from
'./new-organization/new-organization.component'
;
import
{
OrganizationListComponent
}
from
'./organization-list/organization-list.component'
;
import
{
EventListComponent
}
from
'./event-list/event-list.component'
;
import
{
BrowserAnimationsModule
}
from
'@angular/platform-browser/animations'
;
import
{
MatSelectModule
}
from
'@angular/material/select'
;
import
{
OrganizationListService
}
from
'./organization-list/organization-list.service'
;
import
{
MatCardModule
}
from
'@angular/material/card'
;
import
{
MatButtonModule
}
from
'@angular/material'
;
@
NgModule
({
imports
:
[
CommonModule
,
MatSelectModule
MatSelectModule
,
MatCardModule
,
MatButtonModule
],
providers
:
[
OrganizationListService
],
declarations
:
[
NewOrganizationComponent
,
OrganizationListComponent
,
EventListComponent
],
...
...
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