shashidharak99 commited on
Commit
af2ea4b
·
verified ·
1 Parent(s): b45c921

Create templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +35 -0
templates/index.html ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>File Storage App</title>
5
+ </head>
6
+
7
+ <body>
8
+
9
+ <h2>File Read Write Append App</h2>
10
+
11
+ <form action="/operate" method="post">
12
+
13
+ <label>Enter Text</label><br>
14
+ <input type="text" name="text" required>
15
+ <br><br>
16
+
17
+ <label>Select Operation</label><br>
18
+
19
+ <select name="operation">
20
+ <option value="write">Write (Overwrite)</option>
21
+ <option value="append">Append</option>
22
+ <option value="read">Read</option>
23
+ </select>
24
+
25
+ <br><br>
26
+
27
+ <button type="submit">Submit</button>
28
+
29
+ </form>
30
+
31
+ <h3>Result</h3>
32
+ <p>{{ result }}</p>
33
+
34
+ </body>
35
+ </html>