Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

2.4 KB
Raw Blame
<div class="modal-header">
  <h4 class="modal-title">
    <svg [lucideIcon]="icons.LucideFile"></svg>
    <span>{{ file.name }}</span>
  </h4>
  <button
    (click)="layout.closeDialog()"
    aria-label="Close"
    class="btn-close btn-close-white"
    type="button">
  </button>
</div>
<div class="modal-body modal-viewer-select">
  <p class="text-muted mb-3" l10nTranslate>
    Choose which editor you want to use to open this document.
  </p>
  <div class="row g-3">
    <!-- Collabora -->
    <div class="col-12 col-md-6">
      <button
        type="button"
        class="editor-choice is-collabora w-100 btn p-0 border-0 text-start"
        (click)="selectEditor(collaboraEditor)">
        <div class="card h-100 shadow-sm editor-card editor-collabora">
          <div class="card-body d-flex align-items-center gap-3 p-3">
            <div class="editor-badge collabora">
              <svg [lucideIcon]="icons.LucideFileText"></svg>
            </div>
            <div class="flex-grow-1">
              <h3 class="text-bold mb-1">Collabora</h3>
              <div class="text-muted fs-2xs" l10nTranslate>
                Open-source office suite built on LibreOffice.
              </div>
            </div>
          </div>
        </div>
      </button>
    </div>
    <!-- OnlyOffice-compatible -->
    <div class="col-12 col-md-6">
      <button
        type="button"
        class="editor-choice is-onlyoffice w-100 btn p-0 border-0 text-start"
        (click)="selectEditor(officeEditorProvider)">
        <div class="card h-100 shadow-sm editor-card">
          <div class="card-body d-flex align-items-center gap-3 p-3">
            <div class="editor-badge bg-primary-subtle text-primary">
              <svg [lucideIcon]="icons.LucideFileTypeCorner"></svg>
            </div>
            <div class="flex-grow-1">
              <h3 class="text-bold mb-1">{{ officeEditorName }}</h3>
              <div class="text-muted fs-2xs" l10nTranslate>
                Open-source office suite for Microsoft Office.
              </div>
            </div>
          </div>
        </div>
      </button>
    </div>
  </div>
  @if (canRememberChoice) {
    <div class="form-check ms-auto mt-3">
      <input
        class="form-check-input"
        type="checkbox"
        id="rememberEditor"
        [(ngModel)]="rememberChoice"
      />
      <label class="form-check-label fs-sm" for="rememberEditor" l10nTranslate>
        Remember my choice for next time
      </label>
    </div>
  }
</div>