<ion-header>
  <ion-toolbar>
    <div class="toolbar-content">
      <div class="button-container">
        <ion-button (click)="goTab1()" fill="clear">
          <ion-icon name="chevron-back" slot="start"></ion-icon>返回
        </ion-button>
      </div>
      <ion-title class="title-text">
        心理普查
      </ion-title>
    </div>
  </ion-toolbar>
</ion-header>

<ion-content [fullscreen]="true">
<section *ngIf="filteredSurveys.length > 0">
  <ion-card *ngFor="let survey of filteredSurveys">
    <ion-card-header>
      <ion-card-title>{{ survey.get('title') }}</ion-card-title>
    </ion-card-header>
    <ion-card-content>
      <p>链接: <a [href]="survey.get('link')" target="_blank">{{ survey.get('link') }}</a></p>
    </ion-card-content>
  </ion-card>
</section>

  <div  style="display: flex; justify-content: center; margin-top: auto;">
    <ion-button (click)="goPublishSurvey()" expand="full">
      发布问卷
    </ion-button>
  </div>


</ion-content>