Verified Commit 9cce6b02 authored by blint's avatar blint 😶
Browse files

update style

parent ac4bca62
Pipeline #8654 waiting for manual action with stages
in 2 minutes and 27 seconds
......@@ -3,25 +3,32 @@
{{ template "navbar" .User }}
{{- if .User.IsAdmin }}
<h2>{{ .From}}-tól {{ .To }}-ig</h2>
<table>
<tr>
<th>Termék neve</th>
<th>Egységár</th>
<th>Darabszám</th>
<th>Összes bevétel</th>
</tr>
{{ $prod := .Products }}
{{ range $k, $v := .Counts }}
{{ $p := index $prod $k }}
<tr>
<td>{{ $p.Name }}</td>
<td>{{ $p.Price }} JMF</td>
<td>{{$v}} db</td>
<td>{{mul $v $p.Price}} JMF</td>
</tr>
{{ end }}
</table>
<div class="container">
<div class="text-center form justify-content-center">
<h2 class="my-3">{{ .From}}-tól {{ .To }}-ig</h2>
<div style="overflow-x: auto;">
<table class="table" id="admin-table">
<tr>
<th scope="col">Termék neve</th>
<th scope="col">Egységár</th>
<th scope="col">Darabszám</th>
<th scope="col">Összes bevétel</th>
</tr>
{{ $prod := .Products }}
{{ range $k, $v := .Counts }}
{{ $p := index $prod $k }}
<tr style="text-align: center">
<td style="text-align: left">{{ $p.Name }}</td>
<td>{{ $p.Price }} JMF</td>
<td>{{$v}} db</td>
<td>{{mul $v $p.Price}} JMF</td>
</tr>
{{ end }}
</table>
</div>
</div>
</div>
{{- end }}
{{ template "footer" . }}
\ No newline at end of file
......@@ -17,7 +17,10 @@
</form>
</div>
<script>
document.getElementById("balanceFromDate").valueAsDate = new Date()
document.getElementById("balanceToDate").valueAsDate = new Date()
let today = new Date();
let tomorrow = new Date();
tomorrow.setDate(today.getDate() + 1);
document.getElementById("balanceFromDate").valueAsDate = today;
document.getElementById("balanceToDate").valueAsDate = tomorrow;
</script>
{{ end }}
\ No newline at end of file
......@@ -7,5 +7,5 @@ POSTGRES: "${POSTGRES}"
POSTGRES_PASS: "${POSTGRES_PASS}"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_DB: "${POSTGRES_DB}"
Tag: "v1.5.8"
Tag: "v1.6.0"
REGISTRY_CONF: "${REGISTRY_CONF}"
......@@ -73,11 +73,19 @@ body {
color: white;
}
.dark #admin-table #schacc #topup {
color: white !important;
}
.light {
background-color: #e9e9ec;
color: #3051bf;
}
.light #admin-table #schacc #topup {
color: #3051bf !important;
}
.donate {
height: 4em;
}
......
......@@ -20,7 +20,7 @@
<div class="mx-auto text-center form">
<h1 class="display-4 py-2 text-truncate">Válassz</h1>
<label for="schacc"></label>
<select class="form-select {{ if .Dark }}dark{{ else }}light{{ end }}" id="schacc" name="schacc" form="topup">
<select class="form-select" id="schacc" name="schacc" form="topup">
{{- range .Users }}
<option value="{{ .SchAcc }}">{{ .SchAcc }} - {{ .Name }}</option>
{{- end }}
......@@ -28,7 +28,7 @@
<form action="/topup/" method="POST" id="topup" class="justify-content-center">
<div class="form-group">
<label for="money">Mennyit tölt fel?</label><br>
<input type="number" class="{{ if .Dark }}dark{{ else }}light{{ end }}" id="money" name="money"><br>
<input type="number" id="money" name="money"><br>
</div>
<div class="form-group">
<button type="submit" class="btn bg-kszk text-white">Go</button>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment