-
Notifications
You must be signed in to change notification settings - Fork 169
/
rename_new.tt
36 lines (29 loc) · 1.2 KB
/
rename_new.tt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[%# admin/rename/do.tt
Admin page to do renames.
Authors:
Afuna <coder.dw@afunamatata.com>
Copyright (c) 2015 by Dreamwidth Studios, LLC.
This program is free software; you may redistribute it and/or modify it under
the same terms as Perl itself. For a copy of the license, please reference
'perldoc perlartistic' or 'perldoc perlgpl'.
%]
[% sections.title = 'System Renames' %]
[% IF error_list %]
<p>Error</p>
<ul class='error-list'>
[% FOREACH error = error_list %]
<li>[% error %] </li>
[% END %]
</ul>
[% END %]
<p>This allows a system user to perform a rename. The rules are slightly relaxed compared to normal renames: we check for validity of the username, but we don't care about other things like the journal's status or ownership.</p>
<p>All existing relationships are kept; email and journal redirects are broken.</p>
<form method="POST">
[% dw.form_auth %]
<div class='formfield'>
<label for="user">User:</label> <input type="text" name="user" id="user"/></div>
<div class='formfield'>
<label for="touser">To:</label> <input type="text" name="touser" id="touser" />
</div>
<input type="submit" value="Perform rename" />
</form>