blob: c873d0b3149d5722cc9aca47150703ba7dcc6f0c (
plain)
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
<div class="floaticon">{bithelp}</div>
<div class="edit newsletters">
<div class="header">
<h1>{if $gContent->isValid()}{tr}Edit Edition{/tr}: {$gContent->getTitle()}{else}{tr}Create New Edition{/tr}{/if}</h1>
</div>
{if $preview eq 'y'}
<div class="preview">
<div class="header">
<h1>{$info.subject}</h1>
</div>
<div class="body">{$parsed}</div>
</div>
{/if}
<div class="body">
{formfeedback success=$success error=$gContent->mErrors}
{form enctype="multipart/form-data" id="editpageform"}
<input type="hidden" name="edition_id" value="{$gContent->mEditionId}" />
{jstabs}
{jstab title="Edition Body"}
{legend legend="Edition Body"}
<div class="row">
{formlabel label="Newsletter" for="nl_content_id"}
{forminput}
<select name="nl_content_id" id="nl_content_id">
{foreach from=$newsletters item=nl key=nlConId}
<option value="{$nlConId}" {if $nl.con_id eq $nl_id}selected="selected"{/if}>{$nl.title|escape}</option>
{/foreach}
</select>
{formhelp note="Pick the newsletter you want to post to."}
{/forminput}
</div>
{if $gBitUser->hasPermission('p_use_content_templates') && $templates}
<div class="row">
{formlabel label="Template" for=""}
{forminput}
<select name="template_id" onchange="javascript:document.getElementById('editpageform').submit();">
<option value="0">{tr}none{/tr}</option>
{section name=ix loop=$templates}
<option value="{$templates[ix].template_id|escape}">{$templates[ix].name}</option>
{/section}
</select>
{formhelp note=""}
{/forminput}
</div>
{/if}
{include file="bitpackage:liberty/edit_services_inc.tpl serviceFile=content_edit_mini_tpl}
<div class="row">
{formlabel label="Draft" for="draft"}
{forminput}
<input type="checkbox" name="is_draft" id="draft" value="y" {if $pageInfo.is_draft eq 'y'}checked="checked"{/if} />
{formhelp note=""}
{/forminput}
</div>
<div class="row">
{formlabel label="Subject" for="subject"}
{forminput}
<input type="text" maxlength="250" size="40" name="title" id="subject" value="{$pageInfo.title|escape:html}" />
{formhelp note="This will appear in the <strong>subject</strong> line of the email."}
{/forminput}
</div>
<div class="row">
{formlabel label="Reply-To" for="replyto"}
{forminput}
<input type="text" maxlength="250" size="40" name="reply_to" id="replyto" value="{$pageInfo.reply_to|default:$gBitSystem->getConfig('site_sender_email',$smarty.server.SERVER_ADMIN)|escape:html}" />
{formhelp note="This is the email address to which any replies will be sent."}
{/forminput}
</div>
{textarea}{$pageInfo.data}{/textarea}
{/legend}
{/jstab}
{include file="bitpackage:liberty/edit_services_inc.tpl serviceFile=content_edit_tab_tpl}
{if $gBitUser->hasPermission('p_liberty_attach_attachments')}
{jstab title="Attachments"}
{legend legend="Attachments"}
{include file="bitpackage:liberty/edit_storage.tpl"}
{/legend}
{/jstab}
{/if}
{/jstabs}
<div class="row submit">
<input type="submit" name="cancel" value="{tr}Cancel{/tr}" />
<input type="submit" name="preview" value="{tr}Preview{/tr}" />
<input type="submit" name="save" value="{tr}Save Edition{/tr}" />
</div>
{/form}
</div><!-- end .body -->
</div><!-- end .newsletters -->
|