[% 
    data = article.data ;

    IF data.articleid ; THEN ; editmode = 'Edit' ; ELSE ; editmode = 'Add' ; END ;
    title = editmode _ ' Article' ;
%]

[% INCLUDE "public/tinymce.html" %]

[% data = article.data %]

<div class="boxer">

[% IF thanks %]<p>Article saved successfully.[% END %]
<p>Fields marked * are mandatory fields and must be completed.

[% IF errmess %]
<p class="alert">There are invalid or missing fields, as noted by the &empty; symbol.
[% IF errmess == 2 %]
<p class="alert">Please note that the title must be unqiue.
[% END %]
[% END %]
</div>

<form method="post" action="[% cgipath %]/pages.cgi" id="EDIT" name="EDIT" enctype="multipart/form-data">
<input type="hidden" name="act" value="arts-save" />
[% INCLUDE "articles/arts-adminblock.html" %]
</form>

[% INCLUDE "articles/arts-preview.html" %]
