atlassian-scala-example-plugin / src / main / resources / templates / action / configuration.vm

    <title>HipChat Configuration</title>
<form action="$req.contextPath/admin/doconfigure-hipchat.action" method="post" class="aui">
    <h2>HipChat API Auth Token Configuration</h2>

    #if($actionErrors && $actionErrors.size() > 0)
    <div class="aui-message error">
        <span class="svg-icon error size-18"></span>
            #foreach($error in $actionErrors)
        <div class="aui-message success shadowed closeable">
            <p class="title">
                <span class="aui-icon icon-success"></span>
        <!-- .aui-message -->

        Confluence accesses HipChat through the HipChat API. This API is protected by an API token. To request an
        API token, go to <a href="" target="_blank">HipChat's API Auth Token
        page</a> then
        generate an <b>Admin</b> token. Copy and paste that token to the field below.

    <div class="field-group">
        <label for="hipChatAuthToken">Admin Token<span class="aui-icon icon-required"></span><span class="content"> required</span></label>
        <input id="hipChatAuthToken" class="text" type="text" name="hipChatAuthToken" value="$action.hipChatAuthToken"/>

    <div class="buttons-container">
        <div class="buttons">
            <input class="button submit" type="submit" value="Save"/>