<dtml-var standard_html_header>

<div class="Desktop">

<dtml-if message>
 <p>&dtml-message;</p>
 <hr>
</dtml-if>


<div class="Metadata">

<h2>Resource Metadata </h2>

<dtml-let effectiveString="effective_date and effective_date.ISO() or 'None'"
          expirationString="expiration_date and expiration_date.ISO() or 'None'"
>

<form action="metadata_edit" method="post">
<table class="FormLayout">
 <tr valign="top">
  <th align="right"> Identifier
  </th>
  <td colspan="3"> <dtml-var Identifier>
  </td>
 </tr>
 <tr valign="top">
  <th align="right"> Title
  </th>
  <td colspan="3">
   <input type="text"
          name="title"
          value="&dtml-Title;"
          size="65">
  </td>
 </tr>
 <tr valign="top">
  <th align="right"> Description
  </th>
  <td colspan="3">
   <textarea name="description:text" rows="5"
             cols="65">&dtml-Description;</textarea>
  </td>
 </tr>

 <tr valign="top">
  <th align="right"> Subject </th>
  <td>
   <dtml-let contentSubject=Subject
             allowedSubjects="portal_metadata.listAllowedSubjects( this() )"
   >
   <dtml-comment>
       Comment out / delete this to enforce that Subject is drawn from
       a controlled vocabulary.
   </dtml-comment>
     <textarea name="subject:lines" rows="3"
               cols="20"><dtml-in Subject
                ><dtml-let item=sequence-item
                ><dtml-unless expr="item in allowedSubjects"
                ><dtml-var sequence-item>
                </dtml-unless></dtml-let></dtml-in></textarea>
   <dtml-comment>
       Comment out / delete this to ignore controlled vocabulary 
       for Subject.
   </dtml-comment>
   <br>
    <select name="subject:list" multiple>
     <dtml-in allowedSubjects>
     <dtml-let item=sequence-item
               sel="item in contentSubject and 'selected' or ''"
     >
      <option value="&dtml-sequence-item;"
              &dtml-sel;> &dtml-sequence-item; </option>
     </dtml-let>
     </dtml-in>
    </select>
   </dtml-let>
  </td>
  <th align="right"> Contributors </th>
  <td>
   <textarea name="contributors:lines" rows="5"
             cols="30"><dtml-in Contributors><dtml-var sequence-item>
</dtml-in></textarea>
  </td>
 </tr>
 <tr valign="top">
  <th align="right"> Creation Date
  </th>
  <td> <dtml-var CreationDate>
  </td>
  <th align="right"> Last Modified Date
  </th>
  <td> <dtml-var ModificationDate>
  </td>
 </tr>
 <tr valign="top">
  <th align="right"> Effective Date
  </th>
  <td> <input type="text" name="effective_date"
                          value="&dtml-effectiveString;">
  </td>
  <th align="right"> Expiration Date
  </th>
  <td> <input type="text" name="expiration_date"
                          value="&dtml-expirationString;">
  </td>
 </tr>
 <tr valign="top">
  <th align="right"> Format
  </th>
  <td> <input type="text" name="format" value="&dtml-Format;">
  </td>
 </tr>
 <tr valign="top">
  <th align="right"> Language
  </th>
  <td> <input type="text" name="language" value="&dtml-Language;">
  </td>
 </tr>
 <tr valign="top">
  <th align="right"> Rights
  </th>
  <td> <input type="text" name="rights" value="&dtml-Rights;">
  </td>
 </tr>
 <tr valign="top">
  <td> <br> </td>
  <td>
       <input type="submit" name="change" value=" Change ">
  <br> <input type="submit" name="change_and_edit" value=" Change & Edit ">
  <br> <input type="submit" name="change_and_view" value=" Change & View ">
  </td>
 </tr>
</table>
</form>

</dtml-let>

</div>

</div>

<dtml-var standard_html_footer>
