~agasti-rhok-02/sahana-agasti/mayon-rhok-02

« back to all changes in this revision

Viewing changes to plugins/agGisPlugin/modules/agGis/templates/_distanceform.php

  • Committer: charles wisniewski
  • Date: 2010-12-08 22:06:31 UTC
  • mfrom: (1.1.3 cuny-sps-trunk)
  • Revision ID: charles.wisniewski@mail.cuny.edu-20101208220631-63o0t8b9vi7nbbu6
all up to date

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php use_stylesheets_for_form($form) ?>
 
2
<?php use_javascripts_for_form($form) ?>
 
3
 
 
4
<form action="<?php echo url_for('gis/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $dform->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
 
5
<?php if (!$form->getObject()->isNew()): ?>
 
6
<input type="hidden" name="sf_method" value="put" />
 
7
<?php endif; ?>
 
8
  <table>
 
9
    <tfoot>
 
10
      <tr>
 
11
        <td colspan="2">
 
12
          <?php echo $form->renderHiddenFields(false) ?>
 
13
          &nbsp;<a href="<?php echo url_for('gis/index') ?>">Back to index</a>
 
14
          <?php if (!$form->getObject()->isNew()): ?>
 
15
            &nbsp;<?php echo link_to('Delete', 'gis/delete?id='.$form->getObject()->getId(), array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
 
16
          <?php endif; ?>
 
17
          <input type="submit" value="Update Geocode" />
 
18
        </td>
 
19
      </tr>
 
20
    </tfoot>
 
21
    <tbody>
 
22
      <?php echo $form->renderGlobalErrors() ?>
 
23
      <tr>
 
24
        <td>
 
25
          <?php echo $form ?>
 
26
 
 
27
        </td>
 
28
      </tr>
 
29
    </tbody>
 
30
  </table>
 
31
</form>