71 lines
2.5 KiB
XML
71 lines
2.5 KiB
XML
<html i18n:domain="loops">
|
|
<!-- $Id$ -->
|
|
|
|
|
|
<div id="comments"
|
|
metal:define-macro="comments"
|
|
tal:define="comments nocall:view/comments"
|
|
tal:condition="comments/allowed">
|
|
<br />
|
|
<h2 i18n:translate="">Comments</h2>
|
|
<metal:comments define-macro="comments_listing"
|
|
tal:define="comments nocall:comments|nocall:view/comments;
|
|
items comments/allItems">
|
|
<tal:comment tal:repeat="comment items">
|
|
<br />
|
|
<div class="comment">
|
|
<h3>
|
|
<span tal:content="comment/subject">Subject</span></h3>
|
|
<div class="info">
|
|
<span tal:replace="comment/user/title">John</span>,
|
|
<span tal:replace="comment/timeStamp">2007-03-30</span>
|
|
</div>
|
|
<p class="content"
|
|
tal:content="structure comment/text" />
|
|
</div>
|
|
</tal:comment>
|
|
</metal:comments>
|
|
<div id="comments-button-add"
|
|
metal:define-macro="comments_button_add"
|
|
tal:define="comments nocall:comments|nocall:view/comments"
|
|
class="button">
|
|
<a i18n:translate=""
|
|
tal:attributes="href comments/addUrl;
|
|
onClick comments/addOnClick">Add Comment</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<metal:block define-macro="create_comment">
|
|
<form method="post"
|
|
id="addComment_form" class="dialog"
|
|
dojoType="dijit.form.Form">
|
|
<input type="hidden" name="form.action" value="create_comment" />
|
|
<input type="hidden" name="contentType" value="text/restructured" />
|
|
<div class="heading" i18n:translate="">Add Comment</div>
|
|
<div>
|
|
<label i18n:translate=""
|
|
for="comment_subject">Subject</label>
|
|
<div><input type="text" name="subject" id="comment_subject"
|
|
dojoType="dijit.form.ValidationTextBox" required="true"
|
|
style="width: 60em" /></div>
|
|
<label i18n:translate=""
|
|
for="comment_text">Comment</label>
|
|
<div>
|
|
<textarea name="text" cols="80" rows="6" id="comment_text"
|
|
dojoType="dijit.form.SimpleTextarea"
|
|
style="width: 60em"></textarea><div>
|
|
</div>
|
|
<div class="buttons">
|
|
<input value="Save" type="submit"
|
|
onClick="if (not this.validate()) return False; return closeDialog(true)"
|
|
i18n:attributes="value">
|
|
<input type="button" value="Cancel"
|
|
onClick="return closeDialog(false)"
|
|
i18n:attributes="value">
|
|
</div>
|
|
</form>
|
|
</metal:block>
|
|
|
|
|
|
</html>
|