twingle/twingle/content/workspace newarticle.xul,NONE,1.1

[email protected] Mon, 10 Mar 2003 03:38:36 -0700 (MST)
Newsgroups gmane.comp.cms.oscom.twingle.cvs
Message-ID <[email protected]>
Update of /cvs/root/twingle/twingle/content/workspace
In directory alpha.oscom.org:/tmp/cvs-serv23880

Added Files:
	newarticle.xul 
Log Message:
Dialog box for creating a new piece of content

--- NEW FILE: newarticle.xul ---
<?xml version="1.0"?>

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

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

<script>
function doOK()
{
  var sitesds = window.arguments[0]; 
  var t = sitesds.titleprop;
  var title = document.getElementById("field_title").value;
  var description = document.getElementById("field_description").value;
  sitesds.PUT("urn:twingle:sites:localsite:inbox",
		       null,title)
  return true;
}

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

<groupbox>
  <caption label="New Article"/>
  <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>