mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update index.tsx
This commit is contained in:
parent
56c566c3d6
commit
f4a96e2310
@ -70,18 +70,19 @@ const Install: React.FC = () => {
|
|||||||
<h2>Advanced Install Settings:</h2>
|
<h2>Advanced Install Settings:</h2>
|
||||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||||
{/* Input fields for advanced install settings */}
|
{/* Input fields for advanced install settings */}
|
||||||
{/* Example for hostname */}
|
{Object.entries(installOptions).map(([key, value]) => (
|
||||||
<div>
|
<div key={key}>
|
||||||
<label htmlFor="hostname">Hostname:</label>
|
<label htmlFor={key}>{key.replace(/([A-Z])/g, ' $1').toUpperCase()}:</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type={typeof value === "boolean" ? "checkbox" : "text"}
|
||||||
id="hostname"
|
id={key}
|
||||||
name="hostname"
|
name={key}
|
||||||
value={installOptions.hostname}
|
checked={typeof value === "boolean" ? value : undefined}
|
||||||
|
value={typeof value === "boolean" ? undefined : value}
|
||||||
onChange={handleInputChange}
|
onChange={handleInputChange}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{/* Repeat similar structure for other options */}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user