move sidebar a bit down
[phorkie.git] / data / templates / index.htm
index 05989dfa062894318286b13700c48c6a3abfad97..05c4c05a3bd68040dd2c370b9c0c350d1028b7c2 100644 (file)
@@ -2,13 +2,15 @@
 {% block title %}New paste{% endblock %}
 
 {% block content %}
 {% block title %}New paste{% endblock %}
 
 {% block content %}
-<form method="post" action="/">
+<form method="post" action="/" enctype="multipart/form-data">
  <div class="control-group well pastedata">
    <label for="description">Description</label>
    <input type="text" name="description" id="description" value="{{description}}"/>
  </div>
 
  <div class="control-group well pastedata">
    <label for="description">Description</label>
    <input type="text" name="description" id="description" value="{{description}}"/>
  </div>
 
- {% include 'edit-file.htm' with {'file': file[1], 'fileid': 1} %}
+ {% include 'edit-file.htm' with {'file': file[1], 'fileid': 0, 'newfile': true} %}
+
+ {% include 'edit-add.htm' %}
 
  <div class="well" style="text-align: right">
   <button class="btn btn-primary" type="submit">
 
  <div class="well" style="text-align: right">
   <button class="btn btn-primary" type="submit">
@@ -18,4 +20,9 @@
  </div>
 
 </form>
  </div>
 
 </form>
+<script type="application/javascript">
+$(document).ready(function() {
+    initFilenames();
+});
+</script>
 {% endblock %}
 {% endblock %}