<!--<ion-header class="header" no-border *ngIf="!platform.is('desktop')">
  <ion-grid class="header-subpage">
    <ion-row justify-content-center>
      <ion-col align-self-center size-lg="7">
        <ion-toolbar color="#232D4B">
          <ion-buttons (click)="condividiDocumenti()" slot="start" title="{{'uscita' | translate}}" style="visibility: hidden;">
            <ion-icon name="share" color="light" class="exit" tappable></ion-icon>
          </ion-buttons>
          <ion-title class="titolo-sezione-head">{{ 'titolo_documenti' | translate }}</ion-title>
          <ion-buttons (click)="condividiDocumenti()" slot="end" title="{{'uscita' | translate}}" id="buttonsDoc" style="visibility: hidden;">
            <ion-icon name="share" color="light" class="exit" tappable></ion-icon>
          </ion-buttons>
        </ion-toolbar>
      </ion-col>
    </ion-row>
  </ion-grid>
</ion-header>-->

<ion-content *ngIf="!platform.is('desktop')">
  <ion-row>
    <div class="search-date-smart">
      <ion-row>
        <span class="riga">
          <span class="testo-ricerca"><strong>{{ 'cerca' | translate }}</strong> {{ 'titolo' | translate }} <input type="text" name="calendar" [(ngModel)]="titolo" title="{{ 'ricerca_titolo' | translate }}" class="cerca-titolo-doc"></span>
          <ion-button (click)="getCorsi()" class="search-arrow" title="{{ 'cerca_corsi' | translate }}">
            <ion-icon class="button-icon-documenti-smart ios-icon" slot="icon-only" name="ios-arrow-forward" title="{{ 'cerca_corsi' | translate }}"></ion-icon>
          </ion-button>
        </span>
      </ion-row>
    </div>
  </ion-row>
  
  <ion-row class="search-date-border-smart">
  </ion-row>
  

  <span> 
    <ion-list *ngFor="let corso of calendarioCorsi.corsi; trackBy: trackByDoc" tappable text-wrap class="row-results-smart">
      <div class="table-row">
        <div class="row-text2">
          <strong>{{corso.titolo}}</strong>
          <div class="detail">
            {{corso.dataInizio}} - {{corso.dataFine}}
          </div>
          <div class="detail">
            {{ 'partecipanti' | translate }} {{corso.disponibilita}}
          </div>
          <div class="detail2">
            <ion-textarea class="corso-content2" readonly>{{corso.descrizione}}</ion-textarea >
          </div>
        </div>
        <div class="button-div" tappable>
          <ion-button (click)="iscriviti(corso.id)" size="large" expand="block" color="#fcc73d" class="form-button2" tappable>{{ 'iscriviti' | translate }}</ion-button>
        </div>
      </div>
      <div class="clr"></div>
    </ion-list>
  </span>
</ion-content>

<ion-content *ngIf="platform.is('desktop')">
  <ion-row class="title-row">
      <ion-buttons class="back-button-desktop" (click)="back()" title="{{ 'back_login' | translate }}">
        <ion-icon name="arrow-round-back" color="#232D4B" class="back" tappable></ion-icon>
      </ion-buttons>
      <div class="documenti-title">
        <ion-title>{{ 'calendario_corsi_titolo' | translate }}</ion-title>
      </div>
  </ion-row>
  <ion-row class="search-date">
    <div class="search-date">
      <ion-row>
        <div class="riga">
          <strong>{{ 'cerca' | translate }}</strong> 
          {{ 'da' | translate }} 
          <input type="date" name="calendar" [(ngModel)]="date1" title="{{ 'seleziona_data' | translate }}"> 
          {{ 'a' | translate }} 
          <input type="date" name="calendar" [(ngModel)]="date2" title="{{ 'seleziona_data' | translate }}">
          <ion-button (click)="resetDate()" class="search-arrow-red-desktop" title="{{ 'reset_documenti' | translate }}">
            <ion-icon class="button-icon" slot="icon-only" name="close" title="{{ 'cerca_corsi' | translate }}">
            </ion-icon>
          </ion-button>
          <ion-button (click)="getCorsi()" class="search-arrow" title="{{ 'cerca_corsi' | translate }}">
            <ion-icon class="button-icon-documenti ios-icon" slot="icon-only" name="ios-arrow-forward" title="{{ 'cerca_corsi' | translate }}"></ion-icon>
          </ion-button>
        </div>
        <div class="riga">
          <strong>{{ 'cerca' | translate }}</strong> 
          {{ 'titolo' | translate }} 
          <input type="text" name="calendar" [(ngModel)]="titolo" title="{{ 'ricerca_titolo' | translate }}" class="cerca-titolo-doc" />
          <ion-button (click)="getCorsi()" class="search-arrow" title="{{ 'cerca_corsi' | translate }}">
            <ion-icon class="button-icon-documenti ios-icon" slot="icon-only" name="ios-arrow-forward" title="{{ 'cerca_corsi' | translate }}"></ion-icon>
          </ion-button>
        </div>
      </ion-row>
    </div>
  </ion-row>
  <div class="content-index" *ngFor="let corso of calendarioCorsi.corsi; trackBy: trackByDoc">
    <div class="struttura-sel3 corso-box" tappable #lock>
      <ion-row class="row-box">
        <ion-col>
          <div class="corso-text">
            <div class="title">
              <strong>{{corso.titolo}}</strong>
            </div>
            <div class="data">
              {{corso.dataInizio}} - {{corso.dataFine}}
            </div>
            <div class="disponibilita">
              {{ 'partecipanti' | translate }} {{corso.disponibilita}}
            </div>
            <div class="descrizione">
              <ion-textarea class="corso-content" readonly>{{corso.descrizione}}</ion-textarea >
            </div>
            <div class="button-div" tappable>
              <ion-button (click)="iscriviti(corso.id)" size="large" expand="block" color="#fcc73d" class="form-button2" tappable>{{ 'iscriviti' | translate }}</ion-button>
            </div>
          </div>
        </ion-col>
      </ion-row>
    </div>
  </div>
</ion-content>