aboutsummaryrefslogtreecommitdiff
path: root/web/templates/html/mappings.html
blob: dd7d8a5f36cb14eee0d1cdc028353d88d50af0fd (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
{{ define "mappings" }}

<div class="col-md-12">
      {{ if .NetworkMaps }}
          <div class="card card-default">
            <!-- Default card contents -->
            <div class="card-header">Network Mappings</div>
            <table class="table">
              <tr>
                <th>Subnet</th>
                <th>IPXE script to use</th>
              </tr>

              {{ range .NetworkMaps }}
              <tr>
                <td>{{ .Network }}</td>
                <td>{{ .Script.String }}</td>
              </tr>
              {{ end }}
            </table>
          </div>
          <div class="card card-default">
            <!-- Default card contents -->
            <div class="card-header">Hostname Mappings</div>
            <table class="table">
              <tr>
                <th>Hostname</th>
                <th>IPXE script to use</th>
              </tr>
              {{ range .HostnameMaps }}
              <tr>
                <td><code>/{{ .Hostname.String }}/</code></td>
                <td>{{ .Script.String }}</td>
              </tr>
              {{ end }}
            </table>
          </div>
      {{ end }}
</div>
{{ end }}
nihil fit ex nihilo