<%! from django.utils.translation import ugettext as _ %>
<section id="textbox_${id}" class="capa_inputtype textbox cminput">
  <textarea rows="${rows}" cols="${cols}" name="input_${id}" 
            aria-label="${_("{programming_language} editor").format(programming_language=mode)}" 
            aria-describedby="answer_${id}" 
            id="input_${id}" 
            tabindex="0"
            data-mode="${mode}"
            data-tabsize="${tabsize}"
            % if linenumbers:
            data-linenums="true"
            % endif
            % if hidden:
      	    style="display:none;"
            % endif
  >${value|h}</textarea>

  <div class="grader-status" tabindex="-1">
      <span id="status_${id}"
            class="${status.classname}"
            aria-describedby="input_${id}"
      >
          <span class="status sr">${status.display_name}</span>
      </span>
    % if status == 'queued':
      <span style="display:none;" class="xqueue" id="${id}">${queue_len}</span>
    % endif

    % if hidden:
      <div style="display:none;" name="${hidden}" inputid="input_${id}" />
    % endif

    <p class="debug">${status.display_name}</p>
  </div>

  <span id="answer_${id}"></span>

  <div class="external-grader-message" aria-live="polite">
    ${msg|n}
  </div>
</section>
