fix upload styling
Cette révision appartient à :
Parent
5f110fe15e
révision
2f7f57e76e
1 fichiers modifiés avec 56 ajouts et 63 suppressions
|
@ -4,25 +4,23 @@
|
|||
{{with .Upload}}
|
||||
<hr>
|
||||
<form role="upload" method="POST">
|
||||
<table class="table table-borderless">
|
||||
<tr>
|
||||
<td>
|
||||
<div class="col-xs-6">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="torrent">Torrent file upload</label>
|
||||
<input type="file" id="torrent">
|
||||
<p class="help-block">Upload a torrent file to pre-fill information</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name">FileName</label>
|
||||
<input type="text" name="name" class="form-control"placeholder="File Name" value="{{.Name}}" required>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="col-xs-8">
|
||||
<div class="form-group">
|
||||
<label for="Magnet">Magnet Link</label>
|
||||
<input type="text" name="magnet" class="form-control"
|
||||
style="width:60rem" placeholder="Magnet Link" value="{{.Magnet}}" required>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="col-xs-4">
|
||||
<div class="form-group">
|
||||
<label for="c">Category</label>
|
||||
<select name="c" class="form-control input-sm">
|
||||
<option value="3_" {{if eq .Category "3_"}}selected{{end}}>Anime</option>
|
||||
<option value="3_12" {{if eq .Category "3_12"}}selected{{end}}>Anime - Anime Music Video</option>
|
||||
|
@ -48,22 +46,17 @@
|
|||
<option value="1_1" {{if eq .Category "1_1"}}selected{{end}}>Software - Applications</option>
|
||||
<option value="1_2" {{if eq .Category "1_2"}}selected{{end}}>Software - Games</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="col-xs-7">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="desc">Torrent Description</label>
|
||||
<textarea name="desc" class="form-control" rows="10">{{.Description}}</textarea>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<button type="submit" class="btn">Upload!</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<button type="submit" class="btn btn-success">Upload</button>
|
||||
<br />
|
||||
<br />
|
||||
</form>
|
||||
{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
|
|
Référencer dans un nouveau ticket