<h2><?php echo $header ?></h2>
<?php if ($errors) { ?>
Please correct these errors:
 <ul><li><?php echo implode('</li><li>', $errors); ?></li></ul>
<?php } // if($errors) ?>
<form method="POST" action="addSubject.php" id="add">
<dl>
<dt><?php echo Config::$subjectDescription ?>'s Name: </dt>
  <dd><?php echo $form->text(Config::$subjectType.':title','class="input-field"') ?></dd>
  
<dt><?php echo Config::$subjectDescription ?>'s Phone Number: </dt>
  <dd><?php echo $form->text(Config::$subjectType.':phone','class="input-field"') ?></dd>

<dt><?php echo ucfirst(Config::$container); ?></dt>
  <dd><?php echo $form->text(Config::$subjectType.':'.Config::$container,'class="input-field"') ?></dd>
<h2 style="margin-bottom:5px;"><?php echo Config::$subjectType ?> Location</h2>
<dt><?php echo Config::$subjectDescription ?>'s Street Address:</span> </dt>
  <dd><?php echo $form->text(Config::$subjectType.':description','onchange="getaddress()" class="input-field" id="address"') ?></dd>
<dt>City: <span></dt>
  <dd><?php echo $form->text(Config::$subjectType.':city','onchange="getaddress()" class="input-field" id="city"') ?></dd>  
<dt>State:
  <?php echo $form->text(Config::$subjectType.':state','onchange="getaddress()" size="2" id="state"') ?></dt> <br />   
<p>If you are in the United 
States, just enter the street address, city, and state of 
the Restaurant and you'll be all set. If you are outside 
the U.S. or don't know the exact address of the 
Restaurant, you can pinpoint the location by clicking on 
the map below.
</p>
<div id="status" style="margin:10px 10% 0px 10%; width:70%"></div>
<div style="width:70%; margin: 0px 10% 0px 10%; height:200px;align:center; border:1px solid black;" id="selectmap">
</div>
<br /><br />
<?php
    echo '<script src="http://maps.google.com/maps?file=api&v=1&key='.Config::$googleMapsAPIKey.'" type="text/javascript"></script>';
GeocodingHelper::geocodeViaMap(Config::$subjectType, $form);
?>
<h2 style="margin-bottom:5px;">Review this <?php echo Config::$subjectType ?></h2>
<?php include 'html/formReviewPart.php'; ?>
<dt>Tag This <?php echo Config::$subjectDescription ?>:</dt>
  <dd><?php echo $form->text(Config::$subjectType.':_tags','class="input-field"') ?></dd>

  <dd><?php echo $form->submit('Post','Add '.Config::$subjectDescription,'class="button"') ?></dd>
  </dl>
</form>
