<ion-header>
  <ion-toolbar>
    <ion-buttons slot="start">
      <ion-back-button defaultHref="/custom-teacher"></ion-back-button>
    </ion-buttons>
    <ion-title>{{ isEdit ? '编辑教师' : '添加教师' }}</ion-title>
  </ion-toolbar>
</ion-header>

<ion-content>
  <ion-list>
    <ion-item>
      <ion-label position="stacked">教师名称</ion-label>
      <ion-input 
        [(ngModel)]="teacher.name"
        placeholder="请输入教师名称"
        type="text">
      </ion-input>
    </ion-item>

    <ion-item>
      <ion-label position="stacked">教师描述</ion-label>
      <ion-input 
        [(ngModel)]="teacher.description"
        placeholder="请输入简短的教师描述"
        type="text">
      </ion-input>
    </ion-item>

    <ion-item>
      <ion-label position="stacked">系统提示词</ion-label>
      <ion-textarea 
        [(ngModel)]="teacher.systemPrompt"
        placeholder="请输入详细的系统提示词，用于定义教师的个性和教学风格"
        [rows]="6"
        [autoGrow]="true">
      </ion-textarea>
    </ion-item>
  </ion-list>

  <div class="ion-padding">
    <ion-button expand="block" (click)="saveTeacher()">
      {{ isEdit ? '保存修改' : '创建教师' }}
    </ion-button>
  </div>
</ion-content> 