course_info_update.html 1.3 KB
Newer Older
1
<li name="<%- updateModel.cid %>">
2 3 4 5 6
	<!-- FIXME what style should we use for initially hidden? --> <!-- TODO decide whether this should use codemirror -->
	<form class="new-update-form">
		<div class="row">
			<label class="inline-label">Date:</label>
			<!-- TODO replace w/ date widget and actual date (problem is that persisted version is "Month day" not an actual date obj -->
7
			<input type="text" class="date" value="<%= updateModel.get('date') %>">
8 9 10 11 12 13 14 15 16 17
		</div>
		<div class="row">
			<textarea class="new-update-content text-editor"><%= updateModel.get('content') %></textarea>
		</div>
		<div class="row">
			<!-- cid rather than id b/c new ones have cid's not id's -->
			<a href="#" class="save-button" name="<%= updateModel.cid %>">Save</a>
			<a href="#" class="cancel-button" name="<%= updateModel.cid %>">Cancel</a>
		</div>
	</form>
18
	<div class="post-preview">
19 20 21 22 23
		<div class="post-actions">
			<a href="#" class="edit-button" name="<%- updateModel.cid %>"><span class="edit-icon"></span>Edit</a>
			<a href="#" class="delete-button" name="<%- updateModel.cid %>"><span class="delete-icon"></span>Delete</a>
		</div>
		<h2>
24
			<span class="calendar-icon"></span><span class="date-display"><%=
25 26 27
				updateModel.get('date') %></span>
		</h2>
		<div class="update-contents"><%= updateModel.get('content') %></div>
28 29
	</div>
</li>