(control) Improve sideload UX
The sideload forms didn't properly set the label 'for' property, meaning that while label tags existed, they weren't appropriately clickable. Also removed unnecessary limits on the sideload target being a directory for stackexchange and warc. It's been possible to directly load a particular file for a while, but not allowed due to GUI limits.
This commit is contained in:
parent
fab36d6e63
commit
8f91156d80
@ -12,7 +12,7 @@ for more information on how to set this up.
|
||||
<tr>
|
||||
<td><input {{#if directory}}disabled{{/if}} class="form-check-input" type="radio" name="source" id="{{name}}" value="{{name}}"></td>
|
||||
<td {{#if directory}}class="text-muted"{{/if}}>
|
||||
<label class="form-check-label" for="inlineRadio1">{{name}}{{#if directory}}/{{/if}}</label>
|
||||
<label class="form-check-label" for="{{name}}">{{name}}{{#if directory}}/{{/if}}</label>
|
||||
</td>
|
||||
<td>{{#unless directory}}{{size}}{{/unless}}</td>
|
||||
<td>{{lastModifiedTime}}</td>
|
||||
|
@ -22,7 +22,7 @@
|
||||
<tr>
|
||||
<td><input {{#if directory}}disabled{{/if}} class="form-check-input" type="radio" name="source" id="{{name}}" value="{{name}}"></td>
|
||||
<td {{#if directory}}class="text-muted"{{/if}}>
|
||||
<label class="form-check-label" for="inlineRadio1">{{name}}{{#if directory}}/{{/if}}</label>
|
||||
<label class="form-check-label" for="{{name}}">{{name}}{{#if directory}}/{{/if}}</label>
|
||||
</td>
|
||||
<td>{{#unless directory}}{{size}}{{/unless}}</td>
|
||||
<td>{{lastModifiedTime}}</td>
|
||||
|
@ -13,9 +13,9 @@ information how to do this.
|
||||
<th></th><th>Filename</th><th>Size</th><th>Last Modified</th>
|
||||
{{#each uploadDirContents.items}}
|
||||
<tr>
|
||||
<td><input {{#unless directory}}disabled{{/unless}} class="form-check-input" type="radio" name="source" id="{{name}}" value="{{name}}"></td>
|
||||
<td {{#unless directory}}class="text-muted"{{/unless}}>
|
||||
<label class="form-check-label" for="inlineRadio1">{{name}}{{#if directory}}/{{/if}}</label>
|
||||
<td><input class="form-check-input" type="radio" name="source" id="{{name}}" value="{{name}}"></td>
|
||||
<td>
|
||||
<label class="form-check-label" for="{{name}}">{{name}}{{#if directory}}/{{/if}}</label>
|
||||
</td>
|
||||
<td>{{#unless directory}}{{size}}{{/unless}}</td>
|
||||
<td>{{lastModifiedTime}}</td>
|
||||
|
@ -12,9 +12,9 @@ A warc export can be created using e.g. wget: <p>
|
||||
<th></th><th>Filename</th><th>Size</th><th>Last Modified</th>
|
||||
{{#each uploadDirContents.items}}
|
||||
<tr>
|
||||
<td><input {{#unless directory}}disabled{{/unless}} class="form-check-input" type="radio" name="source" id="{{name}}" value="{{name}}"></td>
|
||||
<td {{#unless directory}}class="text-muted"{{/unless}}>
|
||||
<label class="form-check-label" for="inlineRadio1">{{name}}{{#if directory}}/{{/if}}</label>
|
||||
<td><input class="form-check-input" type="radio" name="source" id="{{name}}" value="{{name}}"></td>
|
||||
<td>
|
||||
<label class="form-check-label" for="{{name}}">{{name}}{{#if directory}}/{{/if}}</label>
|
||||
</td>
|
||||
<td>{{#unless directory}}{{size}}{{/unless}}</td>
|
||||
<td>{{lastModifiedTime}}</td>
|
||||
|
Loading…
Reference in New Issue
Block a user