added settings page to handle setting the BASE_DIR value.

This commit is contained in:
2015-06-24 10:39:31 +01:00
parent 8a99514c18
commit 469277763c
4 changed files with 44 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
{% extends "base.html" %}
{% block title %}CBreader - Settings{% endblock %}
{% block content %}
{% if error_message %}
<div class="alert alert-danger" role="alert">{{ error_message }}</div>
{% endif %}
<form method="POST">
{% csrf_token %}
<div class="form-group">
<label for="base_directory">Base Directory</label>
<input type="text" class="form-control" id="base_directory" name="base_directory" placeholder="Base Directory" value="{{ base_dir.value }}">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
{% endblock %}