__section__
default
__description__
Edit a section

* section = name of section
* this_section = hashref of section
* qid = poll to assign to section
* isolate = boolean for isolate mode
* issue = boolean for issue mode
* blocks = arrayref of hashref of blocks for section (we should also pass in template for this section at some point ...)
__title__

__page__
sections
__lang__
en_US
__name__
editSection
__template__
	[
		<A HREF="[% constants.rootdir %]/admin.pl?section=[% section %]">Stories</A> |
		<A HREF="[% constants.rootdir %]/submit.pl?section=[% section %]&op=list">Submissions</A> |
		<A HREF="[% constants.rootdir %]/index.pl?section=[% section %]">Preview</A>
	]
	<TABLE><TR><TD VALIGN="TOP">
<FORM ACTION="[% env.script_name %]" METHOD="POST">
	[% PROCESS formLabel value => "Section name", comment => "must be unique" %]
	<INPUT TYPE="TEXT" NAME="section" VALUE="[% section | strip_attribute %]"><BR><BR>
	[% PROCESS formLabel value => "Article Count", comment => "how many articles to display on section index" %]
	<INPUT TYPE="TEXT" NAME="artcount" SIZE="4" VALUE="[% this_section.artcount %]">
		1/3rd of these will display intro text, 2/3rds just headers<BR><BR>

	[% PROCESS formLabel value => "Title", comment => "be descriptive" %]
	<BR><INPUT TYPE="TEXT" NAME="title" SIZE="30" VALUE="[% this_section.title %]"><BR>

	[% PROCESS formLabel value => "Polls for this section", comment => "" %]
	[% qid %]
	[% PROCESS formLabel value => "Isolate mode", comment => "" %]
	[% isolate %]
	[% PROCESS formLabel value => "Issue mode", comment => "" %]
	[% issue %]

[% IF blocks %]
	[% PROCESS formLabel value => "Edit Section slashboxes" comment => "blocks" %]
	<TABLE BORDER="1">
	[% FOREACH block = blocks %]
		<TR>
			<TD>
			<B><A HREF="[% constants.rootdir %]/admin.pl?op=blocked&bid=[% block.bid %]">[% block.title %]</A></B>
			<A HREF="[% block.url %]">[% block.url %]</A>[% ' (default)' IF block.ordernum > 0 %]
			</TD>
		</TR>
	[% END %]
	</TABLE>
[% END %]

	<BR><INPUT TYPE="SUBMIT" NAME="savesection" VALUE="save section">
	<BR><INPUT TYPE="SUBMIT" NAME="addsection" VALUE="add section">
	<BR><INPUT TYPE="SUBMIT" NAME="deletesection" VALUE="delete section">
</FORM>
</TD>
<TD VALIGN="TOP">
	[% PROCESS formLabel value => "Topics", comment => "topics assigned to this section" %]
	<UL>
	[% FOREACH topic = topics %]
	<LI>[% topic %]</LI>
	[% END %]
	</UL>
</TD>
</TR>
</TABLE>

__seclev__
10000
