forked from expo/troggle
hack wallet scan rename job
This commit is contained in:
38
templates/renameform.html
Normal file
38
templates/renameform.html
Normal file
@@ -0,0 +1,38 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}File rename form{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h2>Rename "{{filename}}"</h2>
|
||||
<figure class=onleft>
|
||||
<img src="/expofiles/{{filepath|urlencode}}" width=150px>
|
||||
</figure>
|
||||
<div style = "max-width:95%; margin-left:8%; text-align: left; " >
|
||||
<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"
|
||||
for="renameto">the new name for this file<br></label>
|
||||
<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 />
|
||||
Full urlencoded path for this file <a href="/expofiles/{{filepath|urlencode}}"><em>{{filepath|urlencode}}</em></a>
|
||||
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<hr />
|
||||
|
||||
|
||||
{% endblock %}
|
||||
@@ -72,7 +72,7 @@
|
||||
{% if not create %}
|
||||
<p>
|
||||
{% for f in files %}
|
||||
<a href="/expofiles/surveyscans/{{year}}/{{wallet|urlencode}}/{{f}}">{{ f}}</a><br />
|
||||
<a href="/expofilerename/surveyscans/{{year}}/{{wallet|urlencode}}/{{f}}">»</a> <a href="/expofiles/surveyscans/{{year}}/{{wallet|urlencode}}/{{f}}">{{ f}}</a><br />
|
||||
{% empty %}
|
||||
<p><No files in this wallet. >
|
||||
|
||||
|
||||
Reference in New Issue
Block a user