Empty commit

This commit is contained in:
Git 2016-02-13 08:00:30 +00:00
parent 63bb1c08df
commit 876805bd95
2 changed files with 17 additions and 4 deletions

View File

@ -1,5 +1,8 @@
CHANGE LOG
2016-02-13 by lawnmower
minor usability improvement to artist alias editing
2016-02-11 by newman
Fix punctuation typo in uploading rules

View File

@ -102,6 +102,7 @@
<ul>
<?
$NonRedirectingAliases = array();
$DB->query("
SELECT AliasID, Name, UserID, Redirect
FROM artists_alias
@ -118,7 +119,12 @@
<? }
if ($Redirect) { ?>
(writes redirect to <span class="tooltip" title="Target alias ID"><?=$Redirect?></span>)
<? } ?>
<? }
else {
$NonRedirectingAliases[$AliasID] = $AliasName;
}
?>
<a href="artist.php?action=delete_alias&amp;aliasid=<?=$AliasID?>&amp;auth=<?=$LoggedUser['AuthKey']?>" title="Delete this alias" class="brackets tooltip">X</a>
</li>
<? }
@ -139,9 +145,13 @@
<input type="text" name="name" size="40" value="<?=$Name?>" />
</div>
<div class="field_div">
<span class="label"><strong>Writes redirect to (enter an Alias ID; leave blank or enter "0" for no redirect):</strong></span>
<br />
<input type="text" name="redirect" size="40" value="<?=$DefaultRedirectID?>" /><br />
<span class="label"><strong>Writes redirect to:</strong></span>
<select name="redirect">
<option value="0">Non-redirecting alias</option>
<? foreach($NonRedirectingAliases as $AliasID => $AliasName) { ?>
<option value="<?=$AliasID?>"<?=$AliasID == $DefaultRedirectID ? " selected" : ""?>><?=$AliasName?></option>
<? } ?>
</select><br />
</div>
<div class="submit_div">
<input type="submit" value="Add alias" />