delete not use files

This commit is contained in:
2026-01-06 16:04:19 +05:30
parent 91b7932a2f
commit f49935d706
3 changed files with 0 additions and 122 deletions

View File

@@ -1,13 +0,0 @@
import React from 'react';
import FormPage from './components/FormPage';
function App() {
return (
<div>
<h2>Income Tax Entry Form</h2>
<FormPage table="cit" />
</div>
);
}
export default App;

View File

@@ -1,50 +0,0 @@
import React, { useState } from 'react';
import axios from 'axios';
const FormPage = ({ table }) => {
const [formData, setFormData] = useState({
gross_total_income: '',
net_taxable_income: '',
tax_payable: '',
total_tax_payable: '',
refund: ''
});
const handleChange = e => {
setFormData({ ...formData, [e.target.name]: e.target.value });
};
const handleSubmit = async e => {
e.preventDefault();
await axios.post(`http://localhost:5000/add/${table}`, formData);
alert('Entry saved');
setFormData({
gross_total_income: '',
net_taxable_income: '',
tax_payable: '',
total_tax_payable: '',
refund: ''
});
};
return (
<form onSubmit={handleSubmit}>
{Object.keys(formData).map(key => (
<div key={key}>
<label>{key.replaceAll('_', ' ')}:</label>
<input
type="number"
step="0.01"
name={key}
value={formData[key]}
onChange={handleChange}
required
/>
</div>
))}
<button type="submit">Save</button>
</form>
);
};
export default FormPage;

View File

@@ -1,59 +0,0 @@
<!-- templates/welcome.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Welcome - Laxmi Civil Engineering Pvt. Ltd</title>
<link rel="stylesheet" href="{{ url_for('static', filename='index.css') }}">
<style>
body {
background-color: #e8f0fe;
font-family: Arial, sans-serif;
text-align: center;
padding: 100px;
}
.logo {
width: 100px;
height: 100px;
}
h1 {
color: #333;
margin-top: 20px;
}
p {
font-size: 18px;
margin: 20px 0;
}
.enter-btn {
background-color: #007BFF;
color: white;
padding: 12px 25px;
font-size: 18px;
border: none;
border-radius: 6px;
cursor: pointer;
text-decoration: none;
}
.enter-btn:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<img src="https://tse1.mm.bing.net/th/id/OIP.fc5NZer25Y3YeS3Fd0PO9gAAAA?pid=Api&rs=1&c=1&qlt=95&w=92&h=92"
class="logo" alt="Company Logo">
<h1>Welcome to Laxmi Civil Engineering Pvt. Ltd</h1>
<p>Income Tax Filing and Compliance</p>
<a href="{{ url_for('index') }}" class="enter-btn">Go To Dashboard</a>
</body>
</html>