character-creator.component.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <div class="creation-container">
  2. <form class="form-box">
  3. <h2 style="text-align: center">{{ "creator.new" | translate }}</h2>
  4. <mat-form-field appearance="outline">
  5. <mat-label>{{ "creator.name" | translate }}</mat-label>
  6. <input matInput [(ngModel)]="characterName" name="name" />
  7. </mat-form-field>
  8. <mat-form-field appearance="outline">
  9. <mat-label>{{ "creator.species" | translate }}</mat-label>
  10. <mat-select [(ngModel)]="characterSpecies" name="species">
  11. <mat-optgroup [label]="'Häufige Spezies'"></mat-optgroup>
  12. @for (species of list.commonRaces; track species) {
  13. <mat-option [value]="species">{{
  14. "species." + species | translate
  15. }}</mat-option>
  16. }
  17. <mat-optgroup [label]="'Andere Spezies'"></mat-optgroup>
  18. @for (species of list.otherRaces; track species) {
  19. <mat-option [value]="species">{{
  20. "species." + species | translate
  21. }}</mat-option>
  22. }
  23. </mat-select>
  24. </mat-form-field>
  25. <mat-form-field appearance="outline">
  26. <mat-label>{{ "creator.class" | translate }}</mat-label>
  27. <mat-select [(ngModel)]="characterClass" name="class">
  28. @for (characterClass of list.classes; track characterClass) {
  29. <mat-option [value]="characterClass">{{
  30. "classes." + characterClass | translate
  31. }}</mat-option>
  32. }
  33. </mat-select>
  34. </mat-form-field>
  35. <mat-form-field appearance="outline">
  36. <mat-label>{{ "creator.background" | translate }}</mat-label>
  37. <mat-select [(ngModel)]="characterBackground" name="background">
  38. @for (background of list.backgrounds; track background) {
  39. <mat-option [value]="background">{{
  40. "backgrounds." + background | translate
  41. }}</mat-option>
  42. }
  43. </mat-select>
  44. </mat-form-field>
  45. <mat-form-field appearance="outline">
  46. <mat-label>{{ "creator.gender" | translate }}</mat-label>
  47. <mat-select [(ngModel)]="characterGender" name="gender">
  48. @for (gender of list.genders; track gender) {
  49. <mat-option [value]="gender">{{
  50. "genders." + gender | translate
  51. }}</mat-option>
  52. }
  53. </mat-select>
  54. </mat-form-field>
  55. <div class="button-row">
  56. <button class="create-button" (click)="createCharacter()">
  57. Erstellen
  58. </button>
  59. <button class="cancel-button" [routerLink]="'character/picker'">
  60. Abbrechen
  61. </button>
  62. </div>
  63. </form>
  64. </div>