Map-A-Droid / MAD

Map PoGo stuff with Android devices
211 stars 133 forks source link

DataTable'd pogoauth settings #1375

Closed JabLuszko closed 9 months ago

JabLuszko commented 9 months ago

50 results per page, sorted by device column desc (so accounts tied to devices first in results). Plus as bonus we get searchbar :D

mpw1337 commented 8 months ago

Isn't this missing a table id for the pgoauth table itself? It only adds the JS but the id is never given to the table? Or am I missing something? @JabLuszko

<table class="table table-striped table-hover table-sm">
      <thead>
        <tr>
          <th style="width: 15%" class="align-middle">Type <i class="fas fa-info-circle" data-toggle="tooltip" title="Login Type"></th>
          <th style="width: 30%" class="align-middle">Username <i class="fas fa-info-circle" data-toggle="tooltip" title="Username for the login"></th>
          <th style="width: 30%" class="align-middle">Device <i class="fas fa-info-circle" data-toggle="tooltip" title="Device assigned to this login along with instance ID of the device"></th>
          <th style="width: 10%" class="text-center align-middle">Level <i class="fas fa-info-circle" data-toggle="tooltip" title="Account in-game level, 8 for raids, 30 for mons/quests"></th>
          <th style="width: 5%" class="text-center align-middle"></th>
          <th style="width: 10%" class="text-right align-middle"><a href='{{ url('settings_pogoauth', query_={'id': 'new'}) }}'><button type="button" class="btn btn-sm btn-success"><i class="fas fa-plus"></i></button></a></th>
        </tr>
      </thead>
JabLuszko commented 8 months ago

Totally true @mpw1337 , fucked up while copy-pasting, thanks! Welp, another PR :D