approved
%STARTINCLUDE%<div class="foswikiPageForm foswikiHideOnPrint clearfix %ENCODE{"%WORKFLOWSTATE{"%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%" rev="%URLPARAM{"rev"}%"}%" old=" " new="_"}%">
%IF{"$'URLPARAM{rev}'='' and '%WORKFLOWSTATE{"%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%" format="$numactions"}%'>0"
then="<div class='foswikiRight'>$percntBUTTON{\"%TRANSLATE{"Change State"}%\" href=\"#changeStateDialog\" class=\"jqUIDialogLink\"}$percnt</div>"
}%<table class='foswikiLayoutTable foswikiHideOnPrint'>
%WORKFLOWSTATE{
"%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%"
rev="%URLPARAM{"rev"}%"
format="<tr class='message'>
<th>%TRANSLATE{"Message"}%</th>
$percntIF{
\"'$state'!='%APPROVED_STATE{default="approved"}%'\"
then=\"<td class='foswikiAlert'> $percntJQICON{\"fa-exclamation-triangle\"}$percnt\"
else=\"<td class='foswikiOK'>$percntJQICON{\"fa-check-circle\"}$percnt\"
}$percnt $percntTRANSLATE{\"$message\"}$percnt</td>
</tr>$percntIF{
\"'$percntENCODE{\"$comment\" type=\"quote\"}$percnt'!=''\"
then=\"<tr>
<th>Comment</th>
<td>$comment</th>
</tr>\"
}$percnt"
}%%WORKFLOWSTATE{
"%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%"
rev="%URLPARAM{"rev"}%"
state="%APPROVED_STATE{default="approved"}%"
hidenull="on"
format="<tr class='last'>
<th>%TRANSLATE{"Last in [_1]" args="$state"}%</th>
<td>$time | [[$user]] | <a href='%SCRIPTURLPATH{"view"}%/$web/$topic?rev=$rev'>%TRANSLATE{"View"}%</a> | <a href='%SCRIPTURLPATH{"compare"}%/$web/$topic?rev1=$rev&rev2=%NATMAXREV%'>%TRANSLATE{"Diff"}%</a></td>
</tr>"
}%</table>
</div>
<div id="changeStateDialog" title="%TRANSLATE{"Change State"}%" class="jqUIDialog foswikiHideOnPrint" style="display:none" data-modal="true" data-position="center" data-width="540" data-cached="true">
<form class="workflowChangeStateForm" action="%SCRIPTURLPATH{"rest"}%/WorkflowPlugin/changeState" method="post">
<input type='hidden' name='WORKFLOWSTATE' value='%WORKFLOWSTATE{"%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%"}%' />
<input type='hidden' name='topic' value='%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%' />
<input type='hidden' name='t' value='%GMTIME{"$epoch"}%' />
<div class="foswikiFormSteps">
<div class="foswikiFormStep">
<h3>%TRANSLATE{"New State"}%:</h3>
%FORMATLIST{"%WORKFLOWSTATE{"%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%" format="$actions"}%"
split="\s*,\s*"
selection="^(%FORMATLIST{"%WORKFLOWSTATE{"%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%" format="$actions"}%" split="\s*,\s*" limit="1"}%)$"
marker="checked='checked'"
format="<label><input type='radio' name='WORKFLOWACTION' $marker value='$1'>$1</label>"
separator="$n"
}%
</div>
<div class='foswikiFormStep'>
<h3>%TRANSLATE{"Comment"}%:</h3>
<input type="text" name="WORKFLOWCOMMENT" size="60" class="foswikiInputField" />
</div>
</div>
<a class="jqUIDialogButton jqUIDialogSubmit {icon:'ui-icon-circle-check'}">%MAKETEXT{"Submit"}%</a>
<a class="jqUIDialogButton jqUIDialogClose {icon:'ui-icon-cancel'}">%MAKETEXT{"Cancel"}%</a>
</form>
</div>%STOPINCLUDE%
| Comment | $comment |
|---|---|
| Last in $state | $time | User | View | Diff |
| TopicType | TopicFunction, DocuTopic, ApplicationTopic, WikiTopic |
| TopicTitle | |
| Summary | renders an info block at the top of a ControlledTopic |
| WikiApplication | ClassificationApp |