Skip to content
Snippets Groups Projects
desk-round.js 949 B
Newer Older
  • Learn to ignore specific revisions
  • // Imports
    import * as Auth from "/services/auth/auth.js";
    
    export async function mount(where, parent) {
      const deskRoundComponent = new DeskRoundSelector(parent);
      await deskRoundComponent.mount(where);
      return deskRoundComponent;
    }
    
    class DeskRoundSelector {
      constructor(parent) {
        this.method = null;
        this.parent = parent;
      }
    
      async mount(where) {
        const mountpoint = where;
        document.getElementById(mountpoint).innerHTML = /* HTML */ `
          <header class="card-header">
            <p class="card-header-title">
              Choix du bureau de vote
            </p>
          </header>
          <div class="card-content">
            <div class="columns">
              <div class="column">
                <div id="select-filters" class="card"></div>
              </div>
              <div class="column">
                <div id="select-desks" class="card"></div>
              </div>
            </div>
          </div>
        `;
        this.handleDom();
      }
    
      handleDom() {}
    }