Preliminary source objects.
[redakcja.git] / src / sources / templates / sources / prepare.html
diff --git a/src/sources/templates/sources/prepare.html b/src/sources/templates/sources/prepare.html
new file mode 100644 (file)
index 0000000..07a6194
--- /dev/null
@@ -0,0 +1,21 @@
+{% extends "documents/base.html" %}
+
+{% block content %}
+  <h1>{{ book_source.book }} z: {{ book_source.source }}</h1>
+
+  {% with doc=book_source.get_document %}
+    {% if doc %}
+      Tekst:
+      <a href="{{ doc.get_absolute_url }}">
+        {{ doc }}
+      </a>
+      </a>
+    {% endif %}
+  {% endwith %}
+
+  <form method="post">
+    {% csrf_token %}
+    <button class="btn btn-primary">Utwórz tekst</button>
+  </form>
+
+{% endblock %}