Update HTML to use templating

This commit is contained in:
raul 2024-05-24 10:22:33 +02:00
parent b2a38027b8
commit be0ea779cc
1 changed files with 10 additions and 10 deletions

View File

@ -22,43 +22,43 @@
<h1>Certificate Requester</h1> <h1>Certificate Requester</h1>
<form id='form' hx-encoding='multipart/form-data' hx-post='/api/upload'> <form id='form' hx-encoding='multipart/form-data' hx-post='/api/upload'>
Serial Number: Serial Number:
<input type="text" name="formSerNum" value="30128"> <input type="text" name="formSerNum" value="{{ .default_serial_number }}">
<br> <br>
Organization: Organization:
<input type="text" name="formOrg" value="Empresa SL"> <input type="text" name="formOrg" value="{{ .default_organization }}">
<br> <br>
Country: Country:
<input type="text" name="formCountry" value="ES"> <input type="text" name="formCountry" value="{{ .default_country }}">
<br> <br>
Province: Province:
<input type="text" name="formProv" value="Valencia"> <input type="text" name="formProv" value="{{ .default_province }}">
<br> <br>
Locality: Locality:
<input type="text" name="formLocal" value="Valencia"> <input type="text" name="formLocal" value="{{ .default_locality }}">
<br> <br>
Street Address: Street Address:
<input type="text" name="formStreet" value="C/Falsa 123"> <input type="text" name="formStreet" value="{{ .default_street_address }}">
<br> <br>
Postal code: Postal code:
<input type="text" name="formPostal" value="46212"> <input type="text" name="formPostal" value="{{ .default_postal_code }}">
<br> <br>
# of years before expiring: # of years before expiring:
<input type="text" name="formAge" value="10"> <input type="text" name="formAge" value="{{ .default_not_after }}">
<br> <br>
Certificate Bitsize: Certificate Bitsize:
<input type="text" name="formBit" value="3072"> <input type="text" name="formBit" value="{{ .default_rsa_bitsize }}">
<br> <br>
DNS name: DNS name:
<input type="text" name="formDNS" value="www.example.com"> <input type="text" name="formDNS" value="{{ .default_dns_name }}">
<br> <br>
<button id="but"> <button id="but">