2012-10-21 13:37:30 +02:00
|
|
|
<script type="text/html" id="item_tmpl">
|
2013-04-12 22:56:29 +02:00
|
|
|
<div class="bookmark_single" data-id="<&= id &>">
|
2012-10-21 13:37:30 +02:00
|
|
|
<p class="bookmark_actions">
|
|
|
|
<span class="bookmark_delete">
|
2013-02-28 00:01:59 +01:00
|
|
|
<img class="svg" src="<?php print_unescaped(OCP\image_path("", "actions/delete.svg"));?>"
|
|
|
|
title="<?php p($l->t('Delete'));?>">
|
2012-10-21 13:37:30 +02:00
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
<p class="bookmark_title">
|
2013-04-12 22:56:29 +02:00
|
|
|
<a href="<&= encodeURI(url) &>" target="_blank" class="bookmark_link">
|
|
|
|
<&= escapeHTML(title == '' ? encodeURI(url) : title ) &>
|
2012-11-06 22:37:48 +01:00
|
|
|
</a>
|
2013-02-08 10:38:36 +01:00
|
|
|
<span class="bookmark_edit bookmark_edit_btn">
|
2013-02-28 00:01:59 +01:00
|
|
|
<img class="svg" src="<?php print_unescaped(OCP\image_path("", "actions/rename.svg"));?>" title="<?php p($l->t('Edit'));?>">
|
2012-11-18 09:47:38 +01:00
|
|
|
</span>
|
2013-02-08 10:38:36 +01:00
|
|
|
</p>
|
2013-04-12 22:56:29 +02:00
|
|
|
<span class="bookmark_desc"><&= escapeHTML(description)&> </span>
|
|
|
|
<span class="bookmark_date"><&= formatDate(added_date) &></span>
|
2012-10-21 13:37:30 +02:00
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/html" id="item_form_tmpl">
|
2013-04-12 22:56:29 +02:00
|
|
|
<div class="bookmark_single_form" data-id="<&= id &>">
|
2013-02-28 00:01:59 +01:00
|
|
|
<form method="post" action="<?php p(OCP\Util::linkTo('bookmarks', 'ajax/editBookmark.php'));?>" >
|
2013-04-12 22:56:29 +02:00
|
|
|
<input type="hidden" name="record_id" value="<&= id &>" />
|
2012-10-21 13:37:30 +02:00
|
|
|
<p class="bookmark_form_title">
|
2013-02-28 00:01:59 +01:00
|
|
|
<input type="text" name="title" placeholder="<?php p($l->t('The title of the page'));?>"
|
2013-04-12 22:56:29 +02:00
|
|
|
value="<&= escapeHTML(title) &>"/>
|
2012-10-21 13:37:30 +02:00
|
|
|
</p>
|
|
|
|
<p class="bookmark_form_url">
|
2013-02-28 00:01:59 +01:00
|
|
|
<input type="text" name="url" placeholder="<?php p($l->t('The address of the page'));?>"
|
2013-04-12 22:56:29 +02:00
|
|
|
value="<&= encodeURI(url)&>"/>
|
2012-10-21 13:37:30 +02:00
|
|
|
</p>
|
|
|
|
<div class="bookmark_form_tags"><ul>
|
2013-04-12 22:56:29 +02:00
|
|
|
<& for ( var i = 0; i < tags.length; i++ ) { &>
|
2013-04-22 23:51:33 +02:00
|
|
|
<li><&= escapeHTML(tags[i]) &></li>
|
2013-04-12 22:56:29 +02:00
|
|
|
<& } &>
|
2012-10-21 13:37:30 +02:00
|
|
|
</ul></div>
|
|
|
|
<p class="bookmark_form_desc">
|
2013-02-28 00:01:59 +01:00
|
|
|
<textarea name="description" placeholder="<?php p($l->t('Description of the page'));?>"
|
2013-04-12 22:56:29 +02:00
|
|
|
><&= escapeHTML(description) &></textarea>
|
2012-10-21 13:37:30 +02:00
|
|
|
</p>
|
2013-02-28 00:01:59 +01:00
|
|
|
<p class="bookmark_form_submit"><button class="reset" ><?php p($l->t('Cancel'));?></button>
|
|
|
|
<input type="submit" value="<?php p($l->t('Save'));?>">
|
2012-10-21 13:37:30 +02:00
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
<script type="text/html" id="tag_tmpl">
|
2013-04-12 22:56:29 +02:00
|
|
|
<li><a href="" class="tag"><&= escapeHTML(tag) &></a>
|
2012-10-21 13:37:30 +02:00
|
|
|
<p class="tags_actions">
|
|
|
|
<span class="tag_edit">
|
2013-02-28 00:01:59 +01:00
|
|
|
<img class="svg" src="<?php print_unescaped(OCP\image_path("", "actions/rename.svg"));?>"
|
|
|
|
title="<?php p($l->t('Edit'));?>">
|
2012-10-21 13:37:30 +02:00
|
|
|
</span>
|
|
|
|
<span class="tag_delete">
|
2013-02-28 00:01:59 +01:00
|
|
|
<img class="svg" src="<?php print_unescaped(OCP\image_path("", "actions/delete.svg"));?>"
|
|
|
|
title="<?php p($l->t('Delete'));?>">
|
2012-10-21 13:37:30 +02:00
|
|
|
</span>
|
|
|
|
</p>
|
2013-04-12 22:56:29 +02:00
|
|
|
<em><&= nbr &></em>
|
2012-10-21 13:37:30 +02:00
|
|
|
</li>
|
2013-03-15 12:45:44 +01:00
|
|
|
</script>
|