[Zope-CVS] CVS: Packages/Moztop/moztop/content/Content/ZPTPage - newzptpage.xul:1.1

Paul Everitt paul@zope.com
Mon, 10 Mar 2003 17:54:18 -0500


Update of /cvs-repository/Packages/Moztop/moztop/content/Content/ZPTPage
In directory cvs.zope.org:/tmp/cvs-serv21883/Content/ZPTPage

Added Files:
	newzptpage.xul 
Log Message:
All commands for new content items are now plugged in and popup dialog boxes under Content directories

=== Added File Packages/Moztop/moztop/content/Content/ZPTPage/newzptpage.xul ===
<?xml version="1.0"?>

<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>

<dialog id="newpagetemplate" title="New Page Template"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        buttons="accept,cancel"
        ondialogaccept="return doOK();"
        ondialogcancel="return doCancel();">

<script>
function doOK()
{
  var sitesmanager = window.arguments[0]; 
  var t = sitesmanager.titleprop;
  var title = document.getElementById("field_title").value;
  var description = document.getElementById("field_description").value;
  sitesmanager.PUT();
  return true;
}

function doCancel()
{
  return true;
}
</script>

<groupbox>
  <caption label="New Page Template"/>
  <grid flex="1">
      <columns>
        <column/>
        <column flex="1"/>
      </columns>
      <rows>
        <row>
          <label control="field_title" value="Title"/>
          <textbox id="field_title" flex="1"/>
        </row>
        <row>
          <label control="field_description" value="Description"/>
          <textbox id="field_description" flex="1"/>
        </row>
      </rows>
  </grid>
</groupbox>

</dialog>