#*
UPDATE THIS COMMENT SECTION EVERYTIME YOU ADD/CHANGE/REMOVE A VARIABLE FROM THIS TEMPLATE !!!

-- Required action variables:
- $page
- $labelsString
- $suggestedLabels

-- Required action methods:
- $generalUtil.safeSubList($suggestedLabels, 20) - used by editpage-suggestedlabels.vm

-- Required velocity variables:
*#
#requireResource("confluence.web.resources:prototype")
#requireResource("confluence.web.resources:scriptaculous")
#requireResource("confluence.web.resources:ajs")
#requireResource("confluence.web.resources:labels-editor")

<fieldset class="hidden parameters">
    <input type="hidden" id="editLabel" value="$action.getText('edit.name')">
    <input type="hidden" id="doneLabel" value="$action.getText('done.name')">
    <input type="hidden" id="pageId" value="$pageId">
</fieldset>

<div id="labels_tab">
    <span class="formtitle">$action.getText("labels.name"): </span>
    <a href="" class="inline-control-link" id="labels_edit_link">$action.getText("edit.name")</a>
</div>
<div id="labels_info">
   $generalUtil.htmlEncode($!labelsString)
</div>

<div id="labels_div" class="toggleFormDiv editor-panel hidden" style="padding: 8px;">
    <table width="100%">
        <tr>
            <td width="60%" valign="top">
                <span class="error">
                    <span class="errorMessage" id="errorSpan"></span>
                </span>
                #fielderror ('labelsString')
                <input autocomplete="off" type="text" id="labelsString" name="labelsString" value="$generalUtil.htmlEncode($!labelsString)" class="monospaceInput" style="width:100%;" />
                <div class="smalltext">$action.getText("tip.start.typing")</div>
                <div class="auto_complete" id="labelsAutocompleteList"></div>
            </td>
            <td valign="top">
                <div id="suggestedLabelsSpan" style="margin-top:5px;">
                </div>
            </td>
        </tr>
    </table>
</div>
