-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (83 loc) · 4.87 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSV Mapping Tool for Sage Intacct</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div class="bg-white shadow-md rounded-lg p-6">
<div class="text-center mb-8">
<h1 class="text-3xl font-bold">CSV Mapping Tool for Sage Intacct</h1>
<p class="subtitle text-lg">Save time and reduce errors by automating the mapping process.</p>
</div>
<div class="mb-8">
<h2 class="text-2xl font-bold mb-4">How It Works</h2>
<ol class="space-y-4">
<li>
<span class="number-circle">1</span>
<strong class="text-lg">Upload Your Files:</strong>
<ul class="list-disc list-inside ml-6 mt-2">
<li>First, upload your data CSV.</li>
<li>Then, upload your Intacct Template CSV.</li>
</ul>
</li>
<li>
<span class="number-circle">2</span>
<strong class="text-lg">Preview and Map:</strong>
<ul class="list-disc list-inside ml-6 mt-2">
<li>Match the data fields from your file to the Intacct format.</li>
<li>Review the mappings before finalizing.</li>
</ul>
</li>
</ol>
</div>
<div class="mb-8">
<h2 class="text-2xl font-bold mb-4">Upload CSV Files</h2>
<form id="uploadForm" class="space-y-4">
<div class="file-input">
<label for="dataFile" class="block font-bold mb-2">Data CSV:</label>
<div class="flex items-center border border-gray-300 rounded-md">
<input type="file" id="dataFile" name="dataFile" accept=".csv" required class="hidden">
<label for="dataFile" class="file-input-label">
Choose File
</label>
<span id="dataFileName" class="file-name flex-grow px-3">No file chosen</span>
<button type="button" class="copy-btn p-2" aria-label="Copy">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"></path>
</svg>
</button>
</div>
</div>
<div class="file-input">
<label for="templateFile" class="block font-bold mb-2">Intacct Template CSV:</label>
<div class="flex items-center border border-gray-300 rounded-md">
<input type="file" id="templateFile" name="templateFile" accept=".csv" required class="hidden">
<label for="templateFile" class="file-input-label">
Choose File
</label>
<span id="templateFileName" class="file-name flex-grow px-3">No file chosen</span>
<button type="button" class="copy-btn p-2" aria-label="Copy">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"></path>
</svg>
</button>
</div>
</div>
<button type="submit" class="btn btn-black">
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"></path>
</svg>
Upload and Preview
</button>
</form>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>