Domain

Spot Table

les spots d’une campagne (tableau de champs, un spot par tbody)

Options

Composant métier : posé tel quel, avec vos données. Ce qui change d’une ligne ou d’une page à l’autre :

Un spot
<tbody class="table__body" data-repeater-item> deux rangées par spot
Audio en erreur
field--erroraria-invalid="true"aria-describedby="…-message" comme tout champ, voir Field

Campagne · New

Un spot vide, comme l’écran New : Titre et Durée obligatoires (étoile muette), Audio et Texte facultatifs. Le bouton « Ajouter un spot » est hors du tableau, à droite du Section Label, et pointe le bloc par data-repeater-add="spots". Le tableau est dans une bande card__row--flush d’une Card. Avec le JS, « Ajouter » recopie le modèle (<template>), « Dupliquer » copie les valeurs, « Retirer » est désactivé quand il ne reste qu’un spot.

Spots
Numéro Titre Durée Audio (.wav) Texte (.pdf, .doc, .ppt) Actions
Spot 1
HTML
<div class="section-label">
  <h2 class="section-label__title">Spots</h2>
  <button class="section-label__actions button button--subtle button--neutral button--sm" type="submit" name="action" value="add" formnovalidate data-repeater-add="spots">Ajouter un spot</button>
</div>
<div class="card">
  <div class="card__row card__row--flush">
    <div class="table-scroll" id="spots" data-repeater>
      <table class="table spot-table" data-repeater-items>
        <caption class="visually-hidden">Spots</caption>
        <thead class="table__head">
          <tr class="table__row">
            <th class="table__header spot-table__number" scope="col"><span class="visually-hidden">Numéro</span></th>
            <th class="table__header table__header--required" scope="col">Titre</th>
            <th class="table__header table__header--required spot-table__duration" scope="col">Durée</th>
            <th class="table__header" scope="col">Audio (.wav)</th>
            <th class="table__header" scope="col">Texte (.pdf, .doc, .ppt)</th>
            <th class="table__header spot-table__actions" scope="col"><span class="visually-hidden">Actions</span></th>
          </tr>
        </thead>
        <tbody class="table__body" data-repeater-item>
          <tr class="table__row">
            <th class="table__header" scope="row" rowspan="2">
              <span class="marker marker--sm marker--emphasis" aria-hidden="true" data-repeater-number>1</span>
              <span class="visually-hidden">Spot <span data-repeater-number>1</span></span>
            </th>
            <td class="table__cell">
              <div class="field field--required">
                <div class="field-control">
                  <input type="text" id="spot-1-title" name="spots[1][titre]" required aria-label="Titre du spot 1" placeholder="Nom du spot">
                </div>
              </div>
            </td>
            <td class="table__cell">
              <div class="field field--required">
                <div class="field-control" data-select>
                  <select id="spot-1-duration" name="spots[1][duree]" required aria-label="Durée du spot 1">
                    <option value="">Choisir</option>
                    <option value="5">5 s</option>
                    <option value="10">10 s</option>
                    <option value="15">15 s</option>
                    <option value="20">20 s</option>
                    <option value="25">25 s</option>
                    <option value="30">30 s</option>
                    <option value="35">35 s</option>
                    <option value="40">40 s</option>
                    <option value="45">45 s</option>
                    <option value="50">50 s</option>
                    <option value="55">55 s</option>
                    <option value="60">60 s</option>
                  </select>
                  <svg class="icon icon--sm field-control__icon" aria-hidden="true"><use href="/icons.svg#icon-chevron-down"></use></svg>
                </div>
              </div>
            </td>
            <td class="table__cell">
              <div class="field">
                <label class="field__label visually-hidden" for="spot-1-audio">Audio du spot 1</label>
                <div class="field-file" data-file data-file-empty="Aucun fichier choisi">
                  <div class="field-control field-file__name">
                    <label class="field-file__label">
                      <input class="field-file__input" type="file" id="spot-1-audio" name="spots[1][audio]" accept=".wav">
                      <span data-file-name>Aucun fichier choisi</span>
                    </label>
                    <button class="field-file__remove button button--ghost button--neutral button--sm button--icon-only" type="button" aria-label="Retirer le fichier" data-file-remove hidden><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-x"></use></svg></button>
                  </div>
                  <label class="field-file__button button button--subtle button--neutral button--sm" for="spot-1-audio"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-upload"></use></svg>Parcourir
                  </label>
                </div>
              </div>
            </td>
            <td class="table__cell">
              <div class="field">
                <label class="field__label visually-hidden" for="spot-1-text">Texte du spot 1</label>
                <div class="field-file" data-file data-file-empty="Aucun fichier choisi">
                  <div class="field-control field-file__name">
                    <label class="field-file__label">
                      <input class="field-file__input" type="file" id="spot-1-text" name="spots[1][texte]" accept=".doc,.docx,.pdf,.ppt,.pptx">
                      <span data-file-name>Aucun fichier choisi</span>
                    </label>
                    <button class="field-file__remove button button--ghost button--neutral button--sm button--icon-only" type="button" aria-label="Retirer le fichier" data-file-remove hidden><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-x"></use></svg></button>
                  </div>
                  <label class="field-file__button button button--subtle button--neutral button--sm" for="spot-1-text"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-upload"></use></svg>Parcourir
                  </label>
                </div>
              </div>
            </td>
            <td class="table__cell table__cell--actions" rowspan="2">
              <button class="repeater__button button button--ghost button--neutral button--sm button--icon-only" type="submit" name="action" value="duplicate-1" formnovalidate hidden data-repeater-duplicate aria-label="Dupliquer le spot 1"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-copy"></use></svg></button><button class="repeater__button button button--ghost button--danger button--sm button--icon-only" type="submit" name="action" value="remove-1" formnovalidate data-repeater-remove aria-label="Supprimer le spot 1"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-trash"></use></svg></button>
            </td>
          </tr>
          <tr class="table__row">
            <td class="table__cell" colspan="4">
              <div class="field field--inline spot-table__comment">
                <label class="field__label" for="spot-1-comment">Commentaire</label>
                <div class="field-control">
                  <textarea rows="1" id="spot-1-comment" name="spots[1][commentaire]" placeholder="Ex. : consignes de diffusion pour les régies"></textarea>
                </div>
              </div>
            </td>
          </tr>
        </tbody>
        <template data-repeater-template>
          <tbody class="table__body" data-repeater-item>
            <tr class="table__row">
              <th class="table__header" scope="row" rowspan="2">
                <span class="marker marker--sm marker--emphasis" aria-hidden="true" data-repeater-number>__n__</span>
                <span class="visually-hidden">Spot <span data-repeater-number>__n__</span></span>
              </th>
              <td class="table__cell">
                <div class="field field--required">
                  <div class="field-control">
                    <input type="text" id="spot-__n__-title" name="spots[__n__][titre]" required aria-label="Titre du spot __n__" placeholder="Nom du spot">
                  </div>
                </div>
              </td>
              <td class="table__cell">
                <div class="field field--required">
                  <div class="field-control" data-select>
                    <select id="spot-__n__-duration" name="spots[__n__][duree]" required aria-label="Durée du spot __n__">
                      <option value="">Choisir</option>
                      <option value="5">5 s</option>
                      <option value="10">10 s</option>
                      <option value="15">15 s</option>
                      <option value="20">20 s</option>
                      <option value="25">25 s</option>
                      <option value="30">30 s</option>
                      <option value="35">35 s</option>
                      <option value="40">40 s</option>
                      <option value="45">45 s</option>
                      <option value="50">50 s</option>
                      <option value="55">55 s</option>
                      <option value="60">60 s</option>
                    </select>
                    <svg class="icon icon--sm field-control__icon" aria-hidden="true"><use href="/icons.svg#icon-chevron-down"></use></svg>
                  </div>
                </div>
              </td>
              <td class="table__cell">
                <div class="field">
                  <label class="field__label visually-hidden" for="spot-__n__-audio">Audio du spot __n__</label>
                  <div class="field-file" data-file data-file-empty="Aucun fichier choisi">
                    <div class="field-control field-file__name">
                      <label class="field-file__label">
                        <input class="field-file__input" type="file" id="spot-__n__-audio" name="spots[__n__][audio]" accept=".wav">
                        <span data-file-name>Aucun fichier choisi</span>
                      </label>
                      <button class="field-file__remove button button--ghost button--neutral button--sm button--icon-only" type="button" aria-label="Retirer le fichier" data-file-remove hidden><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-x"></use></svg></button>
                    </div>
                    <label class="field-file__button button button--subtle button--neutral button--sm" for="spot-__n__-audio"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-upload"></use></svg>Parcourir
                    </label>
                  </div>
                </div>
              </td>
              <td class="table__cell">
                <div class="field">
                  <label class="field__label visually-hidden" for="spot-__n__-text">Texte du spot __n__</label>
                  <div class="field-file" data-file data-file-empty="Aucun fichier choisi">
                    <div class="field-control field-file__name">
                      <label class="field-file__label">
                        <input class="field-file__input" type="file" id="spot-__n__-text" name="spots[__n__][texte]" accept=".doc,.docx,.pdf,.ppt,.pptx">
                        <span data-file-name>Aucun fichier choisi</span>
                      </label>
                      <button class="field-file__remove button button--ghost button--neutral button--sm button--icon-only" type="button" aria-label="Retirer le fichier" data-file-remove hidden><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-x"></use></svg></button>
                    </div>
                    <label class="field-file__button button button--subtle button--neutral button--sm" for="spot-__n__-text"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-upload"></use></svg>Parcourir
                    </label>
                  </div>
                </div>
              </td>
              <td class="table__cell table__cell--actions" rowspan="2">
                <button class="repeater__button button button--ghost button--neutral button--sm button--icon-only" type="submit" name="action" value="duplicate-__n__" formnovalidate hidden data-repeater-duplicate aria-label="Dupliquer le spot __n__"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-copy"></use></svg></button><button class="repeater__button button button--ghost button--danger button--sm button--icon-only" type="submit" name="action" value="remove-__n__" formnovalidate data-repeater-remove aria-label="Supprimer le spot __n__"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-trash"></use></svg></button>
              </td>
            </tr>
            <tr class="table__row">
              <td class="table__cell" colspan="4">
                <div class="field field--inline spot-table__comment">
                  <label class="field__label" for="spot-__n__-comment">Commentaire</label>
                  <div class="field-control">
                    <textarea rows="1" id="spot-__n__-comment" name="spots[__n__][commentaire]" placeholder="Ex. : consignes de diffusion pour les régies"></textarea>
                  </div>
                </div>
              </td>
            </tr>
          </tbody>
        </template>
      </table>
    </div>
  </div>
</div>

Campagne · Fichiers audio non conformes

Deux spots, le 2e avec son Audio en erreur (champ en erreur, message relié par aria-describedby). Le message pousse sa rangée, l’Audio reste aligné en haut avec les autres champs.

Spots
Numéro Titre Durée Audio (.wav) Texte (.pdf, .doc, .ppt) Actions
Spot 1
Spot 2

Ce fichier est un MP3 : envoyez un fichier .wav de 15 secondes.

HTML
<div class="section-label">
  <h2 class="section-label__title">Spots</h2>
  <button class="section-label__actions button button--subtle button--neutral button--sm" type="submit" name="action" value="add" formnovalidate data-repeater-add="spots-erreur">Ajouter un spot</button>
</div>
<div class="card">
  <div class="card__row card__row--flush">
    <div class="table-scroll" id="spots-erreur" data-repeater>
      <table class="table spot-table" data-repeater-items>
        <caption class="visually-hidden">Spots</caption>
        <thead class="table__head">
          <tr class="table__row">
            <th class="table__header spot-table__number" scope="col"><span class="visually-hidden">Numéro</span></th>
            <th class="table__header table__header--required" scope="col">Titre</th>
            <th class="table__header table__header--required spot-table__duration" scope="col">Durée</th>
            <th class="table__header" scope="col">Audio (.wav)</th>
            <th class="table__header" scope="col">Texte (.pdf, .doc, .ppt)</th>
            <th class="table__header spot-table__actions" scope="col"><span class="visually-hidden">Actions</span></th>
          </tr>
        </thead>
        <tbody class="table__body" data-repeater-item>
          <tr class="table__row">
            <th class="table__header" scope="row" rowspan="2">
              <span class="marker marker--sm marker--emphasis" aria-hidden="true" data-repeater-number>1</span>
              <span class="visually-hidden">Spot <span data-repeater-number>1</span></span>
            </th>
            <td class="table__cell">
              <div class="field field--required">
                <div class="field-control">
                  <input type="text" id="e-spot-1-title" name="spots_erreur[1][titre]" required aria-label="Titre du spot 1" value="Grand Frais Printemps" placeholder="Nom du spot">
                </div>
              </div>
            </td>
            <td class="table__cell">
              <div class="field field--required">
                <div class="field-control" data-select>
                  <select id="e-spot-1-duration" name="spots_erreur[1][duree]" required aria-label="Durée du spot 1">
                    <option value="">Choisir</option>
                    <option value="5">5 s</option>
                    <option value="10">10 s</option>
                    <option value="15">15 s</option>
                    <option value="20">20 s</option>
                    <option value="25">25 s</option>
                    <option value="30" selected>30 s</option>
                    <option value="35">35 s</option>
                    <option value="40">40 s</option>
                    <option value="45">45 s</option>
                    <option value="50">50 s</option>
                    <option value="55">55 s</option>
                    <option value="60">60 s</option>
                  </select>
                  <svg class="icon icon--sm field-control__icon" aria-hidden="true"><use href="/icons.svg#icon-chevron-down"></use></svg>
                </div>
              </div>
            </td>
            <td class="table__cell">
              <div class="field">
                <label class="field__label visually-hidden" for="e-spot-1-audio">Audio du spot 1</label>
                <div class="field-file field-file--filled" data-file data-file-empty="Aucun fichier choisi">
                  <div class="field-control field-file__name">
                    <label class="field-file__label">
                      <input class="field-file__input" type="file" id="e-spot-1-audio" name="spots_erreur[1][audio]" accept=".wav">
                      <span data-file-name>grand-frais-printemps.wav</span>
                    </label>
                    <button class="field-file__remove button button--ghost button--neutral button--sm button--icon-only" type="button" aria-label="Retirer le fichier" data-file-remove hidden><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-x"></use></svg></button>
                  </div>
                  <label class="field-file__button button button--subtle button--neutral button--sm" for="e-spot-1-audio"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-upload"></use></svg>Parcourir
                  </label>
                </div>
              </div>
            </td>
            <td class="table__cell">
              <div class="field">
                <label class="field__label visually-hidden" for="e-spot-1-text">Texte du spot 1</label>
                <div class="field-file field-file--filled" data-file data-file-empty="Aucun fichier choisi">
                  <div class="field-control field-file__name">
                    <label class="field-file__label">
                      <input class="field-file__input" type="file" id="e-spot-1-text" name="spots_erreur[1][texte]" accept=".doc,.docx,.pdf,.ppt,.pptx">
                      <span data-file-name>grand-frais-printemps.pdf</span>
                    </label>
                    <button class="field-file__remove button button--ghost button--neutral button--sm button--icon-only" type="button" aria-label="Retirer le fichier" data-file-remove hidden><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-x"></use></svg></button>
                  </div>
                  <label class="field-file__button button button--subtle button--neutral button--sm" for="e-spot-1-text"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-upload"></use></svg>Parcourir
                  </label>
                </div>
              </div>
            </td>
            <td class="table__cell table__cell--actions" rowspan="2">
              <button class="repeater__button button button--ghost button--neutral button--sm button--icon-only" type="submit" name="action" value="duplicate-1" formnovalidate hidden data-repeater-duplicate aria-label="Dupliquer le spot 1"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-copy"></use></svg></button><button class="repeater__button button button--ghost button--danger button--sm button--icon-only" type="submit" name="action" value="remove-1" formnovalidate data-repeater-remove aria-label="Supprimer le spot 1"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-trash"></use></svg></button>
            </td>
          </tr>
          <tr class="table__row">
            <td class="table__cell" colspan="4">
              <div class="field field--inline spot-table__comment">
                <label class="field__label" for="e-spot-1-comment">Commentaire</label>
                <div class="field-control">
                  <textarea rows="1" id="e-spot-1-comment" name="spots_erreur[1][commentaire]" placeholder="Ex. : consignes de diffusion pour les régies">Diffusion à partir du 12 avril.</textarea>
                </div>
              </div>
            </td>
          </tr>
        </tbody>
        <tbody class="table__body" data-repeater-item>
          <tr class="table__row">
            <th class="table__header" scope="row" rowspan="2">
              <span class="marker marker--sm marker--emphasis" aria-hidden="true" data-repeater-number>2</span>
              <span class="visually-hidden">Spot <span data-repeater-number>2</span></span>
            </th>
            <td class="table__cell">
              <div class="field field--required">
                <div class="field-control">
                  <input type="text" id="e-spot-2-title" name="spots_erreur[2][titre]" required aria-label="Titre du spot 2" value="Grand Frais Rappel" placeholder="Nom du spot">
                </div>
              </div>
            </td>
            <td class="table__cell">
              <div class="field field--required">
                <div class="field-control" data-select>
                  <select id="e-spot-2-duration" name="spots_erreur[2][duree]" required aria-label="Durée du spot 2">
                    <option value="">Choisir</option>
                    <option value="5">5 s</option>
                    <option value="10">10 s</option>
                    <option value="15" selected>15 s</option>
                    <option value="20">20 s</option>
                    <option value="25">25 s</option>
                    <option value="30">30 s</option>
                    <option value="35">35 s</option>
                    <option value="40">40 s</option>
                    <option value="45">45 s</option>
                    <option value="50">50 s</option>
                    <option value="55">55 s</option>
                    <option value="60">60 s</option>
                  </select>
                  <svg class="icon icon--sm field-control__icon" aria-hidden="true"><use href="/icons.svg#icon-chevron-down"></use></svg>
                </div>
              </div>
            </td>
            <td class="table__cell">
              <div class="field field--error">
                <label class="field__label visually-hidden" for="e-spot-2-audio">Audio du spot 2</label>
                <div class="field-file field-file--filled" data-file data-file-empty="Aucun fichier choisi">
                  <div class="field-control field-file__name">
                    <label class="field-file__label">
                      <input class="field-file__input" type="file" id="e-spot-2-audio" name="spots_erreur[2][audio]" accept=".wav" aria-invalid="true" aria-describedby="e-spot-2-audio-message">
                      <span data-file-name>grand-frais-rappel.wav</span>
                    </label>
                    <button class="field-file__remove button button--ghost button--neutral button--sm button--icon-only" type="button" aria-label="Retirer le fichier" data-file-remove hidden><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-x"></use></svg></button>
                  </div>
                  <label class="field-file__button button button--subtle button--neutral button--sm" for="e-spot-2-audio"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-upload"></use></svg>Parcourir
                  </label>
                </div>
                <p class="field__message" id="e-spot-2-audio-message">Ce fichier est un MP3 : envoyez un fichier .wav de 15 secondes.</p>
              </div>
            </td>
            <td class="table__cell">
              <div class="field">
                <label class="field__label visually-hidden" for="e-spot-2-text">Texte du spot 2</label>
                <div class="field-file" data-file data-file-empty="Aucun fichier choisi">
                  <div class="field-control field-file__name">
                    <label class="field-file__label">
                      <input class="field-file__input" type="file" id="e-spot-2-text" name="spots_erreur[2][texte]" accept=".doc,.docx,.pdf,.ppt,.pptx">
                      <span data-file-name>Aucun fichier choisi</span>
                    </label>
                    <button class="field-file__remove button button--ghost button--neutral button--sm button--icon-only" type="button" aria-label="Retirer le fichier" data-file-remove hidden><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-x"></use></svg></button>
                  </div>
                  <label class="field-file__button button button--subtle button--neutral button--sm" for="e-spot-2-text"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-upload"></use></svg>Parcourir
                  </label>
                </div>
              </div>
            </td>
            <td class="table__cell table__cell--actions" rowspan="2">
              <button class="repeater__button button button--ghost button--neutral button--sm button--icon-only" type="submit" name="action" value="duplicate-2" formnovalidate hidden data-repeater-duplicate aria-label="Dupliquer le spot 2"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-copy"></use></svg></button><button class="repeater__button button button--ghost button--danger button--sm button--icon-only" type="submit" name="action" value="remove-2" formnovalidate data-repeater-remove aria-label="Supprimer le spot 2"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-trash"></use></svg></button>
            </td>
          </tr>
          <tr class="table__row">
            <td class="table__cell" colspan="4">
              <div class="field field--inline spot-table__comment">
                <label class="field__label" for="e-spot-2-comment">Commentaire</label>
                <div class="field-control">
                  <textarea rows="1" id="e-spot-2-comment" name="spots_erreur[2][commentaire]" placeholder="Ex. : consignes de diffusion pour les régies"></textarea>
                </div>
              </div>
            </td>
          </tr>
        </tbody>
        <template data-repeater-template>
          <tbody class="table__body" data-repeater-item>
            <tr class="table__row">
              <th class="table__header" scope="row" rowspan="2">
                <span class="marker marker--sm marker--emphasis" aria-hidden="true" data-repeater-number>__n__</span>
                <span class="visually-hidden">Spot <span data-repeater-number>__n__</span></span>
              </th>
              <td class="table__cell">
                <div class="field field--required">
                  <div class="field-control">
                    <input type="text" id="e-spot-__n__-title" name="spots_erreur[__n__][titre]" required aria-label="Titre du spot __n__" placeholder="Nom du spot">
                  </div>
                </div>
              </td>
              <td class="table__cell">
                <div class="field field--required">
                  <div class="field-control" data-select>
                    <select id="e-spot-__n__-duration" name="spots_erreur[__n__][duree]" required aria-label="Durée du spot __n__">
                      <option value="">Choisir</option>
                      <option value="5">5 s</option>
                      <option value="10">10 s</option>
                      <option value="15">15 s</option>
                      <option value="20">20 s</option>
                      <option value="25">25 s</option>
                      <option value="30">30 s</option>
                      <option value="35">35 s</option>
                      <option value="40">40 s</option>
                      <option value="45">45 s</option>
                      <option value="50">50 s</option>
                      <option value="55">55 s</option>
                      <option value="60">60 s</option>
                    </select>
                    <svg class="icon icon--sm field-control__icon" aria-hidden="true"><use href="/icons.svg#icon-chevron-down"></use></svg>
                  </div>
                </div>
              </td>
              <td class="table__cell">
                <div class="field">
                  <label class="field__label visually-hidden" for="e-spot-__n__-audio">Audio du spot __n__</label>
                  <div class="field-file" data-file data-file-empty="Aucun fichier choisi">
                    <div class="field-control field-file__name">
                      <label class="field-file__label">
                        <input class="field-file__input" type="file" id="e-spot-__n__-audio" name="spots_erreur[__n__][audio]" accept=".wav">
                        <span data-file-name>Aucun fichier choisi</span>
                      </label>
                      <button class="field-file__remove button button--ghost button--neutral button--sm button--icon-only" type="button" aria-label="Retirer le fichier" data-file-remove hidden><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-x"></use></svg></button>
                    </div>
                    <label class="field-file__button button button--subtle button--neutral button--sm" for="e-spot-__n__-audio"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-upload"></use></svg>Parcourir
                    </label>
                  </div>
                </div>
              </td>
              <td class="table__cell">
                <div class="field">
                  <label class="field__label visually-hidden" for="e-spot-__n__-text">Texte du spot __n__</label>
                  <div class="field-file" data-file data-file-empty="Aucun fichier choisi">
                    <div class="field-control field-file__name">
                      <label class="field-file__label">
                        <input class="field-file__input" type="file" id="e-spot-__n__-text" name="spots_erreur[__n__][texte]" accept=".doc,.docx,.pdf,.ppt,.pptx">
                        <span data-file-name>Aucun fichier choisi</span>
                      </label>
                      <button class="field-file__remove button button--ghost button--neutral button--sm button--icon-only" type="button" aria-label="Retirer le fichier" data-file-remove hidden><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-x"></use></svg></button>
                    </div>
                    <label class="field-file__button button button--subtle button--neutral button--sm" for="e-spot-__n__-text"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-upload"></use></svg>Parcourir
                    </label>
                  </div>
                </div>
              </td>
              <td class="table__cell table__cell--actions" rowspan="2">
                <button class="repeater__button button button--ghost button--neutral button--sm button--icon-only" type="submit" name="action" value="duplicate-__n__" formnovalidate hidden data-repeater-duplicate aria-label="Dupliquer le spot __n__"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-copy"></use></svg></button><button class="repeater__button button button--ghost button--danger button--sm button--icon-only" type="submit" name="action" value="remove-__n__" formnovalidate data-repeater-remove aria-label="Supprimer le spot __n__"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-trash"></use></svg></button>
              </td>
            </tr>
            <tr class="table__row">
              <td class="table__cell" colspan="4">
                <div class="field field--inline spot-table__comment">
                  <label class="field__label" for="e-spot-__n__-comment">Commentaire</label>
                  <div class="field-control">
                    <textarea rows="1" id="e-spot-__n__-comment" name="spots_erreur[__n__][commentaire]" placeholder="Ex. : consignes de diffusion pour les régies"></textarea>
                  </div>
                </div>
              </td>
            </tr>
          </tbody>
        </template>
      </table>
    </div>
  </div>
</div>