Add form fields and CA cert link

This commit is contained in:
raul 2024-05-23 09:35:33 +02:00
parent df86078ee0
commit 9cf8ab5aa8
2 changed files with 50 additions and 16 deletions

View File

@ -2,6 +2,10 @@
font-family: arial; font-family: arial;
} }
input {
margin-bottom: 10px;
}
#but { #but {
background-color: #eee; background-color: #eee;
border: 2px black solid; border: 2px black solid;
@ -21,6 +25,7 @@ img {
button { button {
background-color: #eee; background-color: #eee;
border: 2px black solid; border: 2px black solid;
margin-bottom: 10px;
} }
#but:hover { #but:hover {

View File

@ -9,33 +9,62 @@
<link href="css/style.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet">
</head> </head>
<!-- Licensed under the GPL v3.0 -->
<body> <body>
<p>Hello {{ .UserAgent }}!</p> <p>Hello {{ .UserAgent }}!</p>
<div class="container"> <div class="container">
<div id="main"> <div id="main">
<h1>Raul's file uploader</h1> <b>
<p align="center"><a href="cacert">Download CA certificate</a></p>
</b>
<h1>Certificate requester</h1>
<!-- <h3>Find the source <a href="https://git.bulgariu.xyz/raul/uploader" target="_blank">here!</a></h3> --> <!-- <h3>Find the source <a href="https://git.bulgariu.xyz/raul/uploader" target="_blank">here!</a></h3> -->
<form id='form' hx-encoding='multipart/form-data' hx-post='/api/upload'> <form id='form' hx-encoding='multipart/form-data' hx-post='/api/upload'>
<input type="text" name="domain" value=""> Serial Number:
<input type="text" name="formSerNum" value="2024">
<br> <br>
Organization:
<input type="text" name="formOrg" value="Empresa SL">
<br> <br>
Country:
<input type="text" name="formCountry" value="ES">
<br>
Province:
<input type="text" name="formProv" value="Valencia">
<br>
Locality:
<input type="text" name="formLocal" value="Valencia">
<br>
Street Address:
<input type="text" name="formStreet" value="C/Falsa 123">
<br>
Postal code:
<input type="text" name="formPostal" value="46212">
<br>
# of years before expiring:
<input type="text" name="formAge" value="10">
<br>
Certificate Bitsize:
<input type="text" name="formBit" value="3072">
<br>
DNS name:
<input type="text" name="formDNS" value="www.example.com">
<br>
<button id="but"> <button id="but">
Upload Request
</button> </button>
<!-- <progress id="progress" value="0" max="100">Upload progress:</progress> -->
</form> </form>
<!-- <script> -->
<!-- htmx.on('#form', 'htmx:xhr:progress', function (evt) { -->
<!-- htmx.find('#progress').setAttribute('value', evt.detail.loaded / evt.detail.total * 100) -->
<!-- }); -->
<!-- </script> -->
<!-- <p class="centered"> -->
<!-- </p> -->
<!-- <footer> -->
<!-- Licensed under the GPL v3.0 -->
<!-- </footer> -->
</div> </div>
</div> </div>