Source of file Religious.php
Size: 0,698 Bytes - Last Modified: 2021-12-23T10:51:36+00:00
/var/www/docs.ssmods.com/process/src/code/DataObjects/Religious.php
12345678910111213141516171819202122232425262728293031323334353637 | <?php class Religious extends NeighbourhoodFeature { private static $db = array ( ); private static $has_one = array ( ); private static $has_many = array ( ); function getCMSFields() { $cityfield = new DropdownField('CityID', 'City', City::get()->map('ID', 'Title')); $cityfield->setEmptyString('(Select one)'); return new FieldList( TextField::create('Name'), TextField::create('Address'), $cityfield, TextField::create('Town'), TextField::create('PostalCode'), DropdownField::create('Type','Type',array( 'Church' => 'Church', 'Synagogue' => 'Synagogue', 'Mosque' => 'Mosque', )), TextField::create('Note') ); } } |