5 Generates the form to edit stories.
8 {-assert_topic_editor|{-var|topic}}
15 <form method = 'post' action = '{-url}'>
17 <input type = 'submit' class = 'button' value = 'OK'>
19 <input type = 'hidden' name = 't' value = 'SAVE_STORY'>
20 <input type = 'hidden' name = 'topic' value = '{-var|cp_topic|{-var|topic}}'>
22 <p>Publication date <small>(empty, today)</small><br>
24 <input type = 'text' size = '2' name = 'day'
25 value = '{-story_date|%d|{-var|topic}|{-var|id}}'> /
26 <input type = 'text' size = '2' name = 'month'
27 value = '{-story_date|%m|{-var|topic}|{-var|id}}'> /
28 <input type = 'text' size = '4' name = 'year'
29 value = '{-story_date|%y|{-var|topic}|{-var|id}}'>
31 <p>Liberation date for non-subscribers: <small>(empty, same as above)</small><br>
33 <input type = 'text' size = '2' name = 'day2'
34 value = '{-story_date2|%d|{-var|topic}|{-var|id}}'> /
35 <input type = 'text' size = '2' name = 'month2'
36 value = '{-story_date2|%m|{-var|topic}|{-var|id}}'> /
37 <input type = 'text' size = '4' name = 'year2'
38 value = '{-story_date2|%y|{-var|topic}|{-var|id}}'>
40 <p>Description (about 15 words)<br>
41 <input size = '80' type = 'text' name = 'description' value = '{-story_description|{-var|topic}|{-var|id}}'>
44 <select name = 'format'>
45 {-foreach|{-renderers}|
47 \|\{-story_format\|\{-var\|topic\}\|\{-var\|id\}\}
48 \|selected\} value='\$0'>\$0</option>
52 {-if|{-eq|{-var|cp_id|{-var|id}}|[]}|
54 <small>(Optional; if you don't know what it means, leave it blank)</small><br>
55 <input type = 'text' size = '32' name = 'id' value = ''>
57 <input type = 'hidden' name = 'id' value = '{-var|cp_id|{-var|id}}'>
60 <p>Tags: <small>(comma-separated)</small><br>
61 <input type = 'text' size = '60' name = 'tags'
62 value = '{-foreach|{-story_tags|{-var|topic}|{-var|id}}||, }'>
66 <textarea name = 'content' cols = '80' rows = '30' wrap = 'virtual'>{-story_content|{-var|topic}|{-var|id}}</textarea>
69 <input type = 'submit' class = 'button' value = 'OK'>
72 <form method = 'post' onsubmit = 'return confirm("Are you sure you want to delete this story?");' action = '{-url}'>
73 <input type = 'hidden' name = 't' value = 'DELETE_STORY'>
74 <input type = 'hidden' name = 'topic' value = '{-var|topic}'>
75 <input type = 'hidden' name = 'id' value = '{-var|id}'>
76 <input type = 'submit' class = 'button' value = 'DELETE'>
79 <form method = 'get' action = '{-url}'>
80 <input type = 'hidden' name = 't' value = 'EDIT_STORY'>
81 <input type = 'hidden' name = 'topic' value = '{-var|topic}'>
82 <input type = 'hidden' name = 'id' value = '{-var|id}'>
83 <input type = 'hidden' name = 'cp_id' value = '[]'>
84 <input type = 'submit' class = 'button' value = 'COPY'>
85 <select name = 'cp_topic'>
86 {-foreach|{-topics}|<option value = '\$0'>\{-topic_name\|\$0\}</option>|}