64 lines
No EOL
2.6 KiB
HTML
64 lines
No EOL
2.6 KiB
HTML
{{define "title"}}
|
|
GoWatch Create
|
|
{{end}}
|
|
|
|
{{define "head"}}
|
|
<script src="/static/create.js"></script>
|
|
{{ end }}
|
|
|
|
{{define "content"}}
|
|
|
|
<form action="/watch/create" enctype="multipart/form-data" method="POST">
|
|
<div class="container">
|
|
<div class="row g-3 justify-content-center">
|
|
<div class="col-auto">
|
|
<div class="form-floating">
|
|
<input type="text" class="form-control form-control-lg" width="20" id="watch_name" name="watch_name" placeholder="Watch Name">
|
|
<label for="watch_name">Watch Name</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-auto">
|
|
<span id="submitInline" class="form-text">
|
|
<button class="btn btn-primary btn-lg">Create</button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="row justify-content-center mt-5">
|
|
<div class="row h3 justify-content-center">With Watch Template:</div>
|
|
<div class="col-2"> </div>
|
|
<div class="col-4">
|
|
{{ range $i, $name := .templates }}
|
|
<div class="form-check d-flex my-2">
|
|
{{ if eq $i 0 }}
|
|
<input class="form-check-input" type="radio" name="template" value="{{ $i }}" id="template_{{ $i }}" checked>
|
|
{{ else }}
|
|
<input class="form-check-input" type="radio" name="template" value="{{ $i }}" id="template_{{ $i }}">
|
|
{{ end }}
|
|
<label class="form-check-label h5 mx-3 flex-fill" for="template_{{ $i }}">
|
|
{{ $name }}
|
|
</label>
|
|
</div>
|
|
{{ end }}
|
|
<div class="form-check d-flex my-2">
|
|
<div>
|
|
<input class="form-check-input" type="radio" id="urlRadio" name="template" value="-1">
|
|
</div>
|
|
<div class="form-check-label mx-2 flex-fill">
|
|
<input type="text" class="form-control" id="url" name="url" size="15" placeholder="From URL">
|
|
</div>
|
|
</div>
|
|
<div class="form-check d-flex my-2">
|
|
<div>
|
|
<input class="form-check-input" type="radio" id="fileRadio" name="template" value="-2">
|
|
</div>
|
|
<div class="form-check-label mx-2 flex-fill">
|
|
<input class="form-control" type="file" id="file" name="file">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-2"> </div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
{{end}} |