[zopeorg-checkins] CVS: Products/ZopeOrg-NV/skins/zopeorg_products - howto_edit.py:1.1 howto_edit_form.pt:1.1 howto_view.pt:1.1 tip_edit.py:1.1 tip_edit_form.pt:1.1 tip_view.pt:1.1

Sidnei da Silva sidnei at x3ng.com.br
Mon Jan 20 09:17:29 EST 2003


Update of /cvs-zopeorg/Products/ZopeOrg-NV/skins/zopeorg_products
In directory cvs.zope.org:/tmp/cvs-serv8482/skins/zopeorg_products

Added Files:
	howto_edit.py howto_edit_form.pt howto_view.pt tip_edit.py 
	tip_edit_form.pt tip_view.pt 
Log Message:
Two new types: CaseStudy and ZopeServiceProvider. Management skins to come later. Reorganizing FS layout.


=== Added File Products/ZopeOrg-NV/skins/zopeorg_products/howto_edit.py ===
## Script (Python) "howto_edit"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=text_format, text, file, SafetyBelt
##title=
##
context.edit(text_format, text, file, SafetyBelt)
context.REQUEST.RESPONSE.redirect(context.REQUEST.URL1 +
 '/howto_edit_form?portal_status_message=Document%20changed.')

=== Added File Products/ZopeOrg-NV/skins/zopeorg_products/howto_edit_form.pt ===
<html metal:use-macro="here/main_template/macros/master">

<head>
<title tal:content="here/Title">Howto Edit Form</title>
<link rel="stylesheet" type="text/css" href="/portal/Global.css" />
</head>
<body>

<div metal:fill-slot="main">

   <h2>Edit <span tal:replace="here/id">This</span></h2>
   
   <form action="howto_edit" method="post" enctype="multipart/form-data">
    <input type="hidden" name="SafetyBelt"
           tal:attributes="value here/SafetyBelt">
    <table>
      <tr><th>Title</th><td tal:content="here/Title">Howto Title</td></tr>
      <tr><th>Description</th><td
    tal:content="here/description">This is a good HowTo.</td></tr>
      <tr><th>Format</th>
          <td><input type="radio" name="text_format"
                     value="structured-text"
                     tal:attributes="checked python: path('here/text_format') == 'structured-text'" />
	      <label for="cb_structuredtext">structured-text</label>
	      <input type="radio" name="text_format" value="html"
              tal:attributes="checked python: path('here/text_format') == 'html'" />
	      <label for="cb_html">html</label>
          </td>
      </tr>
      <tr><th> Upload </th><td><input type="file" name="file" size="25"></td></tr>
      <tr><th class="TextField"> Edit </th>
          <td class="TextField">
          <textarea name="text:text" rows="20" cols="80"
                    tal:content="here/EditableBody">edit me!</textarea>
          </td>
      </tr>
      <tr><td> <br /> </td>
          <td><input type="submit" value=" Change "></td>
      </tr>
    </table>
   </form>

  </div>
</body>
</html>


=== Added File Products/ZopeOrg-NV/skins/zopeorg_products/howto_view.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      metal:use-macro="here/main_template/macros/master">
<body>
<div metal:fill-slot="main">

<div class="Desktop">
 <table>
 <tr>
          <td height="20">
<div class="aTitle" tal:content="structure here/Title">Document Title</div></td></tr>
  <tr valign="top">
          <td height="1" bgcolor="#000000"><img src="../zpt_images/c.gif" width="360" height="1" border="0" alt=""
                                                          tal:attributes="src string:c.gif"></td>
        </tr>
		<tr><td>&nbsp;</td></tr>
  <tr>
    <td><div metal:use-macro="here/content_byline/macros/byline">By Me</div></td>
  </tr>
  <tr>
    <td><div class="Description" tal:content="here/Description"></div></td>
  </tr>
  <tr>
    <td><div tal:replace="structure here/CookedBody">Cooked Body</div></td>
  </tr>
  <tr>
  <td><div class="Discussion">
   <span tal:replace="structure here/viewThreadsAtBottom"
         tal:condition="here/viewThreadsAtBottom|nothing"></span>
  </div>
  </td>
  </tr>
  </table>
</div>
</div>
</body>
</html>


=== Added File Products/ZopeOrg-NV/skins/zopeorg_products/tip_edit.py ===
## Script (Python) "tip_edit"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=text_format, text, file, SafetyBelt
##title=
##
context.edit(text_format, text, file, SafetyBelt)
context.REQUEST.RESPONSE.redirect(context.REQUEST.URL1 +
 '/tip_edit_form?portal_status_message=Document%20changed.')

=== Added File Products/ZopeOrg-NV/skins/zopeorg_products/tip_edit_form.pt ===
<html metal:use-macro="here/main_template/macros/master">

<head>
<title tal:content="here/Title">Howto Edit Form</title>
<link rel="stylesheet" type="text/css" href="/portal/Global.css" />
</head>
<body>

<div metal:fill-slot="main">

   <h2>Edit <span tal:replace="here/id">This</span></h2>
   
   <form action="howto_edit" method="post" enctype="multipart/form-data">
    <input type="hidden" name="SafetyBelt"
           tal:attributes="value here/SafetyBelt">
    <table>
      <tr><th>Title</th><td tal:content="here/Title">Howto Title</td></tr>
      <tr><th>Description</th>
          <td tal:content="here/description">This is a good Tip.</td>
      </tr>
      <tr><th>Format</th>
          <td><input type="radio" name="text_format"
                     value="structured-text"
                     tal:attributes="checked python: path('here/text_format') == 'structured-text'" />
	      <label for="cb_structuredtext">structured-text</label>
	      <input type="radio" name="text_format" value="html"
              tal:attributes="checked python: path('here/text_format') == 'html'" />
	      <label for="cb_html">html</label>
          </td>
      </tr>
      <tr><th> Upload </th><td><input type="file" name="file" size="25"></td></tr>
      <tr><th class="TextField"> Edit </th>
          <td class="TextField">
          <textarea name="text:text" rows="10" cols="80"
                    tal:content="here/EditableBody">edit me!</textarea>
          </td>
      </tr>
      <tr><td> <br /> </td>
          <td><input type="submit" value=" Change "></td>
      </tr>
    </table>
   </form>

  </div>
</body>
</html>


=== Added File Products/ZopeOrg-NV/skins/zopeorg_products/tip_view.pt ===
<html metal:use-macro="here/main_template/macros/master">

<head>
<title tal:content="here/Title">Master Template</title>
<link rel="stylesheet" type="text/css" href="/portal/Global.css" />
</head>
<body>
<table>
   <tr><td>this will be a navbar, some day</td></tr>
</table>
<div metal:fill-slot="main">
    <div tal:replace="structure here/content_byline">by bob</div>
    <div tal:replace="structure here/CookedBody">bob's news</div>
    <div tal:replace="structure here/viewThreadsAtBottom">bob sucks.</div>
  </div>
 <p>powered by that z thing</p>
</body>
</html>





More information about the zopeorg-checkins mailing list