diff --git a/common/messages/en/app.php b/common/messages/en/app.php index 8390678..d631a4e 100644 --- a/common/messages/en/app.php +++ b/common/messages/en/app.php @@ -2,15 +2,15 @@ return [ - 'Name' => 'Name', + 'Name' => 'Name (as it should appear in official listing)', 'Secondname' => 'Surname', 'Dignity' => 'Title', 'Gender' => 'Gender', 'Birth' => 'Date of birth', - 'Citizenship' => 'Nationality', + 'Citizenship' => 'Сountry/organization represented', 'Passport' => 'Series and passport number', - 'Email' => 'E-mail', - 'Organization' => 'Place of work, position', + 'Email' => 'Official mailing address (for dispatch of documents)', + 'Organization' => 'Professional title', 'Participation in events' => 'Participation in events', 'mark required' => 'mark required', @@ -83,7 +83,7 @@ return [ 'fax' => 'Fax', 'Acceptance' => 'Acceptance', 'Acc text1' => 'I, the undersigned, hereby accept the invitation of the Government of Ukraine and the United Nations (UNECE) to participate in the 9th International Forum on energy for sustainable development, which will take place in Kyiv, Ukraine.', - + 'Choose' => 'Choose', ]; ?> \ No newline at end of file diff --git a/common/messages/fr/app.php b/common/messages/fr/app.php index 6fe09c1..46d002f 100644 --- a/common/messages/fr/app.php +++ b/common/messages/fr/app.php @@ -3,15 +3,15 @@ return [ - 'Name' => 'Prénom', + 'Name' => 'Nom (comme il devrait figurer dans la liste officielle)', 'Secondname' => 'Nom', 'Dignity' => 'Le titre', 'Gender' => 'Devenir', 'Birth' => 'Date de naissance', - 'Citizenship' => 'La citoyenneté', + 'Citizenship' => 'Pays / organisation representee', 'Passport' => 'Série et numéro de passeport', - 'Email' => 'E-mail', - 'Organization' => 'Lieu de travail, la position', + 'Email' => 'Adresse postale officielle (pour l\'envoi de documents)', + 'Organization' => 'Titre professionnel', 'Conference' => 'Conférence ministérielle', @@ -85,6 +85,13 @@ return [ 'Acceptance' => 'Acceptation', 'Acc text1' => 'Je, soussigné, accepte l’invitation du Gouvernement ukrainien et de l’Organisation des Nations Unies (CEE-ONU) à participer au 9ème Forum international sur l’énergie pour le développement durable, qui se tiendra à Kiev, en Ukraine. ', + 'Choose' => 'Sélectionner', + + + + + + ]; \ No newline at end of file diff --git a/common/messages/ru/app.php b/common/messages/ru/app.php index b05d63e..38f52d5 100644 --- a/common/messages/ru/app.php +++ b/common/messages/ru/app.php @@ -3,15 +3,15 @@ return [ - 'Name' => 'Имя', + 'Name' => 'Имя, Фамилия (для официального обращения)', 'Secondname' => 'Фамилия', 'Dignity' => 'Титул', 'Gender' => 'Пол', 'Birth' => 'Дата рождения', - 'Citizenship' => 'Гражданство', + 'Citizenship' => 'Страна\организация', 'Passport' => 'Серия и номер паспорта', - 'Email' => 'Е-мейл', - 'Organization' => 'Место работы, должность', + 'Email' => 'Официальный почтовый адресс (для отправки документов)', + 'Organization' => 'Должность', 'Conference' => 'Министерская конференция', 'Geee' => 'Группа експертов по энергоэффективности (GEEE)', @@ -81,7 +81,7 @@ return [ 'Acceptance' => 'СОГЛАСИЕ', 'Acc text1' => 'Я, нижеподписавшийся, настоящим принимаю приглашение правительства Украины и Организации Объединенных Наций (ЕЭК ООН) принять участие в 9-м Международном форуме по энергетике для устойчивого развития, который состоится в Киеве, Украина.', - + 'Choose' => 'Выбрать', diff --git a/common/messages/ua/app.php b/common/messages/ua/app.php index eac533c..96fa3ee 100644 --- a/common/messages/ua/app.php +++ b/common/messages/ua/app.php @@ -3,15 +3,15 @@ return [ - 'Name' => 'Ім\'я', + 'Name' => 'Імя, Прізвище (офіційне звернення)', 'Secondname' => 'Прізвище', 'Dignity' => 'Титул', 'Gender' => 'Стать', 'Birth' => 'Дата народження', - 'Citizenship' => 'Громадянство', + 'Citizenship' => 'Країна/Організація', 'Passport' => 'Серія та номер паспорта', - 'Email' => 'Е-мейл', - 'Organization' => 'Місце роботи, посада', + 'Email' => 'Офіційна поштова адреса (для відправки документів)', + 'Organization' => 'Посада', 'Conference' => 'Міністерська конференція', 'Geee' => 'Група експертів з енергоефективності (GEEE)', @@ -82,7 +82,7 @@ return [ 'Acc text1' => 'Я, що нижче підписався, цим приймаю запрошення уряду України та Організації Об\'єднаних Націй (ЄЕК ООН) взяти участь у 9-му Міжнародному форумі з енергетики для сталого розвитку, який відбудеться в Києві, Україна.', - + 'Choose' => 'Вибрати', diff --git a/common/models/Customer.php b/common/models/Customer.php index 6e4f9b8..94e01fe 100644 --- a/common/models/Customer.php +++ b/common/models/Customer.php @@ -45,7 +45,7 @@ * @property boolean $meal_kashrut * @property boolean $meal_vegan * - * + * @property integer $working_lang */ class Customer extends \yii\db\ActiveRecord { @@ -56,6 +56,14 @@ const STATUS_NEW = 2; const STATUS_ACTIVE = 1; const STATUS_NO = 0; + + const MEAL_1 = 'halal'; + const MEAL_2 = 'kashrut'; + const MEAL_3 = 'vegetarian'; + const MEAL_NONE = 'none'; + + + const MALE = '1'; const FEMALE = '2'; @@ -87,7 +95,8 @@ 'gender', 'status', 'language_id', - 'acceptance' + 'acceptance', + 'working_lang' ], 'integer', ], diff --git a/console/migrations/m180905_131729_customer_add_work_lang_column.php b/console/migrations/m180905_131729_customer_add_work_lang_column.php new file mode 100644 index 0000000..ef2f6e2 --- /dev/null +++ b/console/migrations/m180905_131729_customer_add_work_lang_column.php @@ -0,0 +1,31 @@ +addColumn('customer','working_lang',$this->integer()); + + $this->addForeignKey('customer_work_lang', + 'customer', + 'working_lang', + 'language', + 'id' + ); + } + + public function down() + { + $this->dropColumn('customer','working_language'); + } + +} diff --git a/frontend/views/site/signup.php b/frontend/views/site/signup.php index a54c997..3fa6363 100755 --- a/frontend/views/site/signup.php +++ b/frontend/views/site/signup.php @@ -59,8 +59,29 @@ $js=$dp->getDatepickerJs(); =$form->field($model, 'fax')->textInput(['class' => ''])?>