<% doinline = 'style="display:inline-block;vertical-align:top"' if inline else "" %>
<section id="formulaequationinput_${id}" class="inputtype formulaequationinput" ${doinline}>
  <div class="${status.classname}" id="status_${id}">
    <input type="text" name="input_${id}" id="input_${id}"
        data-input-id="${id}" value="${value|h}"
        aria-label="${label}"
        aria-describedby="${id}_status"
        % if size:
        size="${size}"
        % endif
        />
    ${trailing_text | h}

      <span class="status" id="${id}_status" data-tooltip="${status.display_tooltip}">
        <span class="sr">
          ${status.display_name}
        </span>
      </span>

      <p id="answer_${id}" class="answer"></p>

      <div id="input_${id}_preview" class="equation">
        \(\)
        <img src="${STATIC_URL}images/spinner.gif" class="loading" alt="Loading"/>
      </div>
  </div>

  <div class="script_placeholder" data-src="${previewer}"/>

  % if msg:
      <span class="message">${msg|n}</span>
  % endif
</section>
