1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2024-12-02 06:24:11 +01:00
OwncloudBookmarksOfficial/templates/js_tpl.php

65 lines
2.5 KiB
PHP
Raw Normal View History

<script type="text/html" id="item_tmpl">
<div class="bookmark_single" data-id="<&= id &>">
<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'));?>">
</span>&nbsp;
</p>
<p class="bookmark_title">
<a href="<&= encodeURI(url) &>" target="_blank" class="bookmark_link">
<&= escapeHTML(title == '' ? encodeURI(url) : title ) &>
2012-11-06 22:37:48 +01:00
</a>
<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'));?>">
</span>
</p>
<span class="bookmark_desc"><&= escapeHTML(description)&> </span>
<span class="bookmark_date"><&= formatDate(added_date) &></span>
</div>
</script>
<script type="text/html" id="item_form_tmpl">
<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'));?>" >
<input type="hidden" name="record_id" value="<&= id &>" />
<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'));?>"
value="<&= escapeHTML(title) &>"/>
</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'));?>"
value="<&= encodeURI(url)&>"/>
</p>
<div class="bookmark_form_tags"><ul>
<& for ( var i = 0; i < tags.length; i++ ) { &>
2013-04-22 23:51:33 +02:00
<li><&= escapeHTML(tags[i]) &></li>
<& } &>
</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'));?>"
><&= escapeHTML(description) &></textarea>
</p>
<p class="bookmark_form_submit">
<button class="reset" ><?php p($l->t('Cancel'));?></button>
<input type="submit" class="primary" value="<?php p($l->t('Save'));?>">
</p>
</form>
</div>
</script>
<script type="text/html" id="tag_tmpl">
<li><a href="" class="tag"><&= escapeHTML(tag) &></a>
<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'));?>">
</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'));?>">
</span>
</p>
<em><&= nbr &></em>
</li>
2013-03-15 12:45:44 +01:00
</script>