[zopeorg-checkins] CVS: Products/ZopeOrg-NV/skins/nzo - login_slot.pt:1.1 main_template.pt:1.1
Brian Lloyd
brian at zope.com
Fri Jul 18 14:29:12 EDT 2003
Update of /cvs-zopeorg/Products/ZopeOrg-NV/skins/nzo
In directory cvs.zope.org:/tmp/cvs-serv11336
Added Files:
login_slot.pt main_template.pt
Log Message:
add override login_slot, main template
=== Added File Products/ZopeOrg-NV/skins/nzo/login_slot.pt ===
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
i18n:domain="plone">
<body tal:define="Iterator python:modules['Products.CMFPlone'].IndexIterator;
tabindex python:Iterator()">
<!-- The Log in box -->
<div metal:define-macro="loginBox"
tal:omit-tag=""
tal:condition="here/portal_membership/isAnonymousUser">
<div class="box" tal:define="portal_url here/portal_url">
<h5 i18n:translate="box_sign_in">Log in</h5>
<div class="body">
<div class="content odd">
<form action="logged_in"
method="post"
tal:attributes="action string:$portal_url/logged_in">
<input type="hidden" name="came_from" value=""
tal:condition="python:request.get('came_from', '')"
tal:attributes="value request/came_from;
tabindex tabindex/next" />
<strong i18n:translate="label_user_name">Name</strong> <br />
<input type="text" name="__ac_name" size="12"
tal:attributes="value python:request.get('__ac_name', ''); tabindex tabindex/next" alt="Username" title="Username" i18n:attributes="alt" />
<br />
<strong i18n:translate="label_password">Password</strong> <br />
<input tal:attributes="tabindex tabindex/next" type="password" name="__ac_password" size="12" alt="Password" title="Password" i18n:attributes="alt" />
<br />
<br />
<input class="context searchButton"
type="submit"
name="submit"
value="Log in"
tal:attributes="tabindex tabindex/next"
i18n:attributes="value"/>
</form>
</div>
<div class="content even">
<a href="mail_password_form"
tal:attributes="href string:$portal_url/mail_password_form">
<img tal:replace="structure here/linkTransparent.gif" />
<span tal:omit-tag="" i18n:translate="box_forgot_password_option">Forgot your password?</span>
</a>
</div>
<div class="content odd"
tal:define="
actions python:here.portal_actions.listFilteredActionsFor(here);
join python:actions and [a['url'] for a in actions.get('user', []) if a['id']=='join']"
tal:condition="python:test(join and hasattr(here,'portal_registration') and here.portal_membership.checkPermission('Add portal member', here), 1, 0)">
<a href="" tal:attributes="href python:join.pop()">
<img tal:replace="structure here/linkTransparent.gif" />
<span tal:omit-tag="" i18n:translate="box_new_user_option">New user?</span>
</a>
</div>
</div>
</div>
</div>
</body>
</html>
=== Added File Products/ZopeOrg-NV/skins/nzo/main_template.pt ===
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en"
lang="en"
metal:define-macro="master"
tal:define="member here/portal_membership/getAuthenticatedMember;
portal here/portal_url/getPortalObject;
global portal_url portal;
actions python:here.portal_actions.listFilteredActionsFor(here);
site_properties here/portal_properties/site_properties;
ztu modules/ZTUtils;
actions options/actions|actions|nothing;
obj_actions actions/object;
wf_actions actions/workflow;
folder_actions actions/folder;
local_actions python:actions.get('object_tabs', []);
isFolder python:test(here.getTypeInfo().getId() in site_properties.use_folder_tabs,1,0);
template_id options/template_id|template_id|template/getId|nothing;
slots_mapping options/slots_mapping|here/prepare_slots|nothing;
Iterator python:modules['Products.CMFPlone'].IndexIterator;
tabindex python:Iterator(pos=30000);"
tal:attributes="lang site_properties/default_language|default;
xml:lang site_properties/default_language|default;">
<head metal:use-macro="here/header/macros/html_header">
<metal:block metal:fill-slot="base">
<metal:block metal:define-slot="base">
<base href=""
tal:condition="here/aq_explicit/isPrincipiaFolderish|nothing"
tal:attributes="href python:here.absolute_url()+'/'" />
<metal:block tal:condition="not:here/aq_explicit/isPrincipiaFolderish|nothing">
<base href=""
tal:define="path python:'/'.join(here.portal_url.getRelativeContentPath(here)[:-1])"
tal:attributes="href python:here.portal_url()+'/'+path+test(len(path)>0,'/','')" />
</metal:block>
</metal:block>
</metal:block>
<metal:block fill-slot="head_slot"
tal:define="language here/Language;
lang python:test(language,
language,
site_properties.default_language);
charset site_properties/default_charset|string:utf-8">
<metal:block tal:define="dummy python:request.RESPONSE.setHeader('Content-Type', 'text/html;;charset=%s' % charset)" />
<metal:block tal:define="dummy python:request.RESPONSE.setHeader('Content-Language', lang)" />
<metal:block tal:define="dummy python:request.RESPONSE.setHeader('Expires', 'Sat, 1 Jan 2000 00:00:00 GMT')" />
<metal:block tal:define="dummy python:request.RESPONSE.setHeader('Pragma', 'no-cache')" />
<metal:block tal:define="dummy python:request.RESPONSE.setHeader('Last-Modified', DateTime().toZone('GMT').rfc822())" />
<metal:block define-slot="head_slot" />
</metal:block>
<metal:block fill-slot="css_slot">
<metal:block define-slot="css_slot" />
</metal:block>
<metal:block fill-slot="javascript_head_slot">
<metal:block define-slot="javascript_head_slot" />
</metal:block>
</head>
<body>
<div metal:use-macro="here/header/macros/portal_header">
Header stuff
</div>
<table class="columns">
<tbody>
<tr>
<td class="left" metal:define-macro="left_column"
tal:define="slots_mapping options/slots_mapping|slots_mapping|nothing;
site_properties options/site_properties|site_properties|nothing;
portal_url options/portal_url|portal_url|nothing;
Iterator python:modules['Products.CMFPlone'].IndexIterator;
tabindex python:Iterator(pos=10000);"
tal:condition="slots_mapping/left|nothing">
<metal:block tal:repeat="slot slots_mapping/left|slots_mapping/left">
<tal:block tal:define="global pathexpr python:slot[0];
global usemacro python:slot[1]"
tal:condition="usemacro">
<metal:block metal:use-macro="python:path(pathexpr)" />
</tal:block>
<span tal:condition="not: usemacro"
tal:replace="structure python:path(pathexpr)" />
</metal:block>
</td>
<td class="main"
tal:define="global show_border python:here.showEditableBorder( template_id=template_id
, actions=actions );
Iterator python:modules['Products.CMFPlone'].IndexIterator;
tabindex python:Iterator(pos=0);">
<metal:block define-slot="super"
tal:condition="show_border" >
<div id="contentTabs" metal:define-macro="contentTabs"
tal:define="isFolder options/isFolder|isFolder|nothing;
folder_actions options/folder_actions|folder_actions|nothing;
local_actions options/local_actions|local_actions|nothing;
obj_actions options/obj_actions|obj_actions|nothing;
template_id options/template_id|template_id|nothing"
i18n:domain="plone">
<tal:block tal:repeat="action python:test(isFolder, folder_actions+obj_actions+local_actions, obj_actions+local_actions)">
<a class="" href=""
tal:attributes="class python:test(action['url'][action['url'].rfind('/')+1:]==template_id, 'selected', 'plain');
href action/url;">
<span tal:omit-tag="" i18n:translate=""><span tal:replace="action/name">dummy</span></span>
</a>
</tal:block>
</div>
<div id="contentBar">
</div>
</metal:block>
<div class="document"
tal:attributes="class python:test(show_border, 'editableDocument', 'document')">
<div id="content">
<metal:block metal:use-macro="here/header/macros/portal_message">
Message box
</metal:block>
<div class="documentActions"
metal:define-macro="documentActions"
tal:define="portal_url portal_url|here/portal_url">
<metal:block define-slot="documentActions"
tal:content="nothing">
Document actions slot
</metal:block>
<a href=""
tal:condition="site_properties/allow_sendto | nothing"
tal:attributes="href python:'%s/portal_form/sendto_form' % here.absolute_url()">
<img i18n:attributes="title" alt="Send to"
tal:attributes="src string:$portal_url/mail_icon.gif"
src="mail_icon.gif" title="Send this page to somebody" />
</a>
<a href="javascript:this.print();">
<img i18n:attributes="title" alt="Print"
tal:attributes="src string:$portal_url/print_icon.gif"
src="print_icon.gif" title="Print this page" />
</a>
</div>
<metal:block metal:define-slot="header" tal:content="nothing">
Header slot
</metal:block>
<metal:block metal:define-slot="main" tal:content="nothing">
Page body text
</metal:block>
<metal:block metal:define-slot="sub">
<tal metal:use-macro="here/viewThreadsAtBottom/macros/discussionView" />
</metal:block>
</div>
</div>
</td>
<td class="right" metal:define-macro="right_column"
tal:define="slots_mapping options/slots_mapping|slots_mapping|nothing;
portal_url options/portal_url|portal_url|nothing;
Iterator python:modules['Products.CMFPlone'].IndexIterator;
tabindex python:Iterator(pos=20000);"
tal:condition="slots_mapping/right">
<metal:block tal:repeat="slot slots_mapping/right">
<tal:block tal:define="global pathexpr python:slot[0];
global usemacro python:slot[1];"
tal:condition="usemacro">
<metal:block metal:use-macro="python:path(pathexpr)" />
</tal:block>
<span tal:condition="not: usemacro"
tal:replace="structure python:path(pathexpr)" />
</metal:block>
</td>
</tr>
</tbody>
</table>
<hr size="" class="netscape4" />
<div class="footer" metal:use-macro="here/footer/macros/portal_footer">
Footer
</div>
</body>
</html>
More information about the zopeorg-checkins
mailing list