From: Thomas Karpiniec <tom.karpiniec@outlook.com> Date: Mon, 11 Nov 2024 02:46:52 +0000 (+1100) Subject: Make headings consistent in UI X-Git-Url: https://code.octet-stream.net/broadcaster/commitdiff_plain?ds=sidebyside Make headings consistent in UI --- diff --git a/server/templates/playlist.html b/server/templates/playlist.html index 4493c60..4917a30 100644 --- a/server/templates/playlist.html +++ b/server/templates/playlist.html @@ -13,14 +13,13 @@ } </script> - <h1>A specific playlist</h1> - <h2> + <h1> {{if .Playlist.Id}} Edit Playlist {{else}} Create New Playlist {{end}} - </h2> + </h1> <form action="/playlists/submit" method="POST"> <input type="hidden" name="playlistId" value="{{.Playlist.Id}}"> <p> diff --git a/server/templates/radio.html b/server/templates/radio.html index c2ec9dd..40ebab2 100644 --- a/server/templates/radio.html +++ b/server/templates/radio.html @@ -1,12 +1,11 @@ - <h1>A specific radio</h1> - <h2> + <h1> {{if .Radio.Id}} Edit Radio {{else}} Register New Radio {{end}} - </h2> + </h1> <form action="/radios/submit" method="POST"> <input type="hidden" name="radioId" value="{{.Radio.Id}}"> <p> diff --git a/server/templates/user.html b/server/templates/user.html index 1118bb6..444a110 100644 --- a/server/templates/user.html +++ b/server/templates/user.html @@ -1,11 +1,11 @@ - <h2> + <h1> {{if .User.Id}} Edit User {{else}} Add New User {{end}} - </h2> + </h1> <form action="/users/submit" method="POST"> <input type="hidden" name="userId" value="{{.User.Id}}"> <p>