64 lines
3.2 KiB
HTML
64 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
|
<head>
|
|
{$pageName="addlink"}
|
|
{include="includes"}
|
|
</head>
|
|
<body class="page-add-link" onload="document.addform.post.focus();">
|
|
{include="page.header"}
|
|
<div id="headerform" class="page-add container">
|
|
<div class="row">
|
|
<div class="col-md-6 col-md-offset-3">
|
|
<form method="GET" action="{$base_path}/admin/shaare" name="addform" class="form-add">
|
|
<div class="card">
|
|
<div class="card-header">{"Shaare a new link"|t}</div>
|
|
<div class="card-body">
|
|
<div class="form-group">
|
|
<label class="form-label" for="post">{'URL or leave empty to post a note'|t}</label>
|
|
<input type="text" name="post" id="post" class="form-control autofocus" placeholder="https://...">
|
|
</div>
|
|
</div>
|
|
<div class="card-footer">
|
|
<button type="submit" class="btn btn-primary">{'Add link'|t}</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="col-md-6 col-md-offset-3">
|
|
<div class="page-add-actions text-right">
|
|
<button type="button" class="btn btn-secondary button-batch-addform page-add-bulk-toggle"><i class="mdi mdi-playlist-plus" aria-hidden="true"></i> {'BULK CREATION'|t}</button>
|
|
</div>
|
|
|
|
<form class="card batch-addform batch-add-card hidden" method="POST" action="{$base_path}/admin/shaare-batch" name="batch-addform">
|
|
<div class="card-header">{"Shaare multiple new links"|t}</div>
|
|
<div class="card-body">
|
|
<div class="form-group">
|
|
<label class="form-label" for="urls">{'Add one URL per line to create multiple bookmarks.'|t}</label>
|
|
<textarea name="urls" id="urls" rows="5" class="form-control" placeholder="https://site1.com https://site2.com"></textarea>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label" for="tags">{'Tags'|t}</label>
|
|
<input type="text" name="tags" id="tags" class="form-control lf_input" data-list="{loop="$tags"}{$key}, {/loop}" data-multiple data-autofirst autocomplete="off" placeholder="tags separated by space">
|
|
</div>
|
|
|
|
<input type="hidden" name="private" value="0">
|
|
<div class="form-group checkbox-wrapper batch-private-wrap">
|
|
<input type="checkbox" name="private" {if="$default_private_links"} checked="checked"{/if} id="lf_private" class="batch-private-checkbox" />
|
|
<label for="lf_private" class="batch-private-label">{'Private'|t}</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card-footer">
|
|
<input type="hidden" name="token" value="{$token}">
|
|
<button type="submit" class="btn btn-primary">{'Add links'|t}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{include="page.footer"}
|
|
</body>
|
|
</html>
|