gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
recreate below page <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" />…
- User
recreate below page
code - Assistant
recreate below page
<div class="form-section">
<h2>Taxpayer Info</h2>
<label for="gstin">GSTIN</label>
<input type="text" id="gstin" name="gstin" placeholder="Enter GSTIN" />
<label for="legalName">Legal Name</label>
<input type="text" id="legalName" name="legalName" placeholder="Enter Legal Name" />
<label for="tradeName">Trade Name</label>
<input type="text" id="tradeName" name="tradeName" placeholder="Enter Trade Name" />
<label for="constitution">Constitution</label>
<input type="text" id="constitution" name="constitution" placeholder="Enter Constitution" />
<label for="type">Type</label>
<input type="text" id="type" name="type" placeholder="Enter Type" />
<label for="status">Status</label>
<input type="text" id="status" name="status" placeholder="Enter Status" />
<label for="businessNature">Business Nature</label>
<input type="text" id="businessNature" name="businessNature" placeholder="Enter Business Nature" />
<h3>Address</h3>
<div class="address-group">
<div>
<label for="buildingName">Building Name</label>
<input type="text" id="buildingName" name="buildingName" placeholder="Enter Building Name" />
</div>
<div>
<label for="street">Street</label>
<input type="text" id="street" name="street" placeholder="Enter Street" />
</div>
<div>
<label for="location">Location</label>
<input type="text" id="location" name="location" placeholder="Enter Location" />
</div>
<div>
<label for="buildingNo">Building No</label>
<input type="text" id="buildingNo" name="buildingNo" placeholder="Enter Building No" />
</div>
<div>
<label for="stateCode">State Code</label>
<input type="text" id="stateCode" name="stateCode" placeholder="Enter State Code" />
</div>
<div>
<label for="district">District</label>
<input type="text" id="district" name="district" placeholder="Enter District" />
</div>
<div>
<label for="pincode">Pincode</label>
<input type="text" id="pincode" name="pincode" placeholder="Enter Pincode" />
</div>
</div>
</div>
<div class="form-section">
<h2>Contact Details</h2>
<label for="contactName">Contact Name</label>
<input type="text" id="contactName" name="contactName" placeholder="Enter Contact Name" />
<label for="contactEmail">Contact Email</label>
<input type="email" id="contactEmail" name="contactEmail" placeholder="Enter Contact Email" />
<label for="contactPhone">Contact Phone</label>
<input type="text" id="contactPhone" name="contactPhone" placeholder="Enter Contact Phone" />
</div>
<div class="form-section">
<h2>Bank Details</h2>
<label for="bankName">Bank Name</label>
<input type="text" id="bankName" name="bankName" placeholder="Enter Bank Name" />
<label for="accountNumber">Account Number</label>
<input type="text" id="accountNumber" name="accountNumber" placeholder="Enter Account Number" />
<label for="ifscCode">IFSC Code</label>
<input type="text" id="ifscCode" name="ifscCode" placeholder="Enter IFSC Code" />
<label for="branch">Branch</label>
<input type="text" id="branch" name="branch" placeholder="Enter Branch" />
</div>
<button type="submit">Create Ledger</button>
</form>
<script>
document.getElementById('ledgerForm').addEventListener('submit', function(event) {
event.preventDefault();
const formData = {
ledgerType: document.getElementById('ledgerType').value,
gstin: document.getElementById('gstin').value.trim(),
legalName: document.getElementById('legalName').value.trim(),
tradeName: document.getElementById('tradeName').value.trim(),
constitution: document.getElementById('constitution').value.trim(),
type: document.getElementById('type').value.trim(),
status: document.getElementById('status').value.trim(),
businessNature: document.getElementById('businessNature').value.trim(),
address: {
buildingName: document.getElementById('buildingName').value.trim(),
street: document.getElementById('street').value.trim(),
location: document.getElementById('location').value.trim(),
buildingNo: document.getElementById('buildingNo').value.trim(),
stateCode: document.getElementById('stateCode').value.trim(),
district: document.getElementById('district').value.trim(),
pincode: document.getElementById('pincode').value.trim()
},
contactDetails: {
contactName: document.getElementById('contactName').value.trim(),
contactEmail: document.getElementById('contactEmail').value.trim(),
contactPhone: document.getElementById('contactPhone').value.trim()
},
bankDetails: {
bankName: document.getElementById('bankName').value.trim(),
accountNumber: document.getElementById('accountNumber').value.trim(),
ifscCode: document.getElementById('ifscCode').value.trim(),
branch: document.getElementById('branch').value.trim()
}
};
if (!formData.ledgerType) {
alert('Please select a ledger type.');
return;
}
alert('Ledger Created with the following details:\\n' + JSON.stringify(formData, null, 2));
// Here you can add code to send data to backend or save it as needed
this.reset();
});
</script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Create Ledger</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px auto;
background-color: #f4f4f4;
max-width: 800px;
padding: 20px;
}
h1 {
color: #333;
text-align: center;
margin-bottom: 30px;
}
form {
background: #fff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
label {
display: block;
margin-top: 15px;
font-weight: 600;
color: #444;
}
select, input[type="text"], input[type="email"], textarea {
width: 100%;
padding: 10px 12px;
margin-top: 6px;
border-radius: 6px;
border: 1px solid #bbb;
box-sizing: border-box;
font-size: 15px;
transition: border-color 0.3s ease;
}
select:focus, input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
border-color: #007bff;
outline: none;
}
.form-section {
margin-bottom: 30px;
border-bottom: 1px solid #ddd;
padding-bottom: 20px;
}
.form-section:last-child {
border-bottom: none;
}
.form-section h2, .form-section h3 {
margin-top: 0;
color: #222;
}
.address-group {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
}
.address-group label {
margin-top: 10px;
}
button {
margin-top: 25px;
background-color: #007bff;
color: white;
border: none;
padding: 12px 20px;
border-radius: 6px;
cursor: pointer;
font-size: 18px;
width: 100%;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #0056b3;
}
@media (max-width: 600px) {
.address-group {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<h1>Create Ledger</h1>
<form id="ledgerForm">
<label for="ledgerType">Ledger Type</label>
<select id="ledgerType" name="ledgerType" required>
<option value="" disabled selected>Select an option</option>
<option value="Business">Business</option>
<option value="Customer">Customer</option>
<option value="Supplier">Supplier</option>
<option value="Others">Others</option>
</select>
<div class="form-section">
<h2>Taxpayer Info</h2>
<label for="gstin">GSTIN</label>
<input type="text" id="gstin" name="gstin" placeholder="Enter GSTIN" />
<label for="legalName">Legal Name</label>
<input type="text" id="legalName" name="legalName" placeholder="Enter Legal Name" />
<label for="tradeName">Trade Name</label>
<input type="text" id="tradeName" name="tradeName" placeholder="Enter Trade Name" />
<label for="constitution">Constitution</label>
<input type="text" id="constitution" name="constitution" placeholder="Enter Constitution" />
<label for="type">Type</label>
<input type="text" id="type" name="type" placeholder="Enter Type" />
<label for="status">Status</label>
<input type="text" id="status" name="status" placeholder="Enter Status" />
<label for="businessNature">Business Nature</label>
<input type="text" id="businessNature" name="businessNature" placeholder="Enter Business Nature" />
<h3>Address</h3>
<div class="address-group">
<div>
<label for="buildingName">Building Name</label>
<input type="text" id="buildingName" name="buildingName" placeholder="Enter Building Name" />
</div>
<div>
<label for="street">Street</label>
<input type="text" id="street" name="street" placeholder="Enter Street" />
</div>
<div>
<label for="location">Location</label>
<input type="text" id="location" name="location" placeholder="Enter Location" />
</div>
<div>
<label for="buildingNo">Building No</label>
<input type="text" id="buildingNo" name="buildingNo" placeholder="Enter Building No" />
</div>
<div>
<label for="stateCode">State Code</label>
<input type="text" id="stateCode" name="stateCode" placeholder="Enter State Code" />
</div>
<div>
<label for="district">District</label>
<input type="text" id="district" name="district" placeholder="Enter District" />
</div>
<div>
<label for="pincode">Pincode</label>
<input type="text" id="pincode" name="pincode" placeholder="Enter Pincode" />
</div>
</div>
</div>
<div class="form-section">
<h2>Contact Details</h2>
<label for="contactName">Contact Name</label>
<input type="text" id="contactName" name="contactName" placeholder="Enter Contact Name" />
<label for="contactEmail">Contact Email</label>
<input type="email" id="contactEmail" name="contactEmail" placeholder="Enter Contact Email" />
<label for="contactPhone">Contact Phone</label>
<input type="text" id="contactPhone" name="contactPhone" placeholder="Enter Contact Phone" />
</div>
<div class="form-section">
<h2>Bank Details</h2>
<label for="bankName">Bank Name</label>
<input type="text" id="bankName" name="bankName" placeholder="Enter Bank Name" />
<label for="accountNumber">Account Number</label>
<input type="text" id="accountNumber" name="accountNumber" placeholder="Enter Account Number" />
<label for="ifscCode">IFSC Code</label>
<input type="text" id="ifscCode" name="ifscCode" placeholder="Enter IFSC Code" />
<label for="branch">Branch</label>
<input type="text" id="branch" name="branch" placeholder="Enter Branch" />
</div>
<button type="submit">Create Ledger</button>
</form>
<script>
document.getElementById('ledgerForm').addEventListener('submit', function(event) {
event.preventDefault();
const formData = {
ledgerType: document.getElementById('ledgerType').value,
gstin: document.getElementById('gstin').value.trim(),
legalName: document.getElementById('legalName').value.trim(),
tradeName: document.getElementById('tradeName').value.trim(),
constitution: document.getElementById('constitution').value.trim(),
type: document.getElementById('type').value.trim(),
status: document.getElementById('status').value.trim(),
businessNature: document.getElementById('businessNature').value.trim(),
address: {
buildingName: document.getElementById('buildingName').value.trim(),
street: document.getElementById('street').value.trim(),
location: document.getElementById('location').value.trim(),
buildingNo: document.getElementById('buildingNo').value.trim(),
stateCode: document.getElementById('stateCode').value.trim(),
district: document.getElementById('district').value.trim(),
pincode: document.getElementById('pincode').value.trim()
},
contactDetails: {
contactName: document.getElementById('contactName').value.trim(),
contactEmail: document.getElementById('contactEmail').value.trim(),
contactPhone: document.getElementById('contactPhone').value.trim()
},
bankDetails: {
bankName: document.getElementById('bankName').value.trim(),
accountNumber: document.getElementById('accountNumber').value.trim(),
ifscCode: document.getElementById('ifscCode').value.trim(),
branch: document.getElementById('branch').value.trim()
}
};
if (!formData.ledgerType) {
alert('Please select a ledger type.');
return;
}
alert('Ledger Created with the following details:\n' + JSON.stringify(formData, null, 2));
// Optionally send data to backend here
this.reset();
});
</script>
</body>
</html>
Not yet included in a published release.