layout changes

This commit is contained in:
Przemysław Stawujak 2019-01-23 21:05:52 +01:00
parent 29caf98af5
commit 13bfb0a45f
6 changed files with 12 additions and 12 deletions

View File

@ -49,7 +49,7 @@ export class RegisterComponent extends AppComponentBase implements OnInit, After
ngOnInit(): void {
this.model.role = 'Participant';
this.model.participantClass = 1;
this.model.participantClass = null;
}
back(): void {

View File

@ -8,7 +8,7 @@
}
.element-size {
width: 500px;
width: calc(100% - 20px);
}
.field {
@ -17,7 +17,7 @@
border-left: 10px #739CB9 solid;
border-radius: 10px;
padding: 5px;
width: 520px;
width: 100%;
margin-bottom: 10px;
}

View File

@ -1,5 +1,5 @@
<div id="create-competition-area">
<div class="container">
<div>
<h2 class="title">Tworzenie konkursu</h2>

View File

@ -54,10 +54,10 @@
<hr />
<div class="text-center">
<button class="btn btn-default" (click)="goTo(0);">Pierwsza</button>
<button class="btn btn-default" (click)="goTo(pager.index - 1);">Poprzednia</button>
<button class="btn btn-primary" (click)="goTo(pager.index + 1);">Następna</button>
<button class="btn btn-default" (click)="goTo(pager.count - 1);">Ostatnia</button>
<button *ngIf="pager.index!==0" class="btn btn-default" (click)="goTo(0);">Pierwsza</button>
<button *ngIf="pager.index!==0" class="btn btn-default" (click)="goTo(pager.index - 1);">Poprzednia</button>
<button *ngIf="pager.index!==pager.count-1" class="btn btn-primary" (click)="goTo(pager.index + 1);">Następna</button>
<button *ngIf="pager.index!==pager.count-1" class="btn btn-default" (click)="goTo(pager.count - 1);">Ostatnia</button>
</div>
<div>
@ -70,8 +70,8 @@
<div *ngFor="let question of competition.questions; let index = index">
<div class="result-question">
<h5>{{index + 1}}. {{question.name}}</h5>
<div class="row">
<div *ngFor="let option of question.questionOptions">
<div>
<div [ngClass]="{'alert alert-success': option.isAnswer}" *ngFor="let option of question.questionOptions">
<input type="checkbox" [(ngModel)]="option.selected" id="{{option.id}}" disabled="true">
<label class="option-size" for="{{option.id}}">{{option.name}}</label>
</div>

View File

@ -11,7 +11,7 @@ export class SideBarNavComponent extends AppComponentBase {
menuItems: MenuItem[] = [
new MenuItem(this.l("Strona domowa"), "", "home", "/app/home"),
new MenuItem(this.l("Profil"), "", "person", "/app/profile"),
new MenuItem(this.l("Edycja profilu"), "", "person", "/app/profile"),
new MenuItem(this.l("Konkursy"), "", "list", "/app/categories-list"),
new MenuItem(this.l("Dodaj konkurs"), "Pages.Create.Competition", "add", "/app/competition-create"),

View File

@ -18,7 +18,7 @@
</div>
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="javascript:void(0);" class="js-search" data-close="true"><i class="material-icons">search</i></a></li>
<!-- <li><a href="javascript:void(0);" class="js-search" data-close="true"><i class="material-icons">search</i></a></li> -->
<!-- <topbar-languageswitch></topbar-languageswitch> -->
<li><a href="javascript:void(0);" class="js-right-sidebar" data-close="true"><i class="material-icons">more_vert</i></a></li>
<li><a (click)="logout()"><i class="material-icons">input</i></a></li>