This commit is contained in:
simon 2017-09-01 22:19:49 +01:00
parent 4d205a4042
commit 3e686e9c5b
11 changed files with 44 additions and 33 deletions

View file

@ -2,6 +2,7 @@
{% block content %}
<div id="content" class="auth">
<form action="{{servlet-context}}/auth" method="POST">
{% csrf-field %}
<input type="hidden" name="redirect-to" value="{{redirect-to}}"/>
{% if user %}
<p class="widget">

View file

@ -3,6 +3,7 @@
{% block content %}
<div id="content" class="edit">
<form action="{{servlet-context}}/edit-css" method="POST">
{% csrf-field %}
<input type="hidden" name="page" value="{{page}}"/>
<textarea name="src" id="src" rows="25" cols="80">{{content}}</textarea>
<p class="widget">

View file

@ -3,6 +3,7 @@
{% block content %}
<div id="content" class="edit">
<form action="{{servlet-context}}/edit-user" method="POST">
{% csrf-field %}
<p class="widget">
<label for="target">{{config.username-prompt}}</label>
<input type="text" name="target" id="target" value="{{target}}" required {% ifunequal target "" %}disabled{% endifunequal %}/>

View file

@ -7,6 +7,7 @@
{% block content %}
<div id="content" class="edit">
<form action="{{servlet-context}}/edit" method="POST">
{% csrf-field %}
<input type="hidden" name="page" value="{{page}}"/>
<textarea name="src" id="src" rows="25" cols="80">{{content}}</textarea>
<p class="widget">

View file

@ -2,6 +2,7 @@
{% block content %}
<div id="content" class="auth">
<form action="{{servlet-context}}/passwd" method="POST">
{% csrf-field %}
<p class="widget">
<label for="oldpass">{{config.old-pass-prompt}}</label>
<input name="oldpass" id="oldpass" type="password" required/>

View file

@ -19,6 +19,7 @@
{% endif %}
{% else %}
<form action="{{servlet-context}}/upload" enctype="multipart/form-data" method="POST">
{% csrf-field %}
<p class="widget">
<label for="upload">{{config.file-upload-prompt}}</label>
<input name="upload" id="upload" type="file" required/>