<?cs include:"super_util.cs" ?>

<?cs def:print_form() ?>
  <fieldset>
  <legend>
      <?cs if:subdir_empty ?>
        <?cs var:lang.super_group_description.delete_dir_msg ?> <?cs var:Query.subdir ?>
      <?cs else ?>
        <?cs var:lang.super_group_description.edit_description ?> <?cs var:Query.subdir ?>
      <?cs /if ?>
   </legend>
    <?cs if:subdir_empty ?>
     <div>
      <form method="post" action="super_group_description">
      <div>
       <input type="hidden" name="id" value="<?cs var:Query.id ?>"  />
       <input type="hidden" name="subdir" value="<?cs var:Query.subdir ?>"  />
       <input type="hidden" name="from" value="<?cs var:Query.from ?>"  />
     </div>
     <div class="center_block">
       <input type="submit"  name="delete" value="<?cs var:lang.super_group_description.delete_dir_msg ?>" title="<?cs var:lang.super_group_description.delete_dir_help ?>" />
     </div> 
     </form></div>
    <?cs /if ?>
    <div>
      <form method="post" action="super_group_description" onsubmit="return check_desc()">
      <div>
       <input type="hidden" name="id" value="<?cs var:Query.id ?>"  />
       <input type="hidden" name="subdir" value="<?cs var:Query.subdir ?>"  />
       <input type="hidden" name="from" value="<?cs var:Query.from ?>"  />
     </div>
    <table  cellspacing="0" cellpadding="4">
      <tr>
        <th align="left"><?cs var:lang.super_group_description.description.msg ?>
        <input type="text"  name="description" id="description" size="25" maxlength="25" value="<?cs var:desc ?>" title="<?cs var:lang.super_group_description.description.help ?>" /></th>
      </tr>
      <tr><th align="left"><?cs var:lang.super_group_description.notes.msg ?></th></tr>
      <tr>
       <td>
       <textarea name="notes" cols="60" rows="12" wrap="hard"  title="<?cs var:lang.super_group_description.notes.help ?>" ><?cs each:this = note ?><?cs var:this ?><?cs /each ?></textarea>
      </td>
     </tr>
     <tr><th>
       <input type="submit" class="super_color_button" name="submit" value="<?cs var:lang.super_group_description.update.msg ?>"  title="<?cs var:lang.super_group_description.update.help ?>" />
     </th></tr>
    </table>
    </form>
   </div>
</fieldset>
<?cs /def ?>

<?cs call:html_header() ?>
   <head>
      <title><?cs var:lang.super_group_description.page_title ?></title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <link rel="StyleSheet" href="<?cs var:image_path ?>super_template.css" type="text/css"  />
   <script type="text/javascript" src="<?cs var:image_path ?>form_validation.js"></script>
    <?cs call:addDoIMenu()   ?> 
	<script type="text/javascript">
   function check_desc()
   {
      var value = document.getElementById('description').value;
      if(is_whitespace(value))
      {
        window.alert('<?cs var:lang.super_group_description.alert_msg ?>');
        return false;
      }
     return true;
   } 
   </script>
  </head>

<body onload="document.getElementById('description').focus()">
<div id="container">
 <?cs call:top_container() ?>
 <?cs call:doIMenu() ?>
 <div id="content">
 <?cs call:print_form() ?>
 </div>
</div>
</body>
</html>
<?cs call:runtime() ?>
