#if ($action.themeSet)
    <p class="errorbox">$action.getText("theme.set")</p>
#else
    #parse ("/template/includes/actionerrors.vm")
    #set ($lastType = "blah")
    #foreach ($decorator in $action.decorators)
        #if ($lastType != $decorator.type)
            #if ($lastType != "blah")
                </table></div>
            #end

            #set ($lastType = $decorator.type)
            <div class="steptitle">$action.getText($decorator.typeNameKey)</div>
            <p>$action.getText($decorator.typeDescriptionKey)</p>
            <div align="left" style="margin-bottom:20px;">
            <table class="grid" border="0" style="width:100%;">
                <tr>
                    <th width="60%">$action.getText("heading.decorator")</th>
                    <th nowrap>$action.getText("heading.operations")</th>
                </tr>
        #end

        <tr>
            <td valign="top"><strong>$action.getText($decorator.nameKey)</strong>
                <div class="smalltext" style="margin-left: 2em;">$action.getText($decorator.descriptionKey)</div></td>
            </td>
            <td valign="top">
                #if ($action.hasTemplate($decorator.fileName))
                    <a href="editdecorator.action?decoratorName=$decorator.fileName#if ($key)&key=$generalUtil.urlEncode(${key})#end">$action.getText("edit.name")</a>
                    |
                    <a href="resetdecorator.action?decoratorName=$decorator.fileName#if ($key)&key=$generalUtil.urlEncode(${key})#end&#url_xsrfToken()">$action.getText("reset.default")</a>
                #else
                    &lt; $action.getText("default") &gt;
                    |
                    <a href="editdecorator.action?decoratorName=$decorator.fileName#if ($key)&key=$generalUtil.urlEncode(${key})#end">$action.getText("create.custom")</a>
                #end
                    |
                    <a href="viewdefaultdecorator.action?decoratorName=$decorator.fileName#if ($key)&key=$generalUtil.urlEncode(${key})#end">$action.getText("view.default")</a>
            </td>
        </tr>
    #end
#end
</table></div>
