diff options
| author | Frederick Muriuki Muriithi | 2025-12-17 12:45:25 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2025-12-17 12:45:25 -0600 |
| commit | cfa2de85debe16a5eb062cca1cf02b9e1e0a2ba6 (patch) | |
| tree | fd63e95b86f14aebaf4c65f96e7720270d00517d /uploader/templates/samples/upload-samples.html | |
| parent | ecdc6dbd73cd7aeb83eeb866378ef42cd8979131 (diff) | |
| download | gn-uploader-cfa2de85debe16a5eb062cca1cf02b9e1e0a2ba6.tar.gz | |
Avoid colons in HTML attribute values
Colons are used as part of the CSS selectors, so having them in the attribute values leads to problems selecting and styling the elements.
Diffstat (limited to 'uploader/templates/samples/upload-samples.html')
| -rw-r--r-- | uploader/templates/samples/upload-samples.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/uploader/templates/samples/upload-samples.html b/uploader/templates/samples/upload-samples.html index 6422094..4aa2f7f 100644 --- a/uploader/templates/samples/upload-samples.html +++ b/uploader/templates/samples/upload-samples.html @@ -65,14 +65,14 @@ <div class="form-group"> <label for="file-samples" class="form-label">select file</label> - <input type="file" name="samples_file" id="file:samples" + <input type="file" name="samples_file" id="file-samples" accept="text/csv, text/tab-separated-values, text/plain" class="form-control" /> </div> <div class="form-group"> - <label for="select:separator" class="form-label">field separator</label> - <select id="select:separator" + <label for="select-separator" class="form-label">field separator</label> + <select id="select-separator" name="separator" required="required" class="form-control"> @@ -83,7 +83,7 @@ <option value=";">Semicolon</option> <option value="other">Other</option> </select> - <input id="txt:separator" + <input id="txt-separator" type="text" name="other_separator" class="form-control" /> @@ -95,11 +95,11 @@ </div> <div class="form-group form-check"> - <input id="chk:heading" + <input id="chk-heading" type="checkbox" name="first_line_heading" class="form-check-input" /> - <label for="chk:heading" class="form-check-label"> + <label for="chk-heading" class="form-check-label"> first line is a heading?</label> <small class="form-text text-muted"> Select this if the first line in your file contains headings for the @@ -108,8 +108,8 @@ </div> <div class="form-group"> - <label for="txt:delimiter" class="form-label">field delimiter</label> - <input id="txt:delimiter" + <label for="txt-delimiter" class="form-label">field delimiter</label> + <input id="txt-delimiter" type="text" name="field_delimiter" maxlength="1" |
