예제 #1
0
 public function getDefaultCountryOptions()
 {
     return Country::getNameList();
 }
예제 #2
0
 public function defineProperties()
 {
     return ['showCountry' => ['title' => 'Show Country Field', 'description' => 'Country field for allowing users to choose a country.', 'type' => 'dropdown', 'default' => 0, 'group' => 'Country', 'options' => [0 => 'No', 1 => 'Yes']], 'country' => ['title' => 'Default Country', 'description' => 'Default country for editing address. If not showing country field then this will set user country on form save.', 'type' => 'dropdown', 'default' => '1', 'group' => 'Country', 'options' => Country::getNameList()], 'stdSelect' => ['title' => 'Standard Select Dropdowns', 'description' => 'If you do not want \'form-control custom-select\' type drop downs for contry and state choose YES.', 'type' => 'dropdown', 'default' => '0', 'group' => 'Country', 'options' => [0 => 'No', 1 => 'Yes']]];
 }