__section__
default
__description__
Form for previewing a user's submission

* submission = submission hashref (email, name, subj, tid, story, time, comment)
* subid = submission id
* lockTest = string describing other admins looking at similar submissions
* section = name of section

__title__

__page__
submit
__lang__
en_US
__name__
previewForm
__template__
[% USE Slash;
	IF submission.email && submission.name;
		subtext = "<A HREF=\"$submission.email\">$submission.name</A> writes <i>\"$submission.story\"</i>";
	ELSIF submission.name;
		subtext = "$submission.name writes <i>\"$submission.story\"</i>";
	ELSE;
		subtext = submission.story;
	END;
%]

[% IF submission.comment && admin_flag %]
<P>Submission Notes:
<TABLE WIDTH="95%"><TR><TD BGCOLOR="[% user.bg.2 %]">
	<FONT SIZE="-1" COLOR="[% user.fg.2 %]">[% submission.comment %]</FONT>
</TD></TR></TABLE>
[% END %]


<P>Submitted by <B>[% submission.name %]
	<A HREF="[% submission.email %]">[% submission.email %]</A></B>
	at [% submission.time %]

<P>[% subtext %]</P>

[% IF admin_flag %]
	[ <A HREF="[% env.script_name %]?op=Update&amp;subid=[% subid %]">Delete Submission</A> ]<BR>

	<FORM ACTION="[% constants.rootdir %]/admin.pl" METHOD="POST">
		<INPUT TYPE="HIDDEN" NAME="subid" VALUE="[% subid %]">
		<INPUT TYPE="HIDDEN" NAME="submitter" VALUE="[% submitter %]">
		<BR>title <INPUT TYPE="text" NAME="title" VALUE="[% submission.subj %]" SIZE="50">
		<BR>[% lockTest %]
	[% IF constants.use_dept %]
		dept <INPUT TYPE="text" NAME="dept" SIZE="50">
	[% END %]
		<BR>
	[% Slash.selectTopic('tid', submission.tid, section, 1) %]
	[% Slash.selectSection('section', section, 0, 1) %]

		<INPUT TYPE="submit" NAME="op" VALUE="preview"><BR>
		<BR>Intro Copy<BR>
	<TEXTAREA NAME="introtext" COLS="70" ROWS="10" WRAP="VIRTUAL"
>[% subtext | strip_literal %]</TEXTAREA><BR>
		<INPUT TYPE="SUBMIT" NAME="op" VALUE="preview"><BR>
	</FORM>
[% END %]

__seclev__
10000
