<div>
  <h2>Report View</h2>
  <h3><a name='show_link'>View <span name='displayName'/></a></h3>
    <p>This report view is based on the report <a name="report_link"><span name='reportName' /></a></p>
  <span name='has_default_display' ifset='true'>
    <h3><a name='clear_default_display_link'>Clear Default Display</a></h3>
  </span>
  <p>Select the fields and any aggregate data you want in this report view.  You may drag and drop fields to change their displayed order</p>
  <table class='multiFormTable reportviews' cellpadding="0" cellspacing="0" border="0" id='container' >
    <tr>
	<th colspan='2'>
	  Reported View Information
	</th>
    </tr>
    <tr>
      <td>
	<h3>Display Name:</h3>
	A short descriptive name of this report
      </td>
      <td>
	<input name='displayName' type='text' value='' class='validate=[nonempty]'/>
      </td>
    </tr>
    <tr >
      <td>
	<h3>Description:</h3>
	A longer description of this report
      </td>
      <td>
	<textarea name='description'  rows='4' cols='53' value=''/>
      </td>
    </tr>
    <tr task='custom_reports_admin'>
      <td>
	<h3>Report View Permissions:</h3>
	Select a task to limit the viewing of this report to the selected task. 
      </td>
      <td>
	<select name='limit_view_to_task'  >
	  <option value=''>Do Not Limit Viewing Of This Report</option>
	</select>
      </td>      
    </tr>
    <tr permission='role(admin) or task(custom_reports_admin)'>
      <td colspan='2'>
	<input name='disable_hide' type='hidden' value='1'/>
	<input name='disable' id='disable' type='checkbox' value='1'/>
	<h3>Disable:</h3>
	Disable this report from non-administrative users.
      </td>
    </tr>
    <tr>
      <td colspan='2'>
	<input name='total_hide' type='hidden' value='1'/>
	<input name='total' id='total' type='checkbox' value='1'/>
	<h3>Include Total:</h3>
	Include a total number of rows for this view.
      </td>
    </tr>
    <tr>
      <td>
	<h3>Related Views</h3>
      </td>
      <td>
	<select name='related_views[]' multiple='multiple' size='10'>
	</select>
      </td>
    </tr>
    <tr>
      <th colspan='2'>
	Reported Fields
      </th>
      </tr>
  </table>
  <div id='fields_fill'/>

  <br/>  <br/>

  <span task='custom_reports_admin' name='has_display_editors' ifset='true' id='display_editors'>
    <h2> <a id='displays_link'>Edit Display Options</a></h2>
    <div id='displays_ajax'  class='indented'/>
  </span>

</div>
