2025-02-19 13:41:45 -06:00

66 lines
3.1 KiB
HTML

<!DOCTYPE html>
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head>
{$pageName="changetag"}
{include="includes"}
</head>
<body>
{include="page.header"}
<div class="container page-changetag">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<form method="POST" action="" name="changetag" id="changetag" class="card">
<div class="card-title">{"Manage tags"|t}</div>
<div class="card-body">
<input type="hidden" name="token" value="{$token}">
<p>All modifications are case sensitive.</p>
<div class="form-entry">
<label for="fromtag">Modify this tag&#8230;</label>
<input type="text" name="fromtag" id="fromtag" value="{$fromtag}" class="autofocus"
autocomplete="off" data-multiple data-minChars="1"
data-list="{loop="$tags"}{$key}, {/loop}"/>
</div>
<div class="form-entry">
<label for="totag">&#8230;into this tag</label>
<input type="text" name="totag" id="totag">
</div>
<p>{'You can also edit tags in the'|t} <a href="{$base_path}/tags/list?sort=usage">{'tag list'|t}</a>.</p>
</div>
<div class="card-footer">
<button type="submit" id="button-delete" name="deletetag" class="button-raised button-alert pull-right" value="Delete tag">{'Delete tag'|t}</button>
<button type="submit" name="renametag" class="button-raised pull-right" value="Rename tag">{'Rename tag'|t}</button>
<div class="clearfix"></div>
</div>
</form>
</div>
<div class="col-md-6 col-md-offset-3">
<form method="POST" action="{$base_path}/admin/tags/change-separator" name="changeseparator" id="changeseparator" class="card">
<div class="card-header">{"Change tags separator"|t}</div>
<div class="card-body">
<p>
{'Your current tag separator is'|t} <code>{$tags_separator}</code>{if="!empty($tags_separator_desc)"} ({$tags_separator_desc}){/if}.
</p>
<div class="form-entry">
<label for="separator">{'New separator'|t}</label>
<input type="text" name="separator" id="separator" autocomplete="off"/>
<input type="hidden" name="token" value="{$token}">
</div>
</div>
<div class="card-footer">
<p>
{'Note that hashtags won\'t fully work with a non-whitespace separator.'|t}
</p>
<button type="submit" name="saveseparator" class="button-raised button-primary pull-right">{'Save'|t}</button>
<div class="clearfix"></div>
</div>
</form>
</div>
</div>
</div>
{include="page.footer"}
</body>
</html>