File: test_clearable_file_field.html

package info (click to toggle)
python-crispy-bootstrap5 2024.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 664 kB
  • sloc: python: 1,949; sh: 6; makefile: 3
file content (23 lines) | stat: -rw-r--r-- 1,051 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<form method="post" enctype="multipart/form-data">
    <div id="div_id_clearable_file" class="mb-3">
        <label for="id_clearable_file" class="form-label">Clearable file</label>
        <div class="input-group mb-2">
            <span class="input-group-text">Currently</span>
            <div class="form-control d-flex h-auto">
                <span class="text-break flex-grow-1">
                    <a href="something"></a>
                </span>
                <span class="align-self-center ml-2">
                    <span class="form-check">
                        <input type="checkbox" name="clearable_file-clear" id="clearable_file-clear_id"
                            class="form-check-input">
                        <label class="form-check-label mb-0" for="clearable_file-clear_id">Clear</label>
                    </span>
                </span>
            </div>
        </div>
        <div>
            <input type="file" name="clearable_file" class="form-control" id="id_clearable_file">
        </div>
    </div>
</form>