<form class="small-form add-triple">
  <?event submit $arg.ok($node.elements.subject.value, $node.elements.predicate.value, $node.elements.object.value,
                         ($node.elements.graph && $node.elements.graph.value) || null);
          $event.stop();?>
  <table width="100%">
    <tr>
      <td>
        <p>
          <label>Subject:</label> <input type="text" name="subject" value="[?t $arg.s?]"/><?run $node.focus();?><br/>
          <label>Predicate:</label> <input type="text" name="predicate" value="[?t $arg.p?]"/><br/>
          <label>Object:</label> <input type="text" name="object" value="[?t $arg.o?]"/><br/>
          <?if showGraphNames?>
            <label>Graph:</label> <input type="text" name="graph" value="[?t $arg.g || ""?]"/>
          <?if.?>
        </p>
        <p>Use n-triples syntax for the parts, for example <code>&lt;http://foo></code>, <code>rdf:type</code>,
        or <code>"literal"^^&lt;http://foo/type></code>. <?if showGraphNames?>Leave the graph name empty to use
        the default graph.<?if.?></p>
      </td>
      <td width="1">
        <span style="visibility: hidden" id="new-triple-loading"><?msgthrob?></span>
      </td>
      <td class="buttons">
        <button type="submit">OK</button>
        <button type="button">Cancel</button><?event click $arg.cancel();?>
      </td>
    </tr>
  </table>
</form>
