smeagol/resources/templates/edit.html
Simon Brooke b25412991b Well, that's Git integration working. Not complete; it ought to be possible
to view the log of the current page, and previous versions - but it's a start.
2014-11-11 21:37:34 +00:00

25 lines
997 B
HTML

{% extends "templates/base.html" %}
{% block content %}
<div id="header" class="wiki">
<h1>Editing {{title}}</h1>
{{header|safe}}
</div>
<div id="left-bar" class="wiki">
{{left-bar|safe}}
</div>
<div id="content" class="wiki">
<form action="{{servlet-context}}/edit" method="POST">
<input type="hidden" name="content" value="{{title}}"/>
<textarea name="src" id="src" rows="25" cols="80">{{content}}</textarea>
<p class="widget">
<label for="summary">What have you changed?</label>
<input name="summary" id="summary" type="text"
value="{%if exists%}{%else%}New file {{title}}{%endif%}"/>
</p>
<p class="widget">
<label for="submit">When you have finished editing</label>
<input name="submit" id="submit" type="submit" class="action" value="Save!"/>
</p>
</form>
</div>
{% endblock %}