<div>
  <div class="linkModal">
    <h1><%- insertHeading %></h1>

    <div class="linkTypes pat-autotoc autotabs"
         data-pat-autotoc="section:fieldset;levels:legend;IDPrefix:tinymce-autotoc-">

        <% if(_.contains(linkTypes, 'image')){ %>
      <fieldset class="linkType image" data-linkType="image">
        <legend id="tinylink-image">Internal Image</legend>
        <div class="form">
          <div class="form-group main">
            <input type="text" name="image" />
          </div>
          <div class="form-group scale">
            <label><%- scaleText %></label>
            <select name="scale">
              <option value="">Original</option>
                <% _.each(scales, function(scale){ %>
                  <option value="<%- scale.part %>" <% if(scale.name === options.defaultScale){ %>selected<% } %> >
                    <%- scale.label %>
                  </option>
                <% }); %>
            </select>
          </div>
        </div>
      </fieldset>
        <% } %>

      <% if(_.contains(linkTypes, 'externalImage')){ %>
      <fieldset class="linkType externalImage" data-linkType="externalImage">
        <legend id="tinylink-externalImage">External Image</legend>
        <div>
          <div class="form-group main">
            <label><%- externalImageText %></label>
            <input type="text" name="externalImage" />
          </div>
        </div>
      </fieldset>
      <% } %>

    </div><!-- / tabs -->

    <div class="common-controls">
      <div class="form-group text">
        <label>Summary</label>
        <input type="text" name="alt" />
      </div>
      <div class="form-group align">
        <label><%- imageAlignText %></label>
        <select name="align">
          <% _.each(['inline', 'right', 'left'], function(align){ %>
              <option value="<%- align %>">
              <%- align.charAt(0).toUpperCase() + align.slice(1) %>
              </option>
          <% }); %>
        <select>
      </div>
    </div>

    <input type="submit" class="plone-btn" name="cancel" value="<%- cancelBtn %>" />
    <input type="submit" class="plone-btn plone-btn-primary context" name="insert" value="<%- insertBtn %>" />

  </div>
</div>
