feat: the ufw switch of a new forward rule goes under the button

This commit is contained in:
redtea committed 2026-10-13 23:22:07 +03:00
1 parent fbd8f30de3
commit e0dc15740d
1 file changed
+8 -4
+8 -4
View File
@@ -16,8 +16,10 @@
height:40px; box-sizing:border-box; font-size:14px; line-height:1; margin:0; height:40px; box-sizing:border-box; font-size:14px; line-height:1; margin:0;
} }
.frow select { min-width:0; width:100%; padding:0 30px 0 12px; background-position:right 10px center; } .frow select { min-width:0; width:100%; padding:0 30px 0 12px; background-position:right 10px center; }
.frow label.check { /* Under the line: the note of the chosen type, and the ufw switch below the button. */
display:inline-flex; align-items:center; gap:8px; height:40px; margin:0; .under { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; font-size:13px; }
.under label.check {
display:inline-flex; align-items:center; gap:8px; margin:0 0 0 auto; white-space:nowrap;
color:var(--text); font-size:14px; cursor:pointer; color:var(--text); font-size:14px; cursor:pointer;
} }
</style> </style>
@@ -97,15 +99,17 @@
<label>Метка</label> <label>Метка</label>
<input type="text" name="label" maxlength="80" placeholder="необязательно"> <input type="text" name="label" maxlength="80" placeholder="необязательно">
</div> </div>
<button type="submit">Создать</button>
</div>
<div class="under">
<span class="muted" id="note"></span>
{{if .UfwEnabled}} {{if .UfwEnabled}}
<label class="check" title="Порт не будет открыт в ufw, и при удалении правила в ufw ничего не изменится"> <label class="check" title="Порт не будет открыт в ufw, и при удалении правила в ufw ничего не изменится">
<input type="checkbox" name="no_ufw" value="1"> Без ufw <input type="checkbox" name="no_ufw" value="1"> Без ufw
</label> </label>
{{end}} {{end}}
<button type="submit">Создать</button>
</div> </div>
</form> </form>
<p class="muted" id="note" style="font-size:13px; margin-top:12px"></p>
</div> </div>
<div class="card"> <div class="card">