Skip to content

Commit

Permalink
adding an address form element that can be used in other plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Oct 30, 2010
1 parent 2018032 commit b78acb1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions core/management/views/elements/address_form.ctp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<fieldset>
<h1><?php echo __('Address', true); ?></h1><?php
echo $this->Form->hidden('Address.id');
echo $this->Form->hidden('Address.plugin', array('value' => 'Projects'));
echo $this->Form->hidden('Address.model', array('value' => 'Company'));
echo $this->Form->hidden('Address.foreign_key');

echo $this->Form->input('Address.name');
echo $this->Form->input('Address.street');
echo $this->Form->input('Address.city');
echo $this->Form->input('Address.province');
echo $this->Form->input('Address.postal');
echo $this->Form->input('Address.country_id', array('empty' => Configure::read('Website.empty_select')));
echo $this->Form->input('Address.continent_id', array('empty' => Configure::read('Website.empty_select'))); ?>
</fieldset>

0 comments on commit b78acb1

Please sign in to comment.