Merge branch 'master' of https://git.wmi.amu.edu.pl/s416178/Punktonerzy
This commit is contained in:
commit
3bf021aa3b
@ -6,6 +6,11 @@ margin-top: 1rem;
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
.button{
|
||||||
|
font-size: large;
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-right: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
background-color: #181616;
|
background-color: #181616;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="buttons-container">
|
<div class="buttons-container">
|
||||||
<button class="btn btn-study-cave" routerLink="/flashcards/sets"><i class="fas fa-arrow-left"></i> WRÓĆ DO LISTY</button>
|
<button class="button" routerLink="/flashcards/sets"><i class="fas fa-arrow-left"></i> WRÓĆ DO LISTY</button>
|
||||||
<button class="btn btn-study-cave" routerLink="/flashcards/add/table"><i class="fas fa-table"></i> DODAJ ZA POMOCĄ TABELI</button>
|
<button class="button" routerLink="/flashcards/add/table"><i class="fas fa-table"></i> DODAJ ZA POMOCĄ TABELI</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrapper-add">
|
<div class="wrapper-add">
|
||||||
@ -45,9 +45,9 @@
|
|||||||
<br />
|
<br />
|
||||||
<input type="checkbox" name="{{ permission }}" class="form-control" [checked]="permission" (change)="changePermission()"/><b>Udostępnij publicznie</b>
|
<input type="checkbox" name="{{ permission }}" class="form-control" [checked]="permission" (change)="changePermission()"/><b>Udostępnij publicznie</b>
|
||||||
</div><br />
|
</div><br />
|
||||||
<button class="btn btn-study-cave" [disabled]="!selectedFiles" (click)="upload()"><i class="fas fa-check-circle"></i> Dodaj fiszki!</button>
|
<button class="button" style="font-size: x-large;" [disabled]="!selectedFiles" (click)="upload()"><i class="fas fa-check-circle"></i> Dodaj fiszki!</button>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<button class="btn btn-study-cave" routerLink="/flashcards/sets/"><i class="fas fa-arrow-left"></i> Powrót</button>
|
<button class="button" routerLink="/flashcards/sets/"><i class="fas fa-arrow-left"></i> Powrót</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,6 +7,16 @@ table, th, td, tr {
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button{
|
||||||
|
font-size: large;
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-right: 30px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
background-color: #181616;
|
background-color: #181616;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="buttons-container">
|
<div class="buttons-container">
|
||||||
<button class="btn btn-study-cave" routerLink="/flashcards/sets"><i class="fas fa-arrow-left"></i> WRÓĆ DO LISTY</button>
|
<button class="button" routerLink="/flashcards/sets"><i class="fas fa-arrow-left"></i> WRÓĆ DO LISTY</button>
|
||||||
<button class="btn btn-study-cave" routerLink="/flashcards/add/csv"><i class="fas fa-file-csv"></i> DODAJ ZA POMOCĄ CSV</button>
|
<button class="button" routerLink="/flashcards/add/csv"><i class="fas fa-file-csv"></i> DODAJ ZA POMOCĄ CSV</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrapper-add">
|
<div class="wrapper-add">
|
||||||
@ -37,7 +37,7 @@
|
|||||||
<input [(ngModel)]="field.right_side" class="form-control" type="text" name="{{field.right_side}}" />
|
<input [(ngModel)]="field.right_side" class="form-control" type="text" name="{{field.right_side}}" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<button class="btn btn-study-cave" type="button" (click)="deleteFieldValue(i)"><i class="fas fa-trash-alt"></i> Usuń fiszkę</button>
|
<button class="button" type="button" (click)="deleteFieldValue(i)"><i class="fas fa-trash-alt"></i> Usuń fiszkę</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -48,7 +48,7 @@
|
|||||||
<input class="form-control" type="text" id="newAttributeRight" [(ngModel)]="newAttribute.right_side" name="newAttributeRight" />
|
<input class="form-control" type="text" id="newAttributeRight" [(ngModel)]="newAttribute.right_side" name="newAttributeRight" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<button class="btn btn-study-cave" type="button" (click)="addFieldValue()"><i class="fas fa-plus"></i> Dodaj fiszkę</button>
|
<button class="button" type="button" (click)="addFieldValue()"><i class="fas fa-plus"></i> Dodaj fiszkę</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -60,8 +60,8 @@
|
|||||||
<b>Udostępnij publicznie</b>
|
<b>Udostępnij publicznie</b>
|
||||||
</div>
|
</div>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<button class="btn btn-study-cave" type="submit"><i class="fas fa-check-circle"></i> Dodaj fiszki!</button>
|
<button class="button" style="font-size: x-large;" type="submit"><i class="fas fa-check-circle"></i> Dodaj fiszki!</button><br />
|
||||||
<button class="btn btn-study-cave" routerLink="/flashcards/sets/"><i class="fas fa-arrow-left"></i> Powrót</button>
|
<button class="button" routerLink="/flashcards/sets/"><i class="fas fa-arrow-left"></i> Powrót</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -34,3 +34,10 @@ ag-grid-angular{
|
|||||||
.buttons-container > div{
|
.buttons-container > div{
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button{
|
||||||
|
font-size: large;
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-right: 30px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="buttons-container">
|
<div class="buttons-container">
|
||||||
<button class="btn btn-study-cave" routerLink="/flashcards/sets"><i class="fas fa-arrow-left"></i> WRÓĆ DO LISTY</button>
|
<button class="button" routerLink="/flashcards/sets"><i class="fas fa-arrow-left"></i> WRÓĆ DO LISTY</button>
|
||||||
<button class="btn btn-study-cave" routerLink="/flashcards/add/table"><i class="fas fa-table"></i> DODAJ ZA POMOCĄ TABELI</button>
|
<button class="button" routerLink="/flashcards/add/table"><i class="fas fa-table"></i> DODAJ ZA POMOCĄ TABELI</button>
|
||||||
<button class="btn btn-study-cave" routerLink="/flashcards/add/csv"><i class="fas fa-file-csv"></i> DODAJ ZA POMOCĄ CSV</button>
|
<button class="button" routerLink="/flashcards/add/csv"><i class="fas fa-file-csv"></i> DODAJ ZA POMOCĄ CSV</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
@ -15,6 +15,13 @@ table, th, td, tr {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button{
|
||||||
|
font-size: large;
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-right: 30px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.wrapper-add {
|
.wrapper-add {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="buttons-container">
|
<div class="buttons-container">
|
||||||
<button class="btn btn-study-cave" (click)="returnToSet()"><i class="fas fa-arrow-left"></i> WRÓĆ DO ZESTAWU</button>
|
<button class="button" (click)="returnToSet()"><i class="fas fa-arrow-left"></i> WRÓĆ DO ZESTAWU</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrapper-add">
|
<div class="wrapper-add">
|
||||||
@ -45,7 +45,7 @@
|
|||||||
<input [(ngModel)]="field.right_side" class="form-control" type="text" name="{{field.right_side}}" />
|
<input [(ngModel)]="field.right_side" class="form-control" type="text" name="{{field.right_side}}" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<button class="btn btn-study-cave" type="button" (click)="deleteFieldValue(i)"><i class="fas fa-trash-alt"></i> Usuń fiszkę</button>
|
<button class="button" type="button" (click)="deleteFieldValue(i)"><i class="fas fa-trash-alt"></i> Usuń fiszkę</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -56,7 +56,7 @@
|
|||||||
<input class="form-control" type="text" id="newAttributeRight" [(ngModel)]="newAttribute['right_side']" name="newAttributeRight" />
|
<input class="form-control" type="text" id="newAttributeRight" [(ngModel)]="newAttribute['right_side']" name="newAttributeRight" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<button class="btn btn-study-cave" type="button" (click)="addFieldValue()"><i class="fas fa-file-csv"></i> Dodaj fiszkę</button>
|
<button class="button" type="button" (click)="addFieldValue()"><i class="fas fa-file-csv"></i> Dodaj fiszkę</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -64,8 +64,8 @@
|
|||||||
</label>
|
</label>
|
||||||
<br />
|
<br />
|
||||||
<div>
|
<div>
|
||||||
<button class="btn btn-study-cave" type="submit"><i class="fas fa-check-circle"></i> Edytuj fiszki!</button>
|
<button class="button" style="font-size: x-large;" type="submit"><i class="fas fa-check-circle"></i> Edytuj fiszki!</button><br />
|
||||||
<button class="btn btn-study-cave" [routerLink]="['/flashcards/sets', ident]"><i class="fas fa-arrow-left"></i> Powrót</button>
|
<button class="button" [routerLink]="['/flashcards/sets', ident]"><i class="fas fa-arrow-left"></i> Powrót</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,6 +15,13 @@
|
|||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button{
|
||||||
|
font-size: large;
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-right: 30px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
#container-large {
|
#container-large {
|
||||||
background-color: #181616;
|
background-color: #181616;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
Podaj odpowiedź:<br />
|
Podaj odpowiedź:<br />
|
||||||
{{flashcards[index].content}}
|
{{flashcards[index].content}}
|
||||||
<input appAutofocus [(ngModel)]="answer" class="mr-2" placeholder="odpowiedź" (keyup.enter)="verifyAnswer()" >
|
<input appAutofocus [(ngModel)]="answer" class="mr-2" placeholder="odpowiedź" (keyup.enter)="verifyAnswer()" >
|
||||||
<button class="btn btn-study-cave" (click)="verifyAnswer()"><i class="fas fa-check-circle"></i> Sprawdź</button>
|
<button class="button" style="min-width: 200px;" (click)="verifyAnswer()"><i class="fas fa-check-circle"></i> Sprawdź</button>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="this.is_correct === true && !finish">ODPOWIEDŹ POPRAWNA</div>
|
<div *ngIf="this.is_correct === true && !finish">ODPOWIEDŹ POPRAWNA</div>
|
||||||
<div *ngIf="this.is_correct === false && !finish">ODPOWIEDŹ NIEPOPRAWNA</div>
|
<div *ngIf="this.is_correct === false && !finish">ODPOWIEDŹ NIEPOPRAWNA</div>
|
||||||
@ -50,10 +50,10 @@
|
|||||||
<app-test-results [result]="good" [maxPts]="length_test"></app-test-results>
|
<app-test-results [result]="good" [maxPts]="length_test"></app-test-results>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="!finish">
|
<div *ngIf="!finish">
|
||||||
<button class="btn btn-study-cave" *ngIf="!started" (click)="start()"><i class="far fa-play-circle"></i> Rozpocznij test</button>
|
<button class="button" *ngIf="!started" (click)="start()"><i class="far fa-play-circle"></i> Rozpocznij test</button>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn btn-study-cave" *ngIf="finish" routerLink="/flashcards/sets/{{ id }}"><i class="far fa-stop-circle"></i> Zakończ test</button>
|
<button class="button" *ngIf="finish" routerLink="/flashcards/sets/{{ id }}"><i class="far fa-stop-circle"></i> Zakończ test</button>
|
||||||
<button class="btn btn-study-cave" *ngIf="started && !finish && !not_last"(click)="finished()"><i class="fas fa-arrow-left"></i> Przejdź do wyniku</button>
|
<button class="button" *ngIf="started && !finish && !not_last"(click)="finished()"><i class="fas fa-arrow-left"></i> Przejdź do wyniku</button>
|
||||||
<br />
|
<br />
|
||||||
<button class="btn btn-study-cave" routerLink="/flashcards/sets/{{ id }}"><i class="fas fa-arrow-left"></i> Wróć do zestawu</button>
|
<button class="button" routerLink="/flashcards/sets/{{ id }}"><i class="fas fa-arrow-left"></i> Wróć do zestawu</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,6 +15,13 @@
|
|||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button{
|
||||||
|
font-size: large;
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-right: 30px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
#container-large {
|
#container-large {
|
||||||
background-color: #181616;
|
background-color: #181616;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
|
@ -38,12 +38,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<div *ngIf="!finish">
|
<div *ngIf="!finish">
|
||||||
<button class="btn btn-study-cave" *ngIf="!started" (click)="start()"><i class="far fa-play-circle"></i> Rozpocznij test</button>
|
<button class="button" *ngIf="!started" (click)="start()"><i class="far fa-play-circle"></i> Rozpocznij test</button>
|
||||||
<button class="btn btn-study-cave" *ngIf="checked && not_last" (click)="increment()"><i class="fas fa-arrow-right"></i>Przejdź dalej</button>
|
<button class="button" *ngIf="checked && not_last" (click)="increment()"><i class="fas fa-arrow-right"></i>Przejdź dalej</button>
|
||||||
<button class="btn btn-study-cave" *ngIf="checked && !not_last" (click)="increment()"><i class="far fa-stop-circle"></i> Zakończ test</button>
|
<button class="button" *ngIf="checked && !not_last" (click)="increment()"><i class="far fa-stop-circle"></i> Zakończ test</button>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<button class="btn btn-study-cave" routerLink="/flashcards/sets/{{ id }}"><i class="fas fa-arrow-left"></i> Wróć do zestawu</button>
|
<button class="button" routerLink="/flashcards/sets/{{ id }}"><i class="fas fa-arrow-left"></i> Wróć do zestawu</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button{
|
||||||
|
font-size: large;
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-right: 30px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
#container-large {
|
#container-large {
|
||||||
background-color: #181616;
|
background-color: #181616;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
|
@ -27,5 +27,5 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<button *ngIf="!verify" class="btn btn-study-cave" (click)="nextQuestion()"><i class="fas fa-check-circle"></i> Sprawdź</button>
|
<button *ngIf="!verify" class="button" style="min-width: 200px;" (click)="nextQuestion()"><i class="fas fa-check-circle"></i> Sprawdź</button>
|
||||||
</div>
|
</div>
|
@ -15,6 +15,13 @@
|
|||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button{
|
||||||
|
font-size: large;
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-right: 30px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
#container-large {
|
#container-large {
|
||||||
background-color: #181616;
|
background-color: #181616;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
|
@ -45,11 +45,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<div *ngIf="!finish">
|
<div *ngIf="!finish">
|
||||||
<button class="btn btn-study-cave" *ngIf="!started" (click)="start()"><i class="far fa-play-circle"></i> Rozpocznij test</button>
|
<button class="button" *ngIf="!started" (click)="start()"><i class="far fa-play-circle"></i> Rozpocznij test</button>
|
||||||
<button class="btn btn-study-cave" *ngIf="checked && not_last" (click)="increment()"><i class="far fa-play-circle"></i> Przejdź dalej</button>
|
<button class="button" *ngIf="checked && not_last" (click)="increment()"><i class="far fa-play-circle"></i> Przejdź dalej</button>
|
||||||
<button class="btn btn-study-cave" *ngIf="checked && !not_last" (click)="increment()"><i class="far fa-stop-circle"></i> Zakończ test</button>
|
<button class="button" *ngIf="checked && !not_last" (click)="increment()"><i class="far fa-stop-circle"></i> Zakończ test</button>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<button class="btn btn-study-cave" routerLink="/flashcards/sets/{{ id }}"><i class="fas fa-arrow-left"></i> Wróć do zestawu</button>
|
<button class="button" routerLink="/flashcards/sets/{{ id }}"><i class="fas fa-arrow-left"></i> Wróć do zestawu</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,6 +12,13 @@
|
|||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button{
|
||||||
|
font-size: large;
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-right: 30px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.content{
|
.content{
|
||||||
background-color: #181616;
|
background-color: #181616;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="button-container">
|
<div class="button-container">
|
||||||
<button class="btn btn-study-cave" (click)="goBack()"><i class="fas fa-arrow-left"></i> POWRÓT</button>
|
<button class="button" (click)="goBack()"><i class="fas fa-arrow-left"></i> POWRÓT</button>
|
||||||
<button class="btn btn-study-cave" (click)="showTestTypeMenu()"><i class="fas fa-pencil-ruler"></i> GENERUJ TESTY</button>
|
<button class="button" (click)="showTestTypeMenu()"><i class="fas fa-pencil-ruler"></i> GENERUJ TESTY</button>
|
||||||
<button *ngIf="owned && set && set.permission !== 'GROUP'" class="btn btn-study-cave" (click)="navigateToEditMode()"><i class="fas fa-edit"></i> EDYTUJ FISZKI</button>
|
<button *ngIf="owned && set && set.permission !== 'GROUP'" class="button" (click)="navigateToEditMode()"><i class="fas fa-edit"></i> EDYTUJ FISZKI</button>
|
||||||
<button *ngIf="owned && set && set.permission !== 'GROUP'" class="btn btn-study-cave" (click)="showPopup()"><i class="fas fa-trash-alt"></i> USUŃ FISZKI</button>
|
<button *ngIf="owned && set && set.permission !== 'GROUP'" class="button" (click)="showPopup()"><i class="fas fa-trash-alt"></i> USUŃ FISZKI</button>
|
||||||
<div *ngIf="user && owned && set && set.permission !== 'GROUP'">
|
<div *ngIf="user && owned && set && set.permission !== 'GROUP'">
|
||||||
<button class="btn btn-study-cave" (click)="changePermission()"><i class="fas fa-unlock"></i> ZMIEŃ UPRAWNIENIA</button>
|
<button class="button" (click)="changePermission()"><i class="fas fa-unlock"></i> ZMIEŃ UPRAWNIENIA</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -38,8 +38,8 @@
|
|||||||
<p-dialog header="Potwierdź" [(visible)]="display">
|
<p-dialog header="Potwierdź" [(visible)]="display">
|
||||||
Czy chcesz usunąć fiszkę?
|
Czy chcesz usunąć fiszkę?
|
||||||
<p-footer>
|
<p-footer>
|
||||||
<button type="button" pButton icon="pi pi-check" (click)="deleteSet()" label="TAK"></button>
|
<button type="button" class="button" pButton icon="pi pi-check" (click)="deleteSet()" label="TAK"></button>
|
||||||
<button type="button" pButton icon="pi pi-close" (click)="display=false" label="NIE" class="ui-button-secondary"></button>
|
<button type="button" class="button" pButton icon="pi pi-close" (click)="display=false" label="NIE" class="ui-button-secondary"></button>
|
||||||
</p-footer>
|
</p-footer>
|
||||||
</p-dialog>
|
</p-dialog>
|
||||||
</div>
|
</div>
|
@ -10,6 +10,10 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.wrapper{
|
.wrapper{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
@ -17,6 +21,13 @@
|
|||||||
margin-bottom: 40px;
|
margin-bottom: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button{
|
||||||
|
font-size: large;
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-right: 30px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 800px) {
|
@media screen and (max-width: 800px) {
|
||||||
.mobile{
|
.mobile{
|
||||||
display: none;
|
display: none;
|
||||||
@ -44,3 +55,6 @@ ag-grid-angular{
|
|||||||
.buttons-container > div{
|
.buttons-container > div{
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,14 +6,14 @@
|
|||||||
<br />
|
<br />
|
||||||
<div class="buttons-container">
|
<div class="buttons-container">
|
||||||
<div *ngIf="logged">
|
<div *ngIf="logged">
|
||||||
<button class="btn btn-study-cave" (click)="toFlashcardsMaker()"><i class="fas fa-plus"></i> Dodaj fiszki</button>
|
<button class="button" (click)="toFlashcardsMaker()"><i class="fas fa-plus"></i> Dodaj fiszki</button>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="logged" class="btn-group btn-group-toggle" data-toggle="buttons">
|
<div *ngIf="logged" class="btn-group btn-group-toggle" data-toggle="buttons">
|
||||||
<label class="btn btn-study-cave active" (click)="ShowPublic()">
|
<label class="btn btn-study-cave active" (click)="ShowPublic()">
|
||||||
<input type="radio" name="options" id="option1" autocomplete="off" checked><i class="fas fa-globe"></i> Publiczne
|
<input type="radio" class="radio-answer" name="options" id="option1" autocomplete="off" checked><i class="fas fa-globe"></i> Publiczne
|
||||||
</label>
|
</label>
|
||||||
<label class="btn btn-study-cave" (click)="ShowPrivate()">
|
<label class="btn btn-study-cave " (click)="ShowPrivate()">
|
||||||
<input type="radio" name="options" id="option2" autocomplete="off"><i class="fas fa-user-secret"></i> Prywatne
|
<input type="radio" class="radio-answer" name="options" id="option2" autocomplete="off"><i class="fas fa-user-secret"></i> Prywatne
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -26,8 +26,8 @@
|
|||||||
<p-dialog header="Potwierdź" [(visible)]="display">
|
<p-dialog header="Potwierdź" [(visible)]="display">
|
||||||
Czy chcesz usunąć fiszkę?
|
Czy chcesz usunąć fiszkę?
|
||||||
<p-footer>
|
<p-footer>
|
||||||
<button type="button" pButton icon="pi pi-check" (click)="deleteSet()" label="TAK"></button>
|
<button type="button" class="button" pButton icon="pi pi-check" (click)="deleteSet()" label="TAK"></button>
|
||||||
<button type="button" pButton icon="pi pi-close" (click)="display=false" label="NIE" class="ui-button-secondary"></button>
|
<button type="button" class="button" pButton icon="pi pi-close" (click)="display=false" label="NIE" class="ui-button-secondary"></button>
|
||||||
</p-footer>
|
</p-footer>
|
||||||
</p-dialog>
|
</p-dialog>
|
||||||
|
|
||||||
|
@ -40,8 +40,6 @@ export class FlashcardsSetsListComponent implements OnInit, OnDestroy {
|
|||||||
{ headerName: 'Nazwa', field: 'name', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'name', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Data dodania', field: 'add_date', headerTooltip: 'Data dodania', hide: false },
|
{ headerName: 'Data dodania', field: 'add_date', headerTooltip: 'Data dodania', hide: false },
|
||||||
{ headerName: 'Data modyfikacji', field: 'edit_date', headerTooltip: 'Data modyfikacji', hide: false },
|
{ headerName: 'Data modyfikacji', field: 'edit_date', headerTooltip: 'Data modyfikacji', hide: false },
|
||||||
{ headerName: 'Właściciel', field: 'owner', headerTooltip: 'Właściciel', hide: false },
|
|
||||||
{ headerName: 'Grupa', field: 'group', headerTooltip: 'Grupa', hide: !this.isGroup },
|
|
||||||
{
|
{
|
||||||
headerName: '',
|
headerName: '',
|
||||||
suppressMenu: true,
|
suppressMenu: true,
|
||||||
@ -59,9 +57,9 @@ export class FlashcardsSetsListComponent implements OnInit, OnDestroy {
|
|||||||
return '';
|
return '';
|
||||||
} else if (params.data['owner'] === currentUser.username) {
|
} else if (params.data['owner'] === currentUser.username) {
|
||||||
return `
|
return `
|
||||||
<button type="button" data-action-type="remove" class="btn btn-study-cave btn-sm" title="Usuń">
|
<button type="button" data-action-type="remove" class="btn btn-study-cave " title="Usuń">
|
||||||
<i class="fas fa-trash-alt" data-action-type="remove"></i></button>
|
<i class="fas fa-trash-alt" data-action-type="remove"></i></button>
|
||||||
<button type="button" data-action-type="changePermission" class="btn btn-study-cave btn-sm" title="Uprawnienia">
|
<button type="button" data-action-type="changePermission" class="btn btn-study-cave " title="Uprawnienia">
|
||||||
<i class="fas fa-unlock" data-action-type="changePermission"></i></button>
|
<i class="fas fa-unlock" data-action-type="changePermission"></i></button>
|
||||||
`;
|
`;
|
||||||
} else {
|
} else {
|
||||||
@ -208,8 +206,6 @@ export class FlashcardsSetsListComponent implements OnInit, OnDestroy {
|
|||||||
{ headerName: 'Nazwa', field: 'name', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'name', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Data dodania', field: 'add_date', headerTooltip: 'Data dodania', hide: true },
|
{ headerName: 'Data dodania', field: 'add_date', headerTooltip: 'Data dodania', hide: true },
|
||||||
{ headerName: 'Data modyfikacji', field: 'edit_date', headerTooltip: 'Data modyfikacji', hide: true },
|
{ headerName: 'Data modyfikacji', field: 'edit_date', headerTooltip: 'Data modyfikacji', hide: true },
|
||||||
{ headerName: 'Właściciel', field: 'owner', headerTooltip: 'Właściciel', hide: true },
|
|
||||||
{ headerName: 'Grupa', field: 'group', headerTooltip: 'Grupa', hide: !this.isGroup },
|
|
||||||
{
|
{
|
||||||
headerName: '',
|
headerName: '',
|
||||||
suppressMenu: true,
|
suppressMenu: true,
|
||||||
@ -223,8 +219,6 @@ export class FlashcardsSetsListComponent implements OnInit, OnDestroy {
|
|||||||
{ headerName: 'Nazwa', field: 'name', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'name', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Data dodania', field: 'add_date', headerTooltip: 'Data dodania', hide: false },
|
{ headerName: 'Data dodania', field: 'add_date', headerTooltip: 'Data dodania', hide: false },
|
||||||
{ headerName: 'Data modyfikacji', field: 'edit_date', headerTooltip: 'Data modyfikacji', hide: false },
|
{ headerName: 'Data modyfikacji', field: 'edit_date', headerTooltip: 'Data modyfikacji', hide: false },
|
||||||
{ headerName: 'Właściciel', field: 'owner', headerTooltip: 'Właściciel', hide: false },
|
|
||||||
{ headerName: 'Grupa', field: 'group', headerTooltip: 'Grupa', hide: !this.isGroup },
|
|
||||||
{
|
{
|
||||||
headerName: '',
|
headerName: '',
|
||||||
suppressMenu: true,
|
suppressMenu: true,
|
||||||
@ -257,8 +251,6 @@ export class FlashcardsSetsListComponent implements OnInit, OnDestroy {
|
|||||||
{ headerName: 'Nazwa', field: 'name', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'name', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Data dodania', field: 'add_date', headerTooltip: 'Data dodania', hide: false },
|
{ headerName: 'Data dodania', field: 'add_date', headerTooltip: 'Data dodania', hide: false },
|
||||||
{ headerName: 'Data modyfikacji', field: 'edit_date', headerTooltip: 'Data modyfikacji', hide: false },
|
{ headerName: 'Data modyfikacji', field: 'edit_date', headerTooltip: 'Data modyfikacji', hide: false },
|
||||||
{ headerName: 'Właściciel', field: 'owner', headerTooltip: 'Właściciel', hide: false },
|
|
||||||
{ headerName: 'Grupa', field: 'group', headerTooltip: 'Grupa', hide: !this.isGroup },
|
|
||||||
{
|
{
|
||||||
headerName: '',
|
headerName: '',
|
||||||
suppressMenu: true,
|
suppressMenu: true,
|
||||||
|
@ -2,3 +2,11 @@ div{
|
|||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button{
|
||||||
|
font-size: large;
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-right: 30px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
min-width: 200px;
|
||||||
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<button class="btn btn-study-cave" (click)="goToTestGenFill()">Uzupełnij</button>
|
<button class="button" (click)="goToTestGenFill()">Uzupełnij</button>
|
||||||
<button class="btn btn-study-cave" (click)="goToTestGen()">Pary</button>
|
<button class="button" (click)="goToTestGen()">Pary</button>
|
||||||
<button class="btn btn-study-cave" (click)="goToTestGenTyperace()">Na czas</button>
|
<button class="button" (click)="goToTestGenTyperace()">Na czas</button>
|
||||||
<button class="btn btn-study-cave" (click)="goToTestGenMemory()">Memory</button>
|
<button class="button" (click)="goToTestGenMemory()">Memory</button><br />
|
||||||
<button class="btn btn-study-cave" (click)="cancelMenu()"><i class="fas fa-times"></i> Anuluj</button>
|
<button class="button" (click)="cancelMenu()"><i class="fas fa-times"></i> Anuluj</button>
|
||||||
</div>
|
</div>
|
@ -15,6 +15,13 @@
|
|||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button{
|
||||||
|
font-size: large;
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-right: 30px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
#container-large {
|
#container-large {
|
||||||
background-color: #181616;
|
background-color: #181616;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
Podaj odpowiedź:<br />
|
Podaj odpowiedź:<br />
|
||||||
{{flashcards[index].content}}
|
{{flashcards[index].content}}
|
||||||
<input appAutofocus [(ngModel)]="answer" class="mr-2" placeholder="odpowiedź" (keyup.enter)="verifyAnswer()" >
|
<input appAutofocus [(ngModel)]="answer" class="mr-2" placeholder="odpowiedź" (keyup.enter)="verifyAnswer()" >
|
||||||
<button class="btn btn-study-cave" (click)="verifyAnswer()" ><i class="fas fa-check-circle"></i> Sprawdź</button>
|
<button class="button" style="min-width: 200px;" (click)="verifyAnswer()" ><i class="fas fa-check-circle"></i> Sprawdź</button>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="this.is_correct === true && !finish">ODPOWIEDŹ POPRAWNA</div>
|
<div *ngIf="this.is_correct === true && !finish">ODPOWIEDŹ POPRAWNA</div>
|
||||||
<div *ngIf="this.is_correct === false && !finish">ODPOWIEDŹ NIEPOPRAWNA</div>
|
<div *ngIf="this.is_correct === false && !finish">ODPOWIEDŹ NIEPOPRAWNA</div>
|
||||||
@ -52,11 +52,11 @@
|
|||||||
<app-test-results [result]="good" [maxPts]="length_test" [minutes]="finalminute" [seconds]="finalsecond" [milliseconds]="finalmillisecond" [timer]="true"></app-test-results>
|
<app-test-results [result]="good" [maxPts]="length_test" [minutes]="finalminute" [seconds]="finalsecond" [milliseconds]="finalmillisecond" [timer]="true"></app-test-results>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="!finish">
|
<div *ngIf="!finish">
|
||||||
<button class="btn btn-study-cave" *ngIf="!started" (click)="start()"><i class="far fa-play-circle"></i> Rozpocznij test</button>
|
<button class="button" *ngIf="!started" (click)="start()"><i class="far fa-play-circle"></i> Rozpocznij test</button>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn btn-study-cave" *ngIf="finish" routerLink="/flashcards/sets/{{ id }}"><i class="far fa-stop-circle"></i> Zakończ test</button>
|
<button class="button" *ngIf="finish" routerLink="/flashcards/sets/{{ id }}"><i class="far fa-stop-circle"></i> Zakończ test</button>
|
||||||
<button class="btn btn-study-cave" *ngIf="started && !finish && !not_last"(click)="finished()"><i class="far fa-stop-circle"></i> Przejdź do wyniku</button>
|
<button class="button" *ngIf="started && !finish && !not_last"(click)="finished()"><i class="far fa-stop-circle"></i> Przejdź do wyniku</button>
|
||||||
<br />
|
<br />
|
||||||
<button class="btn btn-study-cave" routerLink="/flashcards/sets/{{ id }}"><i class="fas fa-arrow-left"></i> Wróć do zestawu</button>
|
<button class="button" routerLink="/flashcards/sets/{{ id }}"><i class="fas fa-arrow-left"></i> Wróć do zestawu</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
.btn{
|
.button{
|
||||||
margin-bottom: 5px;
|
font-size: large;
|
||||||
|
min-width: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div>
|
<div>
|
||||||
<button class="btn btn-study-cave" routerLink="/flashcards/sets"><i class="fas fa-scroll"></i> FISZKI</button>
|
<button class="button" routerLink="/flashcards/sets"><i class="fas fa-scroll"></i> FISZKI</button>
|
||||||
<button class="btn btn-study-cave" routerLink="/materials/list"><i class="fas fa-book-open"></i> MATERIAŁY</button>
|
<button class="button" routerLink="/materials/list"><i class="fas fa-book-open"></i> MATERIAŁY</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,35 +1,36 @@
|
|||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div>
|
<div>
|
||||||
<button class="btn btn-study-cave float-right mr-1" (click)="goToAddingResource()"><i class="fas fa-plus"></i>
|
<button class="btn btn-study-cave float-right mr-1 mb-4" (click)="goToAddingResource()"><i class="fas fa-plus"></i>
|
||||||
Dodaj zasoby do grupy</button>
|
Dodaj zasoby do grupy</button>
|
||||||
|
|
||||||
<button class="btn btn-study-cave float-right mr-1" (click)="goToRankings()"><i class="fas fa-trophy"></i>
|
<button class="btn btn-study-cave float-right mr-1 mb-4" (click)="goToRankings()"><i class="fas fa-trophy"></i>
|
||||||
Rankingi</button>
|
Rankingi</button>
|
||||||
|
|
||||||
<button *ngIf="group?.owner===currentUser.username" class="btn btn-study-cave float-right mr-1" (click)="goToTestsResults()"><i class="fas fa-trophy"></i>
|
<button *ngIf="group?.owner===currentUser.username" class="btn btn-study-cave float-right mr-1 mb-4" (click)="goToTestsResults()"><i class="fas fa-trophy"></i>
|
||||||
Wyniki za testy</button>
|
Wyniki za testy</button>
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<div>
|
<div>
|
||||||
<button class="btn btn-study-cave float-right mr-1" (click)="goToHistory()"><i class="fas fa-user-clock"></i> Twoja historia aktywności</button>
|
<button class="btn btn-study-cave float-right mr-1 mb-4" (click)="goToHistory()"><i class="fas fa-user-clock"></i> Twoja historia aktywności</button>
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
</div>
|
</div>
|
||||||
|
<br />
|
||||||
<h1>{{group?.name}}</h1>
|
<h1>{{group?.name}}</h1>
|
||||||
<br />
|
<br />
|
||||||
<h3>Opis grupy:</h3>
|
<h3>Opis grupy:</h3>
|
||||||
<p>{{group?.description}}</p>
|
<p>{{group?.description}}</p>
|
||||||
<div class="buttons-container">
|
<div class="buttons-container">
|
||||||
<div>
|
<div>
|
||||||
<button class="btn btn-study-cave" (click)="goToGroupsList()"><i class="fas fa-arrow-left"></i> Do listy grup</button>
|
<button class="btn btn-study-cave mb-4" (click)="goToGroupsList()"><i class="fas fa-arrow-left"></i> Do listy grup</button>
|
||||||
<button *ngIf="group?.owner===currentUser.username" class="btn btn-study-cave" (click)="goToEditing()"><i class="fas fa-edit"></i> Edytuj grupę</button>
|
<button *ngIf="group?.owner===currentUser.username" class="btn btn-study-cave mb-4" (click)="goToEditing()"><i class="fas fa-edit"></i> Edytuj grupę</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button class="btn btn-study-cave" (click)="isDisplayed('materiałów')"><i class="fas fa-book-open"></i>
|
<button class="btn btn-study-cave mb-4" (click)="isDisplayed('materiałów')"><i class="fas fa-book-open"></i>
|
||||||
Materiały</button>
|
Materiały</button>
|
||||||
<button class="btn btn-study-cave" (click)="isDisplayed('fiszek')"><i class="fas fa-scroll"></i> Fiszki</button>
|
<button class="btn btn-study-cave mb-4" (click)="isDisplayed('fiszek')"><i class="fas fa-scroll"></i> Fiszki</button>
|
||||||
<button class="btn btn-study-cave" (click)="isDisplayed('testów')"><i class="fas fa-pencil-ruler"></i>Testy</button>
|
<button class="btn btn-study-cave mb-4" (click)="isDisplayed('testów')"><i class="fas fa-pencil-ruler"></i>Testy</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -30,10 +30,9 @@ export class GroupDetailsComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
|
|
||||||
columnDefs = [
|
columnDefs = [
|
||||||
{ headerName: 'ID', field: 'id', headerTooltip: 'ID' },
|
|
||||||
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Data dodania', field: 'addDate', headerTooltip: 'Data dodania', hide: false },
|
{ headerName: 'Ocena', field: 'grade', headerTooltip: 'Ocena' },
|
||||||
{ headerName: 'Właściciel', field: 'owner', headerTooltip: 'Właściciel', hide: false },
|
{ headerName: 'Max.', field: 'maxScore', headerTooltip: 'Max.', hide: false },
|
||||||
{
|
{
|
||||||
headerName: '',
|
headerName: '',
|
||||||
suppressMenu: true,
|
suppressMenu: true,
|
||||||
@ -49,7 +48,7 @@ export class GroupDetailsComponent implements OnInit, OnDestroy {
|
|||||||
const currentUsername = JSON.parse(localStorage.getItem('currentUser')).username;
|
const currentUsername = JSON.parse(localStorage.getItem('currentUser')).username;
|
||||||
const groupOwnerUsername = localStorage.getItem('groupOwnerUsername');
|
const groupOwnerUsername = localStorage.getItem('groupOwnerUsername');
|
||||||
return groupOwnerUsername === currentUsername ?
|
return groupOwnerUsername === currentUsername ?
|
||||||
`<button type="button" data-action-type="remove" class="btn btn-danger btn-sm"title="Usuń">
|
`<button type="button" data-action-type="remove" class="btn btn-danger "title="Usuń">
|
||||||
<i class="fas fa-trash-alt" data-action-type="remove"></i>
|
<i class="fas fa-trash-alt" data-action-type="remove"></i>
|
||||||
</button>` : '';
|
</button>` : '';
|
||||||
}
|
}
|
||||||
@ -159,10 +158,9 @@ export class GroupDetailsComponent implements OnInit, OnDestroy {
|
|||||||
onGridSizeChanged(params) {
|
onGridSizeChanged(params) {
|
||||||
if (params.clientWidth < 800) {
|
if (params.clientWidth < 800) {
|
||||||
this.columnDefs = [
|
this.columnDefs = [
|
||||||
{ headerName: 'ID', field: 'id', headerTooltip: 'ID' },
|
|
||||||
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Data dodania', field: 'addDate', headerTooltip: 'Data dodania', hide: false },
|
{ headerName: 'Ocena', field: 'grade', headerTooltip: 'Ocena' },
|
||||||
{ headerName: 'Właściciel', field: 'owner', headerTooltip: 'Właściciel', hide: false },
|
{ headerName: 'Max.', field: 'maxScore', headerTooltip: 'Max.', hide: true },
|
||||||
{
|
{
|
||||||
headerName: '',
|
headerName: '',
|
||||||
suppressMenu: true,
|
suppressMenu: true,
|
||||||
@ -172,10 +170,9 @@ export class GroupDetailsComponent implements OnInit, OnDestroy {
|
|||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
this.columnDefs = [
|
this.columnDefs = [
|
||||||
{ headerName: 'ID', field: 'id', headerTooltip: 'ID' },
|
|
||||||
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Data dodania', field: 'addDate', headerTooltip: 'Data dodania', hide: false },
|
{ headerName: 'Ocena', field: 'grade', headerTooltip: 'Ocena' },
|
||||||
{ headerName: 'Właściciel', field: 'owner', headerTooltip: 'Właściciel', hide: false },
|
{ headerName: 'Max.', field: 'maxScore', headerTooltip: 'Max.' },
|
||||||
{
|
{
|
||||||
headerName: '',
|
headerName: '',
|
||||||
suppressMenu: true,
|
suppressMenu: true,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
a.wrapper{
|
.wrapper{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
|
@ -49,7 +49,7 @@ export class ManageGroupComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
customCellRendererFunc(params) {
|
customCellRendererFunc(params) {
|
||||||
return `<button type="button" data-action-type="remove" class="btn btn-study-cave btn-sm" title="Usuń">
|
return `<button type="button" data-action-type="remove" class="btn btn-study-cave " title="Usuń">
|
||||||
<i class="fas fa-trash-alt" data-action-type="remove"></i></button>`;
|
<i class="fas fa-trash-alt" data-action-type="remove"></i></button>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ export class MyGroupsComponent implements OnInit, OnDestroy {
|
|||||||
customCellRendererFunc(params) {
|
customCellRendererFunc(params) {
|
||||||
if (params.data['role'] === 'Lider') {
|
if (params.data['role'] === 'Lider') {
|
||||||
return `
|
return `
|
||||||
<button type="button" data-action-type="edit" class="btn btn-study-cave btn-sm" title="Zarządzaj grupą">
|
<button type="button" data-action-type="edit" class="btn btn-study-cave " title="Zarządzaj grupą">
|
||||||
<i class="fas fa-tools" data-action-type="edit"></i></button>
|
<i class="fas fa-tools" data-action-type="edit"></i></button>
|
||||||
`;
|
`;
|
||||||
} else {
|
} else {
|
||||||
|
@ -62,10 +62,17 @@ export class RankingComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
downloadCSVResults() {
|
downloadCSVResults() {
|
||||||
|
const options = {
|
||||||
|
fieldSeparator: ';',
|
||||||
|
quoteStrings: '',
|
||||||
|
decimalseparator: ',',
|
||||||
|
showLabels: true,
|
||||||
|
headers: ['Punkty', 'Imię', 'Nazwisko']
|
||||||
|
};
|
||||||
const arr = this.data;
|
const arr = this.data;
|
||||||
arr.map(x => delete x['username']);
|
arr.map(x => delete x['username']);
|
||||||
// tslint:disable-next-line:no-unused-expression
|
// tslint:disable-next-line:no-unused-expression
|
||||||
new ngxCsv(arr, this.group.name + '_ranking_' + this.typeOfRankingToDisplay);
|
new ngxCsv(arr, this.group.name + '_ranking_' + this.typeOfRankingToDisplay, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy(): void {
|
ngOnDestroy(): void {
|
||||||
|
@ -31,7 +31,7 @@ export class TestsInGroupResultsComponent implements OnInit, OnDestroy {
|
|||||||
public columnDefs = [
|
public columnDefs = [
|
||||||
{ headerName: 'ID', field: 'id', headerTooltip: 'ID' },
|
{ headerName: 'ID', field: 'id', headerTooltip: 'ID' },
|
||||||
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Liczba punktów do zdobycia', field: 'maxScore', headerTooltip: 'Liczba punktów do zdobycia', hide: false }
|
{ headerName: 'Max.', field: 'maxScore', headerTooltip: 'Liczba punktów do zdobycia', hide: false }
|
||||||
];
|
];
|
||||||
|
|
||||||
// showTestResult
|
// showTestResult
|
||||||
@ -103,8 +103,15 @@ export class TestsInGroupResultsComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
downloadCSVResults() {
|
downloadCSVResults() {
|
||||||
|
const options = {
|
||||||
|
fieldSeparator: ';',
|
||||||
|
quoteStrings: '',
|
||||||
|
decimalseparator: ',',
|
||||||
|
showLabels: true,
|
||||||
|
headers: ['Imię', 'Nazwisko', 'Wynik', 'Wynik (%)']
|
||||||
|
};
|
||||||
// tslint:disable-next-line:no-unused-expression
|
// tslint:disable-next-line:no-unused-expression
|
||||||
new ngxCsv(this.testdata, this.group.name + '_' + this.selectedTest.title + '_wyniki');
|
new ngxCsv(this.testdata, this.group.name + '_' + this.selectedTest.title + '_wyniki', options);
|
||||||
}
|
}
|
||||||
|
|
||||||
getResults(id: number) {
|
getResults(id: number) {
|
||||||
@ -148,7 +155,7 @@ export class TestsInGroupResultsComponent implements OnInit, OnDestroy {
|
|||||||
this.columnDefs = [
|
this.columnDefs = [
|
||||||
{ headerName: 'ID', field: 'id', headerTooltip: 'ID' },
|
{ headerName: 'ID', field: 'id', headerTooltip: 'ID' },
|
||||||
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Liczba punktów do zdobycia', field: 'maxScore', headerTooltip: 'Liczba punktów do zdobycia', hide: false }
|
{ headerName: 'Max.', field: 'maxScore', headerTooltip: 'Liczba punktów do zdobycia', hide: false }
|
||||||
];
|
];
|
||||||
|
|
||||||
params.api.sizeColumnsToFit();
|
params.api.sizeColumnsToFit();
|
||||||
|
@ -323,11 +323,11 @@ export class WaitingResourcesComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
customCellRendererFunc(params) {
|
customCellRendererFunc(params) {
|
||||||
return `
|
return `
|
||||||
<button type="button" data-action-type="preview" class="btn btn-study-cave btn-sm" title="Podgląd">
|
<button type="button" data-action-type="preview" class="btn btn-study-cave " title="Podgląd">
|
||||||
<i class="far fa-eye" data-action-type="preview"></i></button>
|
<i class="far fa-eye" data-action-type="preview"></i></button>
|
||||||
<button type="button" data-action-type="accept" class="btn btn-study-cave btn-sm" title="Akceptuj">
|
<button type="button" data-action-type="accept" class="btn btn-study-cave " title="Akceptuj">
|
||||||
<i class="fas fa-check-circle" data-action-type="accept"></i></button>
|
<i class="fas fa-check-circle" data-action-type="accept"></i></button>
|
||||||
<button type="button" data-action-type="reject" class="btn btn-study-cave btn-sm" title="Odrzuć">
|
<button type="button" data-action-type="reject" class="btn btn-study-cave " title="Odrzuć">
|
||||||
<i class="fas fa-times" data-action-type="reject"></i></button>
|
<i class="fas fa-times" data-action-type="reject"></i></button>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<div id="container-login">
|
<div id="container-login">
|
||||||
<button class="btn btn-study-cave" (click)="loginWithUsos()">Zaloguj przez USOS</button>
|
<button class="button" (click)="loginWithUsos()">Zaloguj przez USOS</button>
|
||||||
<br /><br /><br /><br />
|
<br /><br /><br /><br />
|
||||||
<div>
|
<div>
|
||||||
<form (ngSubmit)="login()">
|
<form (ngSubmit)="login()">
|
||||||
@ -8,7 +8,7 @@
|
|||||||
<input type = "text" [(ngModel)] = "model.username" name="username"><br />
|
<input type = "text" [(ngModel)] = "model.username" name="username"><br />
|
||||||
Hasło:<br />
|
Hasło:<br />
|
||||||
<input type = "password" [(ngModel)] = "model.password" name = "password"><br /><br />
|
<input type = "password" [(ngModel)] = "model.password" name = "password"><br /><br />
|
||||||
<input class="btn btn-study-cave" type="submit" value = "Zaloguj" />
|
<input class="button" type="submit" value = "Zaloguj" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -53,3 +53,14 @@ ag-grid-angular{
|
|||||||
.buttons-container > div{
|
.buttons-container > div{
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button{
|
||||||
|
font-size: large;
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-right: 30px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
p{
|
||||||
|
color:white;
|
||||||
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="buttons-container">
|
<div class="buttons-container">
|
||||||
<button class="btn btn-study-cave" routerLink="/materials/list"><i class="fas fa-arrow-left"></i> WRÓĆ DO LISTY</button>
|
<button class="button" routerLink="/materials/list"><i class="fas fa-arrow-left"></i> WRÓĆ DO LISTY</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrapper-add">
|
<div class="wrapper-add">
|
||||||
@ -33,10 +33,9 @@
|
|||||||
<b>Udostępnij publicznie</b>
|
<b>Udostępnij publicznie</b>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</div>
|
</div>
|
||||||
<button class="btn btn-study-cave" [disabled]="!selectedFiles" (click)="upload()"><i class="fas fa-check-circle"></i> Dodaj materiały!</button>
|
<button class="button" style ="font-size: x-large; padding-left: 30px; padding-right: 30px;" [disabled]="!selectedFiles" (click)="upload()"><i class="fas fa-check-circle"></i> Dodaj materiały!</button>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<button class="btn btn-study-cave" routerLink="/materials/list/"><i class="fas fa-arrow-left"></i> Powrót</button>
|
<button class="button" routerLink="/materials/list/"><i class="fas fa-arrow-left"></i> Powrót</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -19,3 +19,10 @@
|
|||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button{
|
||||||
|
font-size: large;
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-right: 30px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
@ -45,3 +45,11 @@ ag-grid-angular{
|
|||||||
.buttons-container > div{
|
.buttons-container > div{
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.button{
|
||||||
|
font-size: large;
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-right: 30px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<br />
|
<br />
|
||||||
<div class="buttons-container">
|
<div class="buttons-container">
|
||||||
<div *ngIf="logged">
|
<div *ngIf="logged">
|
||||||
<button class="btn btn-study-cave" (click)="toMaterialsMaker()"><i class="fas fa-plus"></i> Dodaj materiały</button>
|
<button class="button" (click)="toMaterialsMaker()"><i class="fas fa-plus"></i> Dodaj materiały</button>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="logged" class="btn-group btn-group-toggle" data-toggle="buttons">
|
<div *ngIf="logged" class="btn-group btn-group-toggle" data-toggle="buttons">
|
||||||
<label class="btn btn-study-cave active" (click)="ShowPublic()">
|
<label class="btn btn-study-cave active" (click)="ShowPublic()">
|
||||||
|
@ -38,8 +38,6 @@ export class MaterialsListComponent implements OnInit, OnDestroy {
|
|||||||
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Data dodania', field: 'add_date', headerTooltip: 'Data dodania', hide: false },
|
{ headerName: 'Data dodania', field: 'add_date', headerTooltip: 'Data dodania', hide: false },
|
||||||
{ headerName: 'Data modyfikacji', field: 'edit_date', headerTooltip: 'Data modyfikacji', hide: false },
|
{ headerName: 'Data modyfikacji', field: 'edit_date', headerTooltip: 'Data modyfikacji', hide: false },
|
||||||
{ headerName: 'Właściciel', field: 'owner', headerTooltip: 'Właściciel', hide: false },
|
|
||||||
{ headerName: 'Grupa', field: 'group', headerTooltip: 'Grupa', hide: !this.isGroup },
|
|
||||||
{
|
{
|
||||||
headerName: '',
|
headerName: '',
|
||||||
suppressMenu: true,
|
suppressMenu: true,
|
||||||
@ -57,9 +55,9 @@ export class MaterialsListComponent implements OnInit, OnDestroy {
|
|||||||
return '';
|
return '';
|
||||||
} else if (params.data['owner'] === currentUser.username) {
|
} else if (params.data['owner'] === currentUser.username) {
|
||||||
return `
|
return `
|
||||||
<button type="button" data-action-type="remove" class="btn btn-study-cave btn-sm" title="Usuń">
|
<button type="button" data-action-type="remove" class="btn btn-study-cave " title="Usuń">
|
||||||
<i class="fas fa-trash-alt" data-action-type="remove"></i></button>
|
<i class="fas fa-trash-alt" data-action-type="remove"></i></button>
|
||||||
<button type="button" data-action-type="changePermission" class="btn btn-study-cave btn-sm" title="Uprawnienia">
|
<button type="button" data-action-type="changePermission" class="btn btn-study-cave " title="Uprawnienia">
|
||||||
<i class="fas fa-unlock" data-action-type="changePermission"></i></button>
|
<i class="fas fa-unlock" data-action-type="changePermission"></i></button>
|
||||||
`;
|
`;
|
||||||
} else {
|
} else {
|
||||||
@ -211,8 +209,6 @@ export class MaterialsListComponent implements OnInit, OnDestroy {
|
|||||||
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Data dodania', field: 'add_date', headerTooltip: 'Data dodania', hide: true },
|
{ headerName: 'Data dodania', field: 'add_date', headerTooltip: 'Data dodania', hide: true },
|
||||||
{ headerName: 'Data modyfikacji', field: 'edit_date', headerTooltip: 'Data modyfikacji', hide: true },
|
{ headerName: 'Data modyfikacji', field: 'edit_date', headerTooltip: 'Data modyfikacji', hide: true },
|
||||||
{ headerName: 'Właściciel', field: 'owner', headerTooltip: 'Właściciel', hide: true },
|
|
||||||
{ headerName: 'Grupa', field: 'group', headerTooltip: 'Grupa', hide: !this.isGroup },
|
|
||||||
{
|
{
|
||||||
headerName: '',
|
headerName: '',
|
||||||
suppressMenu: true,
|
suppressMenu: true,
|
||||||
@ -226,9 +222,6 @@ export class MaterialsListComponent implements OnInit, OnDestroy {
|
|||||||
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Data dodania', field: 'add_date', headerTooltip: 'Data dodania', hide: false },
|
{ headerName: 'Data dodania', field: 'add_date', headerTooltip: 'Data dodania', hide: false },
|
||||||
{ headerName: 'Data modyfikacji', field: 'edit_date', headerTooltip: 'Data modyfikacji', hide: false },
|
{ headerName: 'Data modyfikacji', field: 'edit_date', headerTooltip: 'Data modyfikacji', hide: false },
|
||||||
{ headerName: 'Właściciel', field: 'owner', headerTooltip: 'Właściciel', hide: false },
|
|
||||||
{ headerName: 'Ocena', field: 'grade', headerTooltip: 'Ocena', hide: false },
|
|
||||||
{ headerName: 'Grupa', field: 'group', headerTooltip: 'Grupa', hide: !this.isGroup },
|
|
||||||
{
|
{
|
||||||
headerName: '',
|
headerName: '',
|
||||||
suppressMenu: true,
|
suppressMenu: true,
|
||||||
@ -263,8 +256,6 @@ export class MaterialsListComponent implements OnInit, OnDestroy {
|
|||||||
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Data dodania', field: 'add_date', headerTooltip: 'Data dodania', hide: false },
|
{ headerName: 'Data dodania', field: 'add_date', headerTooltip: 'Data dodania', hide: false },
|
||||||
{ headerName: 'Data modyfikacji', field: 'edit_date', headerTooltip: 'Data modyfikacji', hide: false },
|
{ headerName: 'Data modyfikacji', field: 'edit_date', headerTooltip: 'Data modyfikacji', hide: false },
|
||||||
{ headerName: 'Właściciel', field: 'owner', headerTooltip: 'Właściciel', hide: false },
|
|
||||||
{ headerName: 'Grupa', field: 'group', headerTooltip: 'Grupa', hide: !this.isGroup },
|
|
||||||
{
|
{
|
||||||
headerName: '',
|
headerName: '',
|
||||||
suppressMenu: true,
|
suppressMenu: true,
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
.button{
|
||||||
|
font-size: large;
|
||||||
|
min-width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
<div>
|
<div>
|
||||||
<button class="btn btn-study-cave" routerLink="/flashcards/sets"><i class="fas fa-scroll"></i> FISZKI</button>
|
<button class="button" routerLink="/flashcards/sets"><i class="fas fa-scroll"></i> FISZKI</button>
|
||||||
<button class="btn btn-study-cave" routerLink="/materials/list"><i class="fas fa-book-open"></i> MATERIAŁY</button>
|
<button class="button" routerLink="/materials/list"><i class="fas fa-book-open"></i> MATERIAŁY</button>
|
||||||
</div>
|
</div>
|
@ -31,8 +31,6 @@ export class TestsListComponent implements OnInit, OnDestroy {
|
|||||||
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Data dodania', field: 'addDate', headerTooltip: 'Data dodania', hide: false },
|
{ headerName: 'Data dodania', field: 'addDate', headerTooltip: 'Data dodania', hide: false },
|
||||||
{ headerName: 'Data modyfikacji', field: 'editDate', headerTooltip: 'Data modyfikacji', hide: false },
|
{ headerName: 'Data modyfikacji', field: 'editDate', headerTooltip: 'Data modyfikacji', hide: false },
|
||||||
{ headerName: 'Właściciel', field: 'owner', headerTooltip: 'Właściciel', hide: false },
|
|
||||||
{ headerName: 'Grupa', field: 'group', headerTooltip: 'Grupa', hide: !this.isGroup },
|
|
||||||
{ headerName: 'Ocena', field: 'grade', headerTooltip: 'Ocena', hide: false },
|
{ headerName: 'Ocena', field: 'grade', headerTooltip: 'Ocena', hide: false },
|
||||||
{
|
{
|
||||||
headerName: '',
|
headerName: '',
|
||||||
@ -52,11 +50,11 @@ export class TestsListComponent implements OnInit, OnDestroy {
|
|||||||
return '<button type="button" data-action-type="get" class="btn btn-study-cave">PDF</button>';
|
return '<button type="button" data-action-type="get" class="btn btn-study-cave">PDF</button>';
|
||||||
} else if (params.data['owner'] === currentUser.username) {
|
} else if (params.data['owner'] === currentUser.username) {
|
||||||
return `
|
return `
|
||||||
<button type="button" data-action-type="remove" class="btn btn-study-cave btn-sm" title="Usuń">
|
<button type="button" data-action-type="remove" class="btn btn-study-cave " title="Usuń">
|
||||||
<i class="fas fa-trash-alt" data-action-type="remove"></i></button>
|
<i class="fas fa-trash-alt" data-action-type="remove"></i></button>
|
||||||
<button type="button" data-action-type="edit" class="btn btn-study-cave btn-sm" title="Edytuj">
|
<button type="button" data-action-type="edit" class="btn btn-study-cave " title="Edytuj">
|
||||||
<i class="fas fa-edit" data-action-type="edit"></i></button>
|
<i class="fas fa-edit" data-action-type="edit"></i></button>
|
||||||
<button type="button" data-action-type="get" class="btn btn-study-cave btn-sm" title="PDF">
|
<button type="button" data-action-type="get" class="btn btn-study-cave " title="PDF">
|
||||||
<i class="fas fa-file-pdf" data-action-type="get"></i></button>
|
<i class="fas fa-file-pdf" data-action-type="get"></i></button>
|
||||||
`;
|
`;
|
||||||
} else {
|
} else {
|
||||||
@ -202,8 +200,6 @@ export class TestsListComponent implements OnInit, OnDestroy {
|
|||||||
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Data dodania', field: 'addDate', headerTooltip: 'Data dodania', hide: true },
|
{ headerName: 'Data dodania', field: 'addDate', headerTooltip: 'Data dodania', hide: true },
|
||||||
{ headerName: 'Data modyfikacji', field: 'editDate', headerTooltip: 'Data modyfikacji', hide: true },
|
{ headerName: 'Data modyfikacji', field: 'editDate', headerTooltip: 'Data modyfikacji', hide: true },
|
||||||
{ headerName: 'Właściciel', field: 'owner', headerTooltip: 'Właściciel', hide: true },
|
|
||||||
{ headerName: 'Grupa', field: 'group', headerTooltip: 'Grupa', hide: !this.isGroup },
|
|
||||||
{ headerName: 'Ocena', field: 'grade', headerTooltip: 'Ocena', hide: true },
|
{ headerName: 'Ocena', field: 'grade', headerTooltip: 'Ocena', hide: true },
|
||||||
{
|
{
|
||||||
headerName: '',
|
headerName: '',
|
||||||
@ -218,8 +214,6 @@ export class TestsListComponent implements OnInit, OnDestroy {
|
|||||||
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Data dodania', field: 'addDate', headerTooltip: 'Data dodania', hide: false },
|
{ headerName: 'Data dodania', field: 'addDate', headerTooltip: 'Data dodania', hide: false },
|
||||||
{ headerName: 'Data modyfikacji', field: 'editDate', headerTooltip: 'Data modyfikacji', hide: false },
|
{ headerName: 'Data modyfikacji', field: 'editDate', headerTooltip: 'Data modyfikacji', hide: false },
|
||||||
{ headerName: 'Właściciel', field: 'owner', headerTooltip: 'Właściciel', hide: false },
|
|
||||||
{ headerName: 'Grupa', field: 'group', headerTooltip: 'Grupa', hide: !this.isGroup },
|
|
||||||
{ headerName: 'Ocena', field: 'grade', headerTooltip: 'Ocena', hide: false },
|
{ headerName: 'Ocena', field: 'grade', headerTooltip: 'Ocena', hide: false },
|
||||||
{
|
{
|
||||||
headerName: '',
|
headerName: '',
|
||||||
@ -255,8 +249,6 @@ export class TestsListComponent implements OnInit, OnDestroy {
|
|||||||
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
{ headerName: 'Nazwa', field: 'title', headerTooltip: 'Nazwa' },
|
||||||
{ headerName: 'Data dodania', field: 'addDate', headerTooltip: 'Data dodania', hide: false },
|
{ headerName: 'Data dodania', field: 'addDate', headerTooltip: 'Data dodania', hide: false },
|
||||||
{ headerName: 'Data modyfikacji', field: 'editDate', headerTooltip: 'Data modyfikacji', hide: false },
|
{ headerName: 'Data modyfikacji', field: 'editDate', headerTooltip: 'Data modyfikacji', hide: false },
|
||||||
{ headerName: 'Właściciel', field: 'owner', headerTooltip: 'Właściciel', hide: false },
|
|
||||||
{ headerName: 'Grupa', field: 'group', headerTooltip: 'Grupa', hide: !this.isGroup },
|
|
||||||
{ headerName: 'Ocena', field: 'grade', headerTooltip: 'Ocena', hide: false },
|
{ headerName: 'Ocena', field: 'grade', headerTooltip: 'Ocena', hide: false },
|
||||||
{
|
{
|
||||||
headerName: '',
|
headerName: '',
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<title>Punktonerzy</title>
|
<title>Punktonerzy</title>
|
||||||
<base href="/">
|
<base href="/">
|
||||||
<!-- <script>document.write('<base href="' + document.location + '" />');</script> -->
|
<!-- <script>document.write('<base href="' + document.location + '" />');</script> -->
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab&display=swap" rel="stylesheet">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" type="image/x-icon" href="assets/logo-punktonerzy.PNG">
|
<link rel="icon" type="image/x-icon" href="assets/logo-punktonerzy.PNG">
|
||||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" integrity="sha384-gfdkjb5BdAXd+lj+gudLWI+BXq4IuLW5IT+brZEZsLFm++aCMlF1V92rMkPaX4PP" crossorigin="anonymous">
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" integrity="sha384-gfdkjb5BdAXd+lj+gudLWI+BXq4IuLW5IT+brZEZsLFm++aCMlF1V92rMkPaX4PP" crossorigin="anonymous">
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
@import "~ag-grid-community/dist/styles/ag-grid.css";
|
@import "~ag-grid-community/dist/styles/ag-grid.css";
|
||||||
@import "~ag-grid-community/dist/styles/ag-theme-dark.css";
|
@import "~ag-grid-community/dist/styles/ag-theme-dark.css";
|
||||||
@import "~@angular/material/prebuilt-themes/indigo-pink.css";
|
@import "~@angular/material/prebuilt-themes/indigo-pink.css";
|
||||||
@import url('https://fonts.googleapis.com/css?family=Roboto');
|
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab');
|
||||||
|
|
||||||
body{
|
body{
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
background-color: #272324;
|
background-color: #272324;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-family: 'Roboto', Arial, Helvetica, sans-serif;
|
font-family: 'Roboto Slab', 'Cambria', serif !important;
|
||||||
color: white;
|
color: white;
|
||||||
background-size: auto 100%;
|
background-size: auto 100%;
|
||||||
background-image: url("./assets/tlo.png");
|
background-image: url("./assets/tlo.png");
|
||||||
@ -17,7 +17,7 @@ body{
|
|||||||
background-color: #000080;
|
background-color: #000080;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn{
|
.btn {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -64,10 +64,6 @@ body{
|
|||||||
margin: 2rem auto !important;
|
margin: 2rem auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-study-cave:not([disabled]):not(.disabled).active {
|
|
||||||
box-shadow: 0 0 0 .2rem rgba(112, 81, 14, 0.5);
|
|
||||||
}
|
|
||||||
|
|
||||||
.alert-grey {
|
.alert-grey {
|
||||||
background-color: #22272a;
|
background-color: #22272a;
|
||||||
}
|
}
|
||||||
@ -111,14 +107,17 @@ a:hover{
|
|||||||
height: 50px !important;
|
height: 50px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
label.btn-study-cave {
|
||||||
|
margin-left: 5px !important;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-study-cave {
|
.btn-study-cave {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #272324;
|
background-color: #000080;
|
||||||
border-color: #cea856;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-study-cave:hover {
|
.btn-study-cave:hover {
|
||||||
border-color: rgb(202, 144, 17);
|
background-color: orange;
|
||||||
color: #FFF !important;
|
color: #FFF !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,6 +143,7 @@ a:hover{
|
|||||||
|
|
||||||
.mat-simple-snackbar {
|
.mat-simple-snackbar {
|
||||||
justify-content: center !important;
|
justify-content: center !important;
|
||||||
|
font-family: 'Roboto Slab', 'Cambria', serif !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button
|
.button
|
||||||
@ -157,6 +157,7 @@ a:hover{
|
|||||||
border-bottom: #000080;
|
border-bottom: #000080;
|
||||||
color: white;
|
color: white;
|
||||||
font-size: x-large;
|
font-size: x-large;
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button:hover
|
.button:hover
|
||||||
@ -165,7 +166,116 @@ a:hover{
|
|||||||
border-color: orange;
|
border-color: orange;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button:hover, a:hover {
|
||||||
|
transition: 400ms !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content .wrapper .content {
|
||||||
|
background-color: #28102f !important;
|
||||||
|
border: 1px solid #625283 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-dialog * {
|
||||||
|
font-family: 'Roboto Slab', 'Cambria', serif !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-dialog .fa, .ui-dialog .fas, .ui-dialog .far, .ui-dialog .pi {
|
||||||
|
font-family: "primeicons" !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ag-theme-dark * {
|
||||||
|
font-family: 'Roboto Slab', 'Cambria', serif !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ag-theme-dark .fa, .ag-theme-dark .fas, .ag-theme-dark .far {
|
||||||
|
font-family: "Font Awesome 5 Free" !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ag-theme-dark .ag-body, .ag-theme-dark .ag-row-odd, .ag-theme-dark .ag-menu {
|
||||||
|
background-color: #19032f !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ag-theme-dark input, .ag-theme-dark select {
|
||||||
|
background-color: #1e0935 !important;
|
||||||
|
padding: 1rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ag-filter-body-wrapper > div {
|
||||||
|
padding: 0.5rem !important;
|
||||||
|
background-color: #0c0118 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ag-theme-dark .ag-row-even {
|
||||||
|
background-color: #29054d !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ag-theme-dark .ag-paging-panel {
|
||||||
|
border-bottom: 1px solid darkgrey !important;
|
||||||
|
border-left: 1px solid darkgrey !important;
|
||||||
|
border-right: 1px solid darkgrey !important;
|
||||||
|
border-top-width: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ag-theme-dark, .ag-theme-dark .ag-header {
|
||||||
|
background-color: #0c0118 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ag-theme-dark .ag-row-focus {
|
||||||
|
background-color: #6c08d7 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ag-theme-dark .ag-row-hover {
|
||||||
|
background-color: #4f069d !important;
|
||||||
|
}
|
||||||
|
|
||||||
.ui-listbox {
|
.ui-listbox {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
width: 700px !important;
|
width: 700px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ag-theme-dark {
|
||||||
|
font-size: 24px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ag-header {
|
||||||
|
font-size: 24px !important;
|
||||||
|
height: 60px !important;
|
||||||
|
min-height: 60px !important;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ag-header-row, .ag-header-cell {
|
||||||
|
height: 60px !important;
|
||||||
|
min-height: 60px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ag-theme-dark .ag-header-cell {
|
||||||
|
line-height: 50px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 700px) {
|
||||||
|
.ag-theme-dark {
|
||||||
|
font-size: 16px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ag-header {
|
||||||
|
font-size: 16px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 470px) {
|
||||||
|
.ag-theme-dark {
|
||||||
|
font-size: 14px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ag-header {
|
||||||
|
font-size: 14px !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.ag-paging-panel {
|
||||||
|
font-size: 12px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user