mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-11-29 04:24:11 +01:00
52 lines
1.6 KiB
PHP
52 lines
1.6 KiB
PHP
<form class="addBm" method="post" action="<?php echo OCP\Util::linkTo('bookmarks', 'ajax/editBookmark.php');?>">
|
|
<?php if(!isset($embedded) || !$embedded):?>
|
|
<script type="text/javascript">
|
|
var fullTags = <?php echo $_['tags'];?>;
|
|
$(document).ready(function() {
|
|
$('body').bookmark_dialog({
|
|
'on_success': function(){ self.close(); }
|
|
});
|
|
});
|
|
</script>
|
|
<h1><?php echo $l->t('Add a bookmark');?></h1>
|
|
<div class="close_btn">
|
|
<a href="javascript:self.close()" class="ui-icon ui-icon-closethick">
|
|
<?php echo $l->t('Close');?>
|
|
</a>
|
|
</div>
|
|
<?php endif;?>
|
|
<fieldset class="bm_desc">
|
|
<ul>
|
|
<li>
|
|
<input type="text" name="title" class="title" value="<?php echo $_['bookmark']['title']; ?>"
|
|
placeholder="<?php echo $l->t('The title of the page');?>" />
|
|
</li>
|
|
|
|
<li>
|
|
<input type="text" name="url" class="url_input" value="<?php echo $_['bookmark']['url']; ?>"
|
|
placeholder="<?php echo $l->t('The address of the page');?>" />
|
|
</li>
|
|
|
|
<li>
|
|
<ul class="tags" >
|
|
<?php foreach($_['bookmark']['tags'] as $tag):?>
|
|
<li><?php echo $tag;?></li>
|
|
<?php endforeach;?>
|
|
</ul>
|
|
</li>
|
|
|
|
<li>
|
|
<textarea name="description" class="desc" value="<?php echo $_['bookmark']['desc']; ?>"
|
|
placeholder="<?php echo $l->t('Description of the page');?>"></textarea>
|
|
</li>
|
|
|
|
<li>
|
|
<input type="submit" class="submit" value="<?php echo $l->t("Save");?>" />
|
|
<input type="hidden" class="record_id" value="" name="record_id" />
|
|
<input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>">
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</fieldset>
|
|
</form>
|