[Zope-CVS] CVS: Packages/Moztop/moztop/content/Content/File - newfile.xul:1.1

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


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

Added Files:
	newfile.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/File/newfile.xul ===
<?xml version="1.0"?>

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

<dialog id="newfile" title="New File"
        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 File"/>
  <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>