blob: 7bd89a90ab435fdd04947066c86b12642743a51a (
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
|
{* $Header$ *}
{strip}
<div class="floaticon">{bithelp}</div>
<div class="edit wiki">
<div class="header">
<h1>
{* this weird dual assign thing is cause smarty wont interpret backticks to object in assign tag - spiderr *}
{assign var=conDescr value=$gContent->getContentTypeName()}
{if !empty($pageInfo.page_id )}
{assign var=editLabel value="{tr}Edit{/tr} $conDescr"}
{tr}{tr}Edit{/tr} {$pageInfo.original_title}{/tr}
{else}
{assign var=editLabel value="{tr}Create{/tr} $conDescr"}
{tr}{$editLabel}{/tr}
{/if}
</h1>
</div>
{* Check to see if there is an editing conflict *}
{if !empty($errors.edit_conflict)}
<script>/* <![CDATA[ */
alert( "{$errors.edit_conflict|strip_tags}" );
/* ]]> */</script>
{formfeedback warning=$errors.edit_conflict}
{/if}
<div class="body">
{if !empty($translateFrom)}
<div class="translate">
{if $translateFrom->mInfo.google_guess}
<hr />
<h1>{tr}Google's translation attempt{/tr}</h1>
<code>{$translateFrom->mInfo.google_guess|nl2br}</code>
{/if}
</div>
{/if}
{if $preview}
{if $pageInfo.edit_section == 1 }
<h2>{tr}Preview Section {$pageInfo.section} of: {$title}{/tr}</h2>
{else}
<h2>{tr}Preview {$title}{/tr}</h2>
{/if}
<div class="preview">
<div class="body">
<div class="content">
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$gContent->mInfo}
{if $gBitSystem->isFeatureActive( 'liberty_auto_display_attachment_thumbs' )}
{include file="bitpackage:liberty/storage_thumbs.tpl"}
{/if}
{$pageInfo.parsed_data}
<div class="clear"></div>
</div> <!-- end .content -->
</div> <!-- end .body -->
</div>
{/if}
{if $page ?? '' eq 'SandBox'}
<div class="admin box">{tr}The SandBox is a page where you can practice your editing skills, use the preview feature to preview the appeareance of the page, no versions are stored for this page.{/tr}</div>
{/if}
{form enctype="multipart/form-data" id="editpageform"}
{jstabs}
{jstab title="$editLabel Body"}
{legend legend="`$editLabel` Body"}
<input type="hidden" name="page_id" value="{$pageInfo.page_id ?? 0}" />
<div class="form-group">
{formfeedback warning=$errors.title ?? ''}
{formlabel label="$conDescr Title" for="title"}
{forminput}
{if $gBitUser->hasPermission( 'p_wiki_rename_page' ) || !$pageInfo.page_id}
<input type="text" size="50" maxlength="200" name="title" id="title" value="{$pageInfo.title|escape}" />
{else}
{$page} {$pageInfo.title|escape}
{/if}
{/forminput}
</div>
{if $gBitSystem->isFeatureActive( 'wiki_description' )}
<div class="form-group">
{formlabel label="Description" for="description"}
{forminput}
<input size="50" type="text" maxlength="200" name="description" id="description" value="{$pageInfo.description|escape:html}" />
{formhelp note="Brief description of the page. This is visible when you hover over a link to this page and just below the title of the wiki page."}
{/forminput}
</div>
{/if}
{if $pageInfo.edit_section ?? 0 == 1}
<input type="hidden" name="section" value="{$pageInfo.section}" />
{/if}
{textarea edit=$pageInfo.data}
{if $footnote}
<div class="form-group">
{formlabel label="Footnotes" for="footnote"}
{forminput}
<textarea name="footnote" id="footnote" rows="8" cols="50">{$footnote|escape}</textarea>
{formhelp note=""}
{/forminput}
</div>
{/if}
{if $page ?? '' ne 'SandBox'}
<div class="form-group">
{formlabel label="Comment" for="edit_comment"}
{forminput}
<input size="50" type="text" name="edit_comment" id="edit_comment" value="{$pageInfo.edit_comment ?? ''}" />
{formhelp note="Add a comment to illustrate your most recent changes."}
{/forminput}
</div>
{/if}
{if $gBitUser->hasPermission( 'p_wiki_save_minor' )}
<div class="form-group">
{forminput label="checkbox"}
<input type="checkbox" name="isminor" id="isminor" value="on" />Minor save
{formhelp note="This will prevent the generation of a new version. You can use this, if your changes are minor."}
{/forminput}
</div>
{/if}
{include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_mini_tpl"}
{if $gBitSystem->isFeatureActive( 'wiki_attachments' )}
{include file="bitpackage:liberty/edit_storage_list.tpl" primary_label=Avatar}
{/if}
{/legend}
{/jstab}
{include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_tab_tpl"}
{if $gBitSystem->isFeatureActive( 'wiki_attachments' ) && $show_attachments eq 'y' && $gBitUser->hasPermission('p_liberty_attach_attachments')}
{jstab title="Attachments"}
{legend legend="Attachments"}
{include file="bitpackage:liberty/edit_storage.tpl" primary_label=Avatar}
{/legend}
{/jstab}
{/if}
{if $gBitSystem->isFeatureActive( 'wiki_copyrights' )}
{jstab title="Copyright"}
<div class="form-group">
{legend legend="Copyright Settings" for="copyrightTitle"}
<div class="form-group">
{formlabel label="Title" for="copyrightTitle"}
{forminput}
<input size="40" type="text" name="copyrightTitle" id="copyrightTitle" value="{$copyrightTitle|escape}" />
{/forminput}
</div>
<div class="form-group">
{formlabel label="Authors" for="copyrightAuthors"}
{forminput}
<input size="40" type="text" name="copyrightAuthors" id="copyrightAuthors" value="{$copyrightAuthors|escape}" />
{/forminput}
</div>
<div class="form-group">
{formlabel label="Year" for="copyrightYear"}
{forminput}
<input size="4" type="text" name="copyrightYear" id="copyrightYear" value="{$copyrightYear|escape}" />
{/forminput}
</div>
<div class="form-group">
{formlabel label="License"}
{forminput}
<a href="{$smarty.const.WIKI_PKG_URL}index.php?page={$wiki_license_page}">{tr}{$wiki_license_page}{/tr}</a>
{formhelp note=""}
{/forminput}
</div>
{if $wiki_submit_notice neq ""}
<div class="form-group">
{formlabel label="Important"}
{forminput}
{$wiki_submit_notice}
{formhelp note=""}
{/forminput}
</div>
{/if}
{/legend}
</div>
{/jstab}
{/if}
{if $gBitSystem->isFeatureActive( 'wiki_url_import' )}
{jstab title="Import HMTL"}
{legend legend="Import HMTL"}
<div class="form-group">
{formlabel label="Import HTML from URL" for="suck_url"}
{forminput}
<input type="text" size="50" name="suck_url" id="suck_url" value="{$suck_url|escape}" />
{formhelp note=""}
{/forminput}
</div>
<div class="form-group">
{forminput label="checkbox"}
<input type="checkbox" name="parsehtml" id="parsehtml" {if $parsehtml eq 'y'}checked="checked"{/if} />Try to convert HTML to wiki
{formhelp note=""}
{/forminput}
</div>
<div class="form-group submit">
<input type="submit" class="btn btn-default" name="do_suck" value="{tr}Import{/tr}" />
</div>
{/legend}
{/jstab}
{/if}
{/jstabs}
<div class="form-group submit">
<input type="submit" class="btn btn-default" name="fCancel" value="{tr}Cancel{/tr}" />
<input type="submit" class="btn btn-default" name="preview" value="{tr}Preview{/tr}" />
<input type="submit" class="btn btn-primary" name="fSavePage" value="{tr}Save{/tr}" />
</div>
{/form}
</div><!-- end .body -->
</div><!-- end .admin -->
{/strip}
|