Custom map codes!

This commit is contained in:
2019-08-31 00:35:23 -04:00
parent 6e6c1dc056
commit 3f5cd08b8e
2 changed files with 8 additions and 2 deletions

View File

@ -8,10 +8,11 @@
</button>
<div class="w-100 mt-3">
<form class="input-group">
<input type="text" class="form-control" [(ngModel)]="code" name="code" placeholder="Code">
<input type="text" class="form-control" [(ngModel)]="code" name="code" placeholder="Code" (keyup)="isValid()">
<div class="input-group-append">
<button class="btn btn-danger" [routerLink]="['/', code]" style="background-color: #dd0330" [disabled]="code.length != 8">Open</button>
<button class="btn btn-danger" [routerLink]="['/', code]" style="background-color: #dd0330" [disabled]="!valid || code.length < 4">Open</button>
</div>
<small *ngIf="!valid && code.length > 3" class="mt-2 text-danger">Codes can only be made up of letters and numbers!</small>
</form>
</div>
</div>