troggle-unchained/templates/renameform.html

48 lines
1.5 KiB
HTML
Raw Permalink Normal View History

2023-07-31 13:49:54 +01:00
{% extends "base.html" %}
{% block title %}File rename form{% endblock %}
{% block content %}
2023-07-31 20:00:46 +01:00
<h2>Renaming "{{filename}}"</h2>
2023-07-31 14:16:43 +01:00
<a href="/expofiles/{{filepath|urlencode}}">
2023-07-31 13:49:54 +01:00
<figure class=onleft>
<img src="/expofiles/{{filepath|urlencode}}" width=150px>
2023-07-31 14:16:43 +01:00
<figcaption>filesize: {{filesize}} bytes
</figcaption>
</figure></a>
2023-07-31 20:00:46 +01:00
{% if rename_bad %}
<p style="font-family: monospace; font-weight: bold; color: red; font-size: 130%; text-align: center">
Cannot rename to '{{rename_bad}}' as a file (or a subfolder) of that name already exists here.
</p>
{% endif %}
2023-07-31 13:49:54 +01:00
<div style = "max-width:95%; margin-left:8%; text-align: left; " >
2023-07-31 20:00:46 +01:00
2023-07-31 13:49:54 +01:00
<form method ='post' >
{% csrf_token %}
<br>
<input class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px "
label = "Rename to" name = "renameto" id="renameto"
pattern="[A-Za-z][A-Za-z0-9_-\.]*"/>
<label
style="padding: 0.5em 25px; margin-left: 110px"
2023-07-31 14:16:43 +01:00
for="renameto">type in the new name for this file<br></label>
2023-07-31 13:49:54 +01:00
<br><br><br>
<button class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px" type = "submit" value = "Upload" >
Rename it
</button>
</form>
<br /><br /><br />
2023-07-31 14:16:43 +01:00
Full urlencoded path for this file in expofiles is <a href="/expofiles/{{filepath|urlencode}}"><em>{{filepath|urlencode}}</em></a>
2023-07-31 13:49:54 +01:00
</div>
<br />
<hr />
{% endblock %}