diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-09-14 14:15:16 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-09-14 14:15:16 +0300 |
commit | db3d1ff4ef924ae104de53a533dc5a02d4069ea7 (patch) | |
tree | cf5f051526bbbf3e8aa52113bd5a0a11171aba9b /templates/renameform.html | |
parent | 1085a14b92c395cd87e8c5fc3fa420b302f3ab73 (diff) | |
download | troggle-db3d1ff4ef924ae104de53a533dc5a02d4069ea7.tar.gz troggle-db3d1ff4ef924ae104de53a533dc5a02d4069ea7.tar.bz2 troggle-db3d1ff4ef924ae104de53a533dc5a02d4069ea7.zip |
ROTATE image option
Diffstat (limited to 'templates/renameform.html')
-rw-r--r-- | templates/renameform.html | 37 |
1 files changed, 30 insertions, 7 deletions
diff --git a/templates/renameform.html b/templates/renameform.html index aae489b..1217968 100644 --- a/templates/renameform.html +++ b/templates/renameform.html @@ -1,10 +1,10 @@ {% extends "base.html" %} -{% block title %}File rename form{% endblock %} +{% block title %}File rename or rotate form{% endblock %} {% block content %} -<h2>Renaming "{{filename}}"</h2> +<h2>Renaming or Rotating "{{filename}}"</h2> <a href="/expofiles/{{filepath|urlencode}}"> <figure class=onleft> <img src="/expofiles/{{filepath|urlencode}}" width=150px> @@ -23,26 +23,49 @@ {% csrf_token %} <br> <input class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px " - label = "Rename to" name = "renameto" id="renameto" + + label = "Rename to" name = "renametoname" id="renameto" pattern="[A-Za-z][A-Za-z0-9_-\.]*"/> <label style="padding: 0.5em 25px; margin-left: 110px" - for="renameto">type in the new name for this file<br></label> + for="renametoname">type in 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" > + <button class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px" name="rename" type = "submit" value = "Rename" > Rename it </button> </form> + <br /> + <form method ='post' > + {% csrf_token %} + <button class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px" name="rotate" type = "submit" value = "Rotate" > + Rotate it + </button> + </form> <br /><br /><br /> - Full urlencoded path for this file in expofiles is <a href="/expofiles/{{filepath|urlencode}}"><em>{{filepath|urlencode}}</em></a> + Full urlencoded path for this file in expofiles is <a href="/expofiles/{{filepath|urlencode}}"><em>{{filepath|urlencode}}</em></a> </div> <br /> - <hr /> +{% for np in notpics %} + <a href="/expofilerename/{{walletpath|urlencode}}/{{np|urlencode}}">{{np}}</a> <br /> +{% endfor %} +<br /> +{% for filename in files %} +<a href="/expofilerename/{{walletpath|urlencode}}/{{filename|urlencode}}"> + <figure class=onleft> + <img src="/expofiles/{{walletpath|urlencode}}/{{filename|urlencode}}" width=75px> + <figcaption style="font-variant-caps: normal;">{{filename}} + </figcaption> + </figure></a> + +{% empty %} +No files found.<br /> +{% endfor %} + {% endblock %}
\ No newline at end of file |