mirror of
https://github.com/atlanticbiomedical/portal-legacy.git
synced 2025-07-02 01:47:28 -04:00
initial commit
This commit is contained in:
@ -0,0 +1,29 @@
|
||||
[?php use_helper('Object') ?]
|
||||
|
||||
[?php echo form_tag('<?php echo $this->getModuleName() ?>/update') ?]
|
||||
|
||||
<?php foreach ($this->getPrimaryKey() as $pk): ?>
|
||||
[?php echo object_input_hidden_tag($<?php echo $this->getSingularName() ?>, 'get<?php echo $pk->getPhpName() ?>') ?]
|
||||
<?php endforeach; ?>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<?php foreach ($this->getTableMap()->getColumns() as $name => $column): ?>
|
||||
<?php if ($column->isPrimaryKey()) continue ?>
|
||||
<?php if ($name == 'CREATED_AT' || $name == 'UPDATED_AT') continue ?>
|
||||
<tr>
|
||||
<th><?php echo sfInflector::humanize(sfInflector::underscore($column->getPhpName())) ?><?php if ($column->isNotNull()): ?>*<?php endif; ?>:</th>
|
||||
<td>[?php echo <?php echo $this->getCrudColumnEditTag($column) ?> ?]</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr />
|
||||
[?php echo submit_tag('save') ?]
|
||||
[?php if (<?php echo $this->getPrimaryKeyIsSet() ?>): ?]
|
||||
[?php echo link_to('delete', '<?php echo $this->getModuleName() ?>/delete?<?php echo $this->getPrimaryKeyUrlParams() ?>, 'post=true&confirm=Are you sure?') ?]
|
||||
[?php echo link_to('cancel', '<?php echo $this->getModuleName() ?>/show?<?php echo $this->getPrimaryKeyUrlParams() ?>) ?]
|
||||
[?php else: ?]
|
||||
[?php echo link_to('cancel', '<?php echo $this->getModuleName() ?>/list') ?]
|
||||
[?php endif; ?]
|
||||
</form>
|
@ -0,0 +1,26 @@
|
||||
<h1><?php echo $this->getModuleName() ?></h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<?php foreach ($this->getTableMap()->getColumns() as $column): ?>
|
||||
<th><?php echo sfInflector::humanize(sfInflector::underscore($column->getPhpName())) ?></th>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
[?php foreach ($<?php echo $this->getPluralName() ?> as $<?php echo $this->getSingularName() ?>): ?]
|
||||
<tr>
|
||||
<?php foreach ($this->getTableMap()->getColumns() as $column): ?>
|
||||
<?php if ($column->isPrimaryKey()): ?>
|
||||
<td>[?php echo link_to($<?php echo $this->getSingularName() ?>->get<?php echo $column->getPhpName() ?>(), '<?php echo $this->getModuleName() ?>/show?<?php echo $this->getPrimaryKeyUrlParams() ?>) ?]</td>
|
||||
<?php else: ?>
|
||||
<td>[?php echo $<?php echo $this->getSingularName() ?>->get<?php echo $column->getPhpName() ?>() ?]</td>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
[?php endforeach; ?]
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
[?php echo link_to ('create', '<?php echo $this->getModuleName() ?>/create') ?]
|
@ -0,0 +1,13 @@
|
||||
<table>
|
||||
<tbody>
|
||||
<?php foreach ($this->getTableMap()->getColumns() as $column): ?>
|
||||
<tr>
|
||||
<th><?php echo sfInflector::humanize(sfInflector::underscore($column->getPhpName())) ?>: </th>
|
||||
<td>[?= $<?php echo $this->getSingularName() ?>->get<?php echo $column->getPhpName() ?>() ?]</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr />
|
||||
[?php echo link_to('edit', '<?php echo $this->getModuleName() ?>/edit?<?php echo $this->getPrimaryKeyUrlParams() ?>) ?]
|
||||
[?php echo link_to('list', '<?php echo $this->getModuleName() ?>/list') ?]
|
Reference in New Issue
Block a user