mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-09 16:25:15 +03:00
37 lines
1.6 KiB
HTML
37 lines
1.6 KiB
HTML
{{template "base" .}}
|
|
|
|
{{define "title"}}{{.Title}}{{end}}
|
|
|
|
{{define "page_body"}}
|
|
<div class="card shadow mb-4">
|
|
<div class="card-header py-3">
|
|
<h6 class="m-0 font-weight-bold text-primary">Add a new folder</h6>
|
|
</div>
|
|
<div class="card-body">
|
|
{{if .Error}}
|
|
<div class="card mb-4 border-left-warning">
|
|
<div class="card-body text-form-error">{{.Error}}</div>
|
|
</div>
|
|
{{end}}
|
|
<form id="folder_form" action="{{.CurrentURL}}" method="POST" autocomplete="off">
|
|
<div class="form-group row">
|
|
<label for="idFolderName" class="col-sm-2 col-form-label">Name</label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" id="idFolderName" name="name" placeholder=""
|
|
value="{{.Folder.Name}}" maxlength="255" autocomplete="nope" required {{if ge .Mode 2}}readonly{{end}}>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="idMappedPath" class="col-sm-2 col-form-label">Absolute Path</label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" id="idMappedPath" name="mapped_path" placeholder=""
|
|
value="{{.Folder.MappedPath}}" maxlength="512" autocomplete="nope" required>
|
|
</div>
|
|
</div>
|
|
|
|
<input type="hidden" name="_form_token" value="{{.CSRFToken}}">
|
|
<button type="submit" class="btn btn-primary float-right mt-3 px-5 px-3">Submit</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{{end}} |