File: editSection%3Bsections%3Bdefault

package info (click to toggle)
slash 2.2.6-8etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 3,672 kB
  • ctags: 1,915
  • sloc: perl: 23,113; sql: 1,878; sh: 433; makefile: 233
file content (75 lines) | stat: -rwxr-xr-x 2,428 bytes parent folder | download | duplicates (3)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
__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