Created
February 16, 2011 01:55
-
-
Save max/828708 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
This template is surrounded by a li added by the Backbone view before it's | |
inserted into the DOM. I'm not a big fan of how that works as I'd rather | |
define the entire view here. Once I'm more familiar with Backbone, I'll | |
revisit the issue. | |
--> | |
<form action="/items/{{id}}" method="post"> | |
<input name="_method" type="hidden" value="put" /> | |
<section> | |
<div class="select"> | |
<input {{#selected}}checked="checked"{{/selected}} name="item_ids[]" type="checkbox" value="{{id}}" /> | |
</div> | |
<div class="type"> | |
<a class="{{item_type}}" href="{{url}}"> | |
<img class="icon" height="16" src="/images/new/item-types/{{item_type}}.png" width="16" /> | |
{{#is_image}} | |
<img class="thumbnail" height="150" src="{{thumbnail_url}}" width="200" /> | |
{{/is_image}} | |
</a> | |
</div> | |
<div class="title"> | |
<a href="{{url}}">{{name_or_url}}</a> | |
<input name="item[name]" type="text" value="{{name}}" /> | |
</div> | |
<div class="time"> | |
{{created_duration}} | |
</div> | |
<div class="views"> | |
{{view_counter}} | |
</div> | |
<div class="edit"> | |
<input name="commit" type="submit" value="Save" /> | |
</div> | |
</section> | |
<aside> | |
Privacy | |
</aside> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment