szurubooru/public_html/templates/post-notes.tpl
Marcin Kurczewski b416868aa7 Added arrow hotkeys to Draggable and Resizable
Which means better control over the post notes placement for all the
keyboard lovers.
2015-02-22 18:56:35 +01:00

31 lines
914 B
Smarty

<div class="post-notes">
<% _.each(notes, function(note) { %>
<div tabindex="0" class="post-note"
style="left: <%= note.left %>%;
top: <%= note.top %>%;
width: <%= note.width %>%;
height: <%= note.height %>%">
<div class="text-wrapper">
<div class="text">
<%= util.formatMarkdown(note.text) %>
</div>
</div>
</div>
<% }) %>
</div>
<form class="post-note-edit">
<textarea></textarea>
<div class="actions"><!--
--><% if (privileges.canEditPostNotes) { %><!--
--><button type="submit" name="sender" value="save">Save</button><!--
--><button type="submit" name="sender" value="preview">Preview</button><!--
--><% } %><!--
--><button type="submit" name="sender" value="cancel">Cancel</button><!--
--><% if (privileges.canDeletePostNotes) { %><!--
--><button type="submit" name="sender" value="remove">Remove</button><!--
--><% } %><!--
--></div>
</form>