Duplicate Page


Home: Socialtext Style Customization Guide
Up: Styling The Popup Windows
Previous: Styling The Popup Windows
Next: Rename Page


duplicate-page.jpg

HTML Snippet

<body id="st-popup-duplicate" class="st-popup">
  <form method="post" action="index.cgi" enctype="application/x-www-form-urlencoded">
    <p class="st-popup-title">
      Duplicate <span id="duplicate-page-page-title">"Quick Start"</span>
    </p>
    <p class="input">
      <label for="new_title" class="duplicate-page-form-element">New page name:
        <input type="text" name="new_title" value="Duplicate of Quick Start" size="34" />
      </label>
    </p>
    <p class="input">
      <label for="keep_categories" class="duplicate-page-form-element">Keep categories:
        <input type="checkbox" name="keep_categories" value="1" checked="true" />
      </label>
    </p>
    <p class="input">
      <label for="keep_attachments" class="duplicate-page-form-element">Keep attachments:
        <input type="checkbox" name="keep_attachments" value="1" checked="true" />
      </label>
    </p>
    <div id="duplicate-page-buttons">
      <input type="submit" name="Button" value="Duplicate"  class="standard-button-submit" />
      <input type="reset" name="Button" value="Cancel" onclick="window.close();return true;" class="standard-button-cancel" />
    </div>
    <input type="hidden" name="action" value="duplicate_page" />
    <input type="hidden" name="page_name" value="Quick Start" />
  </form>
  <p class="st-popup-hint">(The main window will navigate to the new page name after you click "Duplicate".)</p>
</body>

CSS Selectors

#st-popup-duplicate
.st-popup
.st-popup-title
#duplicate-page-page-title
.duplicate-page-form-element
.input
#duplicate-page-buttons
.standard-button-submit
.standard-button-cancel
.st-popup-hint