51 lines
2.3 KiB
HTML
51 lines
2.3 KiB
HTML
{{define "body"}}
|
|
|
|
<div class="container">
|
|
<h1>Upload a File</h1>
|
|
<form action="/upload" method="post" enctype="multipart/form-data" target="noframe" onsubmit="showContainer('form-container')">
|
|
<div class="upload-btn-wrapper">
|
|
<button class="btn">Upload a file</button>
|
|
<input type="file" name="myFile" accept=".zip, .exe, .msi" />
|
|
</div>
|
|
<input type="submit" value="Upload" />
|
|
</form>
|
|
<button type="button" onclick="showContainer('form-container')" >fubarus</button>
|
|
</div>
|
|
<div class="form-container" oncontextmenu="showContainer('form-container')" onclick="updateForm('/pkg')">
|
|
<form action="/ren", method="put" enctype="multipart/form-data" id="packageProperties">
|
|
<div class="form-group">
|
|
<label for="Vendor">Vendor</label>
|
|
<input type="text" id="Vendor" name="Vendor" onclick="updateForm('/pkg','Vendor')">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="Package">Package</label>
|
|
<input type="text" id="Package" name="Package" onclick="updateForm('/pkg','Package')">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="PackageVersion">PackageVersion</label>
|
|
<input type="text" id="PackageVersion" name="PackageVersion" onclick="updateForm('/pkg','PackageVersion')">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="InstallerType">InstallerType</label>
|
|
<input type="text" id="InstallerType" name="InstallerType" onclick="updateForm('/pkg','InstallerType')">
|
|
</div>
|
|
<fieldset>
|
|
<legend>Installers</legend>
|
|
<div class="form-group">
|
|
<label for="InstallerUrl">InstallerUrl</label>
|
|
<input type="url" id="InstallerUrl" name="InstallerUrl" onclick="updateForm('/pkg','InstallerUrl')">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="InstallerSha256">InstallerSha256</label>
|
|
<input type="text" id="InstallerSha256" name="InstallerSha256" onclick="updateForm('/pkg','InstallerSha256')">
|
|
</div>
|
|
</fieldset>
|
|
<div class="form-group">
|
|
<label for="Dependencies">Dependencies</label>
|
|
<input type="text" id="Dependencies" name="Dependencies">
|
|
</div>
|
|
<input type="submit" value="Submit">
|
|
</form>
|
|
</div>
|
|
<iframe name="noframe" style="display: none;"></iframe>
|
|
{{end}} |