File size: 1,523 Bytes
1f2ba2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{% extends 'base.html' %}

{% block content %}
    <div class="container mt-5">
        <div class="card bg-dark text-white shadow">
            <div class="card-header">
                <h3>Create a New Vector Database</h3>
            </div>
            <div class="card-body">
                <form method="post" enctype="multipart/form-data">
                    <!-- Database Name Input -->
                    <div class="form-group">
                        <label for="db_name" class="form-label">Database Name</label>
                        <input type="text" id="db_name" name="db_name" class="form-control" placeholder="Enter database name" required>
                    </div>
                
                    <!-- Folder Upload Input -->
                    <div class="form-group mt-3">
                        <label for="folder" class="form-label">Upload Folder</label>
                        <input type="file" id="folder" name="folder" class="form-control" webkitdirectory directory multiple required>
                        <small class="text-muted">Note: Folder upload is supported only in Chrome and Edge browsers.</small>
                    </div>
                
                    <!-- Submit Button -->
                    <div class="mt-4 text-center">
                        <button type="submit" class="btn btn-primary px-5">Create</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
{% endblock %}