Trac / trac / wiki / templates / wiki_edit_form.html

Full commit
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns=""
      xmlns:i18n="" py:strip="">
  <form id="edit" action="${}" method="post">
    <fieldset class="${classes(sidebyside=sidebyside)}">
      <input type="hidden" name="from_editor" value="1" />
      <input type="hidden" name="action" value="edit" />
      <input type="hidden" name="version" value="$page.version" />
      <input type="hidden" id="scroll_bar_pos" name="scroll_bar_pos"
             value="$scroll_bar_pos" />
      <div id="rows">
        <py:if test="not sidebyside">
          <label for="editrows">Adjust edit area height:</label>
          <select size="1" name="editrows" id="editrows" tabindex="43">
            <option py:for="rows in range(8, 42, 4)" value="$rows"
                    selected="${str(rows) == edit_rows or None}">
        <label for="sidebyside" title="Selecting and pressing 'Preview' enters a two-column [edit|preview] mode">
          Edit side-by-side
        <input type="checkbox" name="sidebyside" id="sidebyside" checked="$sidebyside" />
      <p><textarea id="text" class="${classes('wikitext', 'trac-autofocus',
                                              'trac-resizable' if not sidebyside else None)}"
                   name="text" cols="80" rows="$edit_rows">
      <div id="help" i18n:msg="">
        <b>Note:</b> See <a href="${'WikiFormatting')}">WikiFormatting</a> and
        <a href="${'TracWiki')}">TracWiki</a> for help on editing wiki content.
    <fieldset id="changeinfo">
      <legend>Change information</legend>
      <div id="changeinfo1">
        <div py:if="authname == 'anonymous'" class="field">
          <label>Your email or username:<br />
            <input id="author" type="text" name="author" size="30" value="$author" />
          <p py:if="author == 'anonymous'" class="hint">
            <i18n:msg>E-mail address and user name can be saved in the <a href="${href.prefs()}" class="trac-target-new">Preferences</a>.</i18n:msg>
        <div class="field">
          <label>Comment about this change (optional):<br />
            <input id="comment" type="text" name="comment" size="80" value="$comment" />
      <div py:if="show_readonly_checkbox and 'WIKI_ADMIN' in perm(page.resource)"
           id="changeinfo2" class="options">
        <label><input type="checkbox" name="readonly" id="readonly"
                      checked="${page.readonly or None}" />
          Page is read-only
    <div class="buttons" py:choose="action">
      <py:when test="'collision'">
        <input type="submit" name="preview" value="${_('Preview')}" disabled="disabled" />&nbsp;
        <input type="submit" name="merge" value="${_('Merge changes')}" accesskey="r" />&nbsp;
        <input type="submit" name="save" value="${_('Submit changes')}" disabled="disabled" />&nbsp;
        <input type="submit" name="preview" value="${_('Preview Page')}" accesskey="p" />&nbsp;
        <input type="submit" name="diff" value="${_('Review Changes')}" accesskey="r" />&nbsp;
        <input type="submit" id="save" name="save" class="trac-disable-on-submit" value="${_('Submit changes')}" />&nbsp;
      <input type="submit" name="cancel" value="${_('Cancel')}" />