EduploneWebdidactics/skins/EduploneWebdidactics metadata_edit_form.cpt,NONE,1.1 metadata_edit_form.cpt.metadata,NONE,1.1

Nils Haagen <[email protected]>
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneWebdidactics/skins/EduploneWebdidactics
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26020/skins/EduploneWebdidactics

Added Files:
	metadata_edit_form.cpt metadata_edit_form.cpt.metadata 
Log Message:


--- NEW FILE: metadata_edit_form.cpt ---
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
      lang="en-US"
      metal:use-macro="here/main_template/macros/master"
      i18n:domain="cmfmetadata">

  <head><title></title></head>

  <metal:border fill-slot="head_slot">
    <tal:border define="dummy python:request.set('enable_border',1)" />
  </metal:border>

  <body>

    <div metal:fill-slot="main"
         tal:define="errors options/state/getErrors;
                     mdtool here/portal_metadata;
                     binding python:mdtool.getMetadata(here) or None;"
         >

      <h1 i18n:translate="cmfmetadata_editmetadata">Edit Metadata</h1>


      <p i18n:translate="description_edit_properties">
        This information, also referred to as <em>metadata</em> is the
        collection of information that is used to categorize an
        object, assign effectuation dates and expiration dates,
        language, and keywords.
      </p>
      <form id="metadataform"
            action=""
            method="post"
            tal:define="errors options/state/getErrors;">
            
            <h6>HAAALLLLOOOOO</h6>
            
        <input type="hidden" name="form.submitted" value="1" />
        <tal:block repeat="mdsetname python:binding.getSetNames()">
          <fieldset tal:define="mdset python:binding.getSet(mdsetname)">
            <legend tal:content="mdset/title_or_id" />
            <tal:block repeat="mdelement mdset/objectValues">

              <div class="field"
                   tal:define="mdelement_key mdelement/getFieldKey;
                               mdelement_id mdelement/id;
                               error python:errors.get(mdelement_key, None) or errors.get(mdelement_id, None);"
                   tal:attributes="class python:test(error,
                                   'field error', 'field')">

                <label tal:content="mdelement/title_or_id"
                       i18n:translate="">Label</label>

                       <span tal:condition="mdelement/isRequired"
                             class="fieldRequired"
                             title="Required"
                             i18n:domain="plone"
                             i18n:attributes="title"
                             i18n:translate="label_required">(Required)</span>

                             <div class="formHelp"
                                  tal:define="desc python:mdelement.Description()"
                                  tal:condition="desc"
                                  tal:content="structure desc"
                                  i18n:translate="">Help</div>

                                  <div tal:content="error">
                                    Validation error output
                                  </div>
                                  <div tal:define="input python:mdelement.renderEdit(value=binding[mdsetname][mdelement_id], request=request)"
                                       tal:replace="structure input"
                                       tal:attributes="tabindex tabindex/next;">
                                  </div>

              </div>


            </tal:block>
          </fieldset>
        </tal:block>

        <div class="formControls">
          <input class="context"
                 tabindex=""
                 type="submit"
                 name="submit"
                 value="Save"
                 i18n:attributes="value"
                 tal:attributes="tabindex tabindex/next;" />
        </div>
      </form>
      <div metal:use-macro="here/document_byline/macros/byline">
        Get the byline - contains details about author and modification date.
      </div>
    </div>
  </body>
</html>

--- NEW FILE: metadata_edit_form.cpt.metadata ---
[validators]
validators=cmfmetadata_validator

[actions]
action.success=traverse_to:string:cmfmetadata_save



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.