2014-11-25 22:43:48 +01:00
|
|
|
<?php
|
|
|
|
OCP\Util::addscript('bookmarks', 'bookmarklet');
|
|
|
|
OCP\Util::addStyle('bookmarks', 'bookmarks');
|
|
|
|
|
|
|
|
$bookmarkExists = $_['bookmarkExists'];
|
|
|
|
?>
|
|
|
|
<div id="bookmarklet_form">
|
|
|
|
<form class="addBm" action="">
|
|
|
|
<script type="text/javascript" src="tag"></script>
|
|
|
|
|
|
|
|
<h1 style="display: block; float: left"><?php p($l->t('Add a bookmark')); ?></h1>
|
|
|
|
<span style="display: inline; float: right"><div id="add_form_loading" style="margin: 3px;"><img src="<?php print_unescaped(OCP\image_path("bookmarks", "loading.gif")); ?>"> </div></span>
|
|
|
|
|
|
|
|
<div style="color: red; clear: both; visibility: <?php
|
|
|
|
if ($bookmarkExists == false) {
|
|
|
|
print_unescaped('hidden');
|
|
|
|
}
|
|
|
|
?>">
|
|
|
|
<strong>
|
|
|
|
<?php p($l->t('This URL is already bookmarked! Overwrite?')); ?>
|
|
|
|
</strong>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<fieldset class="bm_desc">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<input id="title" type="text" name="title" class="title" value="<?php p($_['title']); ?>"
|
|
|
|
placeholder="<?php p($l->t('The title of the page')); ?>" />
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<input id="url" type="text" name="url" class="url_input" value="<?php p($_['url']); ?>"
|
|
|
|
placeholder="<?php p($l->t('The address of the page')); ?>" />
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<ul class="tags" >
|
2015-03-08 00:53:42 +01:00
|
|
|
<ul class="tags" >
|
|
|
|
<li></li>
|
|
|
|
</ul>
|
2014-11-25 22:43:48 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<textarea id="description" name="description" class="desc"
|
|
|
|
placeholder="<?php p($l->t('Description of the page')); ?>"><?php p($_['description']); ?></textarea>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<input type="submit" class="submit" value="<?php p($l->t("Save")); ?>" />
|
|
|
|
<input type="hidden" class="record_id" value="" name="record_id" />
|
|
|
|
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>">
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|