summaryrefslogtreecommitdiffstats
path: root/loleaflet/admin/adminLog.html
blob: c0bbdedc4ca42000422dc07ae44dd01eaf6633e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<main>
  <div class="container">
    <script>Admin.Log(host);</script>

    <h3 class="title is-3"><script>document.write(l10nstrings.strLog)</script></h3>

    <div class="buttons is-fullwidth is-right">
      <button type="button" class="button is-info" id="refresh-log" style="width:120px;"><script>document.write(l10nstrings.strRefreshLog)</script></button>
      <button type="button" id="button-open-log-list-modal" class="button is-info" style="width:120px;">
        <script>document.write(l10nstrings.strSetLogLevels)</script>
      </button>
    </div>

    <div class="level is-fullwidth is-mobile">
      <div class="field is-horizontal">
        <label class="field-label" style="vertical-align: middle; line-height:30px;"><script>document.write(l10nstrings.strChannelFilter)</script></label>
        <div class="control">
          <select class="select" id="log-channel-filter">
            <option><script>document.write(l10nstrings.strChannelFilterNone)</script></option>
          </select>
        </div>
      </div>
    </div>
    <textarea id="log-lines" style="width:100%;height:100%;min-height: calc(100vh - 250px);resize:vertical;" readonly="true"></textarea>
  </div>
</main>

<div class="modal" id="channel-list-modal">
  <div class="modal-background" onclick="document.getElementById('channel-list-modal').classList.remove('is-active');"></div>
  <div class="modal-card">
    <header class="modal-card-head">
      <p class="modal-card-title"><script>document.write(l10nstrings.strLogLevels)</script></p>
      <button class="delete" onclick="document.getElementById('channel-list-modal').classList.remove('is-active');"></button>
    </header>
    <section class="modal-card-body">
      <form class="form-horizontal" id="form-channel-list"></form>
    </section>
    <footer class="modal-card-foot is-fullwidth has-text-right">
        <button type="button" onclick="document.getElementById('channel-list-modal').classList.remove('is-active');" class="button" style="width:120px;" data-dismiss="modal"><script>document.write(l10nstrings.strCloseModal)</script></button>
        <button type="button" form="form-channel-list" id="update-log-levels" class="button is-primary" style="width:140px;"><script>document.write(l10nstrings.strUpdateLogLevels)</script></button>
    </footer>
  </div>
</div>

<script>
  document.getElementById('a-log-mobile').classList.add('is-active');
  document.getElementById('a-log-tablet').classList.add('is-active');
  document.getElementById('button-open-log-list-modal').onclick = function() {
    document.getElementById('channel-list-modal').classList.add('is-active');
  };
</script>