~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to apps/frontend/modules/profile/templates/_form.php

  • Committer: Chad Heuschober
  • Date: 2011-08-04 00:05:46 UTC
  • mto: (1.26.1 push-trunk)
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: chad.heuschober@mail.cuny.edu-20110804000546-4dqh6a7xrkrwccdh
Moved around some data fixtures to put the regular fixtures into more of a production-ready state.

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('profile/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->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('profile/index') ?>" class="generalButton">Back to list</a>
14
 
          <?php if (!$form->getObject()->isNew()): ?>
15
 
            &nbsp;<?php echo link_to('Delete', 'profile/delete?id='.$form->getObject()->getId(), array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
16
 
          <?php endif; ?>
17
 
          <input type="submit" value="Save" class="continueButton" />
18
 
          <input type="submit" value="Save and Continue" name="Continue" class="continueButton" />
19
 
        </td>
20
 
      </tr>
21
 
    </tfoot>
22
 
    <tbody>
23
 
      <?php echo $form->renderGlobalErrors() ?>
24
 
      <tr>
25
 
        <th><?php echo $form['user_id']->renderLabel() ?></th>
26
 
        <td>
27
 
          <?php echo $form['user_id']->renderError() ?>
28
 
          <?php echo $form['user_id'] ?>
29
 
        </td>
30
 
      </tr>
31
 
      <tr>
32
 
        <th><?php echo $form['token']->renderLabel() ?></th>
33
 
        <td>
34
 
          <?php echo $form['token']->renderError() ?>
35
 
          <?php echo $form['token'] ?>
36
 
        </td>
37
 
      </tr>
38
 
      <tr>
39
 
        <th><?php echo $form['is_webservice_client']->renderLabel() ?></th>
40
 
        <td>
41
 
          <?php echo $form['is_webservice_client']->renderError() ?>
42
 
          <?php echo $form['is_webservice_client'] ?>
43
 
        </td>
44
 
      </tr>
45
 
      <tr>
46
 
        <th><?php echo $form['is_active']->renderLabel() ?></th>
47
 
        <td>
48
 
          <?php echo $form['is_active']->renderError() ?>
49
 
          <?php echo $form['is_active'] ?>
50
 
        </td>
51
 
      </tr>
52
 
      <?php /*<tr>
53
 
        <th><?php echo $form['created_at']->renderLabel() ?></th>
54
 
        <td>
55
 
          <?php echo $form['created_at']->renderError() ?>
56
 
          <?php echo $form['created_at'] ?>
57
 
        </td>
58
 
      </tr>
59
 
      <tr>
60
 
        <th><?php echo $form['updated_at']->renderLabel() ?></th>
61
 
        <td>
62
 
          <?php echo $form['updated_at']->renderError() ?>
63
 
          <?php echo $form['updated_at'] ?>
64
 
        </td>
65
 
      </tr>*/ ?>
66
 
    </tbody>
67
 
  </table>
68
 
</form>