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>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
{/* Input fields for advanced install settings */}
|
||||
{/* Example for hostname */}
|
||||
<div>
|
||||
<label htmlFor="hostname">Hostname:</label>
|
||||
{Object.entries(installOptions).map(([key, value]) => (
|
||||
<div key={key}>
|
||||
<label htmlFor={key}>{key.replace(/([A-Z])/g, ' $1').toUpperCase()}:</label>
|
||||
<input
|
||||
type="text"
|
||||
id="hostname"
|
||||
name="hostname"
|
||||
value={installOptions.hostname}
|
||||
type={typeof value === "boolean" ? "checkbox" : "text"}
|
||||
id={key}
|
||||
name={key}
|
||||
checked={typeof value === "boolean" ? value : undefined}
|
||||
value={typeof value === "boolean" ? undefined : value}
|
||||
onChange={handleInputChange}
|
||||
/>
|
||||
</div>
|
||||
{/* Repeat similar structure for other options */}
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user