diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2024-07-03 11:48:38 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2024-07-03 11:48:38 +0300 |
commit | cb81a066dbbc61bd55adac3180533eaf8f073064 (patch) | |
tree | 6d6d493765723bfceac160c4815804f9da1fe336 /templates/textfileform.html | |
parent | 704ff8335dc78b497586e773c4ed7a596672b920 (diff) | |
download | troggle-cb81a066dbbc61bd55adac3180533eaf8f073064.tar.gz troggle-cb81a066dbbc61bd55adac3180533eaf8f073064.tar.bz2 troggle-cb81a066dbbc61bd55adac3180533eaf8f073064.zip |
initial text file editing stuff
Diffstat (limited to 'templates/textfileform.html')
-rw-r--r-- | templates/textfileform.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/templates/textfileform.html b/templates/textfileform.html new file mode 100644 index 0000000..27fa0d3 --- /dev/null +++ b/templates/textfileform.html @@ -0,0 +1,46 @@ +{% extends "base.html" %} + +{% block title %}Online text file editor{% endblock %} + +{% block content %} + +<h2>Editing text file (not fully working yet)</h2> + <style> + input, textarea, pre {font-family: monospace; font-weight: bold; text-align:left; font-size: 100%; padding: 0.5em; } + textarea {text-align:left } + pre {text-align:left; font-size: 110% } + </style> +<div style = "max-width:95%; margin-left:4%; font-family: monospace; font-weight: bold; font-size: 110%; text-align: left; " > +File: {{path}} <br> +Full path on server: {{filepath}} + + <form method ='post' > + {% csrf_token %} + <br /> + <textarea {% if not user.username %} disabled{% endif %} + rows="{% if textrows%}{{textrows}}{% else %}20{% endif %}" cols="100" + label = "" name = "text" + required />{% if text %}{{text}}{% else %}We had a lot of fun...{% endif %} + </textarea> + <br> + [Edit the text by just typing in the box.] + + + <button class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px" name="Save" type = "submit" +title="Saves the file in UTF-8 characterset" value = "Save" > + Save the file + </button> + </form> + <br /> + + +</div> + +<br /> +<hr /> + + + + + +{% endblock %}
\ No newline at end of file |