Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

544 lines
27KB

  1. <?php
  2. /**
  3. * Copyright La boîte à pain (2018)
  4. *
  5. * contact@opendistrib.net
  6. *
  7. * Ce logiciel est un programme informatique servant à aider les producteurs
  8. * à distribuer leur production en circuits courts.
  9. *
  10. * Ce logiciel est régi par la licence CeCILL soumise au droit français et
  11. * respectant les principes de diffusion des logiciels libres. Vous pouvez
  12. * utiliser, modifier et/ou redistribuer ce programme sous les conditions
  13. * de la licence CeCILL telle que diffusée par le CEA, le CNRS et l'INRIA
  14. * sur le site "http://www.cecill.info".
  15. *
  16. * En contrepartie de l'accessibilité au code source et des droits de copie,
  17. * de modification et de redistribution accordés par cette licence, il n'est
  18. * offert aux utilisateurs qu'une garantie limitée. Pour les mêmes raisons,
  19. * seule une responsabilité restreinte pèse sur l'auteur du programme, le
  20. * titulaire des droits patrimoniaux et les concédants successifs.
  21. *
  22. * A cet égard l'attention de l'utilisateur est attirée sur les risques
  23. * associés au chargement, à l'utilisation, à la modification et/ou au
  24. * développement et à la reproduction du logiciel par l'utilisateur étant
  25. * donné sa spécificité de logiciel libre, qui peut le rendre complexe à
  26. * manipuler et qui le réserve donc à des développeurs et des professionnels
  27. * avertis possédant des connaissances informatiques approfondies. Les
  28. * utilisateurs sont donc invités à charger et tester l'adéquation du
  29. * logiciel à leurs besoins dans des conditions permettant d'assurer la
  30. * sécurité de leurs systèmes et ou de leurs données et, plus généralement,
  31. * à l'utiliser et l'exploiter dans les mêmes conditions de sécurité.
  32. *
  33. * Le fait que vous puissiez accéder à cet en-tête signifie que vous avez
  34. * pris connaissance de la licence CeCILL, et que vous en avez accepté les
  35. * termes.
  36. */
  37. use common\helpers\GlobalParam;
  38. use common\logic\Distribution\Distribution\Module\DistributionModule;
  39. use common\logic\Distribution\Distribution\Service\ExportManager;
  40. use common\logic\User\User\Module\UserModule;
  41. use yii\helpers\Html;
  42. use yii\widgets\ActiveForm;
  43. use common\logic\Producer\Producer\Model\Producer;
  44. use common\logic\Config\TaxRate\Model\TaxRate;
  45. use common\logic\Document\Document\Model\Document;
  46. use yii\helpers\ArrayHelper;
  47. \backend\assets\VuejsProducerUpdateAsset::register($this);
  48. $userModule = UserModule::getInstance();
  49. $userCurrent = GlobalParam::getCurrentUser();
  50. $distributionExportManager = DistributionModule::getInstance()->getExportManager();
  51. $this->setTitle('Paramètres');
  52. $this->addBreadcrumb($this->getTitle());
  53. ?>
  54. <script>
  55. var appInitValues = {
  56. isAdmin: <?= (int) $userModule->getAuthorizationChecker()->isGrantedAsAdministrator($userCurrent) ?>
  57. };
  58. </script>
  59. <div class="user-update" id="app-producer-update">
  60. <div id="nav-params">
  61. <a v-for="section in sectionsArray" v-if="!section.isAdminSection || (section.isAdminSection && isAdmin)"
  62. :class="'btn '+((currentSection == section.name) ? 'btn-primary' : 'btn-default')"
  63. @click="changeSection(section)" :href="'#'+section.name">
  64. {{ section.nameDisplay }}
  65. </a>
  66. </div>
  67. <div class="user-form">
  68. <?php $form = ActiveForm::begin([
  69. 'enableClientValidation' => false,
  70. ]); ?>
  71. <div>
  72. <div v-show="currentSection == 'general'" class="panel panel-default">
  73. <div class="panel-body">
  74. <h4>Accès</h4>
  75. <?= $form->field($model, 'active')
  76. ->dropDownList([
  77. 0 => 'Non',
  78. 1 => 'Oui'
  79. ], [])
  80. ->label('En ligne')
  81. ->hint('Activez cette option pour rendre votre espace visible à vos clients.'); ?>
  82. <?= $form->field($model, 'code')->hint("Saisissez ce champs si vous souhaitez protéger l'accès à votre espace par un code, sinon laissez-le vide.<br />"
  83. . "Ce code est à communiquer à vos clients pour qu'ils puissent ajouter votre espace à leurs favoris.<br />"
  84. . "<a href=\"" . Yii::$app->urlManager->createUrl(['communicate/index']) . "\">Cliquez ici</a> pour télécharger un mode d'emploi comprenant ce code à distribuer à vos clients.") ?>
  85. <h4>Général</h4>
  86. <?= $form->field($model, 'name') ?>
  87. <?= $form->field($model, 'type') ?>
  88. <?= $form->field($model, 'description')
  89. ->textarea(['rows' => 4])
  90. ->hint('Affiché sur la page d\'accueil') ?>
  91. <?= $form->field($model, 'address')
  92. ->textarea(['rows' => 4]) ?>
  93. <?= $form->field($model, 'postcode') ?>
  94. <?= $form->field($model, 'city') ?>
  95. <h4>Apparence</h4>
  96. <?= $form->field($model, 'background_color_logo') ?>
  97. <?= $form->field($model, 'logoFile')->fileInput() ?>
  98. <?php
  99. if (strlen($model->logo)) {
  100. echo '<img src="' . Yii::$app->urlManagerProducer->getHostInfo() . '/' . Yii::$app->urlManagerProducer->baseUrl . '/uploads/' . $model->logo . '" width="200px" /><br />';
  101. echo '<input type="checkbox" name="delete_logo" id="delete_logo" /> <label for="delete_logo">Supprimer le logo</label><br /><br />';
  102. }
  103. ?>
  104. <?= $form->field($model, 'photoFile')->fileInput()->hint('Format idéal : 900 x 150 px') ?>
  105. <?php
  106. if (strlen($model->photo)) {
  107. echo '<img src="' . Yii::$app->urlManagerProducer->getHostInfo() . '/' . Yii::$app->urlManagerProducer->baseUrl . '/uploads/' . $model->photo . '" width="400px" /><br />';
  108. echo '<input type="checkbox" name="delete_photo" id="delete_photo" /> <label for="delete_photo">Supprimer la photo</label><br /><br />';
  109. }
  110. ?>
  111. <?= $form->field($model, 'behavior_home_point_sale_day_list')
  112. ->dropDownList([
  113. Producer::BEHAVIOR_HOME_POINT_SALE_DAY_LIST_WEEK => 'Jours de la semaine',
  114. Producer::BEHAVIOR_HOME_POINT_SALE_DAY_LIST_INCOMING_DISTRIBUTIONS => 'Distributions à venir',
  115. ]); ?>
  116. <?= $form->field($model, 'option_point_sale_wording') ?>
  117. </div>
  118. </div>
  119. <div v-show="currentSection == 'tableau-bord'" class="panel panel-default">
  120. <div class="panel-body">
  121. <h4>Tableau de bord administration</h4>
  122. <?= $form->field($model, 'option_dashboard_number_distributions')
  123. ->dropDownList([
  124. 3 => '3',
  125. 6 => '6',
  126. 9 => '9',
  127. 12 => '12',
  128. 15 => '15',
  129. 18 => '18',
  130. 21 => '21',
  131. 24 => '24',
  132. 27 => '27',
  133. 30 => '30',
  134. ], []); ?>
  135. <?= $form->field($model, 'option_dashboard_date_start')->textInput([
  136. 'class' => 'datepicker form-control'
  137. ]); ?>
  138. <?= $form->field($model, 'option_dashboard_date_end')->textInput([
  139. 'class' => 'datepicker form-control'
  140. ]); ?>
  141. </div>
  142. </div>
  143. <div v-show="currentSection == 'prise-commande'" class="panel panel-default">
  144. <div class="panel-body">
  145. <h4>Horaires</h4>
  146. <?php
  147. $delaysArray = [
  148. 1 => '1 jour',
  149. 2 => '2 jours',
  150. 3 => '3 jours',
  151. 4 => '4 jours',
  152. 5 => '5 jours',
  153. 6 => '6 jours',
  154. 7 => '7 jours',
  155. ];
  156. $deadlinesArray = [
  157. 24 => 'Minuit',
  158. 23 => '23h',
  159. 22 => '22h',
  160. 21 => '21h',
  161. 20 => '20h',
  162. 19 => '19h',
  163. 18 => '18h',
  164. 17 => '17h',
  165. 16 => '16h',
  166. 15 => '15h',
  167. 14 => '14h',
  168. 13 => '13h',
  169. 12 => '12h',
  170. 11 => '11h',
  171. 10 => '10h',
  172. 9 => '9h',
  173. 8 => '8h',
  174. ];
  175. $daysArray = [
  176. 'monday' => 'Lundi',
  177. 'tuesday' => 'Mardi',
  178. 'wednesday' => 'Mercredi',
  179. 'thursday' => 'Jeudi',
  180. 'friday' => 'Vendredi',
  181. 'saturday' => 'Samedi',
  182. 'sunday' => 'Dimanche'
  183. ];
  184. ?>
  185. <div class="row">
  186. <div class="col-md-2">
  187. <strong>Par défaut</strong>
  188. </div>
  189. <div class="col-md-5">
  190. <?= $form->field($model, 'order_delay')
  191. ->dropDownList($delaysArray, ['prompt' => '--'])
  192. ->hint('Si <strong>1 jour</strong> est sélectionné, le client pourra commander jusqu\'à la veille de la production.<br />'
  193. . 'Si <strong>2 jours</strong> est sélectionné, le client pourra commander jusqu\'à l\'avant-veille de la production, etc.'); ?>
  194. </div>
  195. <div class="col-md-5">
  196. <?= $form->field($model, 'order_deadline')
  197. ->dropDownList($deadlinesArray, ['prompt' => '--'])
  198. ->hint('Heure limite jusqu\'à laquelle les clients peuvent commander pour satisfaire le délai de commande.<br />'
  199. . 'Par exemple, si <strong>2 jours</strong> est sélectionné dans le délai de commande, le client devra commander l\'avant-veille de la production avant l\'heure précisée ici.'); ?>
  200. </div>
  201. </div>
  202. <?php foreach ($daysArray as $day => $labelDay): ?>
  203. <div class="row">
  204. <div class="col-md-2">
  205. <strong><?= $labelDay ?></strong>
  206. </div>
  207. <div class="col-md-5">
  208. <?= $form->field($model, 'order_delay_' . $day, [
  209. 'template' => '{input}',
  210. ])->dropDownList($delaysArray, ['prompt' => '--'])->label(''); ?>
  211. </div>
  212. <div class="col-md-5">
  213. <?= $form->field($model, 'order_deadline_' . $day, [
  214. 'template' => '{input}',
  215. ])->dropDownList($deadlinesArray, ['prompt' => '--'])->label(''); ?>
  216. </div>
  217. </div>
  218. <?php endforeach; ?>
  219. <h4>Informations</h4>
  220. <?= $form->field($model, 'order_infos')
  221. ->textarea(['rows' => 6])
  222. ->hint('Affichées au client lors de sa commande') ?>
  223. <?= $form->field($model, 'option_payment_info')
  224. ->textarea(['rows' => 6])
  225. ->hint('Affichées au client à la fin de la prise de commande') ?>
  226. <h4>Tunnel de commande</h4>
  227. <?= $form->field($model, 'option_order_entry_point')
  228. ->dropDownList([
  229. Producer::ORDER_ENTRY_POINT_DATE => 'Date',
  230. Producer::ORDER_ENTRY_POINT_POINT_SALE => 'Point de vente',
  231. ], []); ?>
  232. <?= $form->field($model, 'behavior_order_select_distribution')
  233. ->dropDownList([
  234. Producer::BEHAVIOR_ORDER_SELECT_DISTRIBUTION_CALENDAR => 'Calendrier',
  235. Producer::BEHAVIOR_ORDER_SELECT_DISTRIBUTION_LIST => 'Liste',
  236. ]); ?>
  237. <?= $form->field($model, 'option_delivery')
  238. ->dropDownList([
  239. 0 => 'Non',
  240. 1 => 'Oui'
  241. ], []); ?>
  242. <?php echo $form->field($model, 'option_allow_order_guest')
  243. ->dropDownList([
  244. 0 => 'Non',
  245. 1 => 'Oui'
  246. ], []); ?>
  247. <h4>Notifications</h4>
  248. <?= $form->field($model, 'option_notify_producer_order_summary')
  249. ->dropDownList([
  250. 0 => 'Non',
  251. 1 => 'Oui',
  252. ], []); ?>
  253. <?= $form->field($model, 'option_email_confirm')
  254. ->dropDownList([
  255. 0 => 'Non',
  256. 1 => 'Oui'
  257. ], []); ?>
  258. <?= $form->field($model, 'option_email_confirm_producer')
  259. ->dropDownList([
  260. 0 => 'Non',
  261. 1 => 'Oui'
  262. ], []); ?>
  263. <h4>Divers</h4>
  264. <?php
  265. $choicesWeeksDistributionsActivatedInAdvanceArray = [null => '--'];
  266. for($i = 1; $i < 13; $i++) {
  267. $choicesWeeksDistributionsActivatedInAdvanceArray[$i] = $i.' semaine'.(($i > 1) ? 's' : '');
  268. }
  269. ?>
  270. <?= $form->field($model, 'option_weeks_distributions_activated_in_advance')
  271. ->dropDownList($choicesWeeksDistributionsActivatedInAdvanceArray)
  272. ->hint("Attention, les premières semaines doivent être activées manuellement."); ?>
  273. <?= $form->field($model, 'option_order_reference_type')
  274. ->dropDownList([
  275. Producer::ORDER_REFERENCE_TYPE_NONE => '--',
  276. Producer::ORDER_REFERENCE_TYPE_YEARLY => 'Annuelle',
  277. ], []); ?>
  278. <?= $form->field($model, 'option_behavior_cancel_order')
  279. ->dropDownList([
  280. Producer::BEHAVIOR_DELETE_ORDER_DELETE => 'Suppression de la commande',
  281. Producer::BEHAVIOR_DELETE_ORDER_STATUS => 'Passage de la commande en statut "supprimé"',
  282. ], []); ?>
  283. </div>
  284. </div>
  285. <div v-show="currentSection == 'exports'" class="panel panel-default">
  286. <div class="panel-body">
  287. <h4>Exports affichés dans les distributions</h4>
  288. <?= $distributionExportManager->getProducerFormCheckboxes($form, $model) ?>
  289. <h4>Options exports</h4>
  290. <?= $form->field($model, 'option_csv_separator')
  291. ->dropDownList([
  292. ';' => 'Point-virgule (;)',
  293. ',' => 'Virgule (,)'
  294. ], []); ?>
  295. <?= $form->field($model, 'option_export_display_product_reference')
  296. ->dropDownList([
  297. 0 => 'Non',
  298. 1 => 'Oui'
  299. ], []); ?>
  300. <?= $form->field($model, 'option_export_display_column_delivery_note')
  301. ->dropDownList([
  302. 0 => 'Non',
  303. 1 => 'Oui'
  304. ], []); ?>
  305. <?= $form->field($model, 'option_csv_export_all_products')
  306. ->dropDownList([
  307. 0 => 'Non',
  308. 1 => 'Oui'
  309. ], []); ?>
  310. <?= $form->field($model, 'option_csv_export_by_piece')
  311. ->dropDownList([
  312. 0 => 'Non',
  313. 1 => 'Oui'
  314. ], []); ?>
  315. </div>
  316. </div>
  317. <div v-show="currentSection == 'abonnements'" class="panel panel-default">
  318. <div class="panel-body">
  319. <h4>Abonnements</h4>
  320. <?= $form->field($model, 'user_manage_subscription')
  321. ->dropDownList([
  322. 0 => 'Non',
  323. 1 => 'Oui',
  324. ], []); ?>
  325. </div>
  326. </div>
  327. <div v-show="currentSection == 'credit-payment'" class="panel panel-default">
  328. <div class="panel-body">
  329. <h4>Crédit</h4>
  330. <?= $form->field($model, 'credit')
  331. ->dropDownList([
  332. 0 => 'Non',
  333. 1 => 'Oui',
  334. ], [])
  335. ->label('Activer le système de Crédit')
  336. ->hint('Le système de Crédit permet à vos clients d\'avoir un compte prépayé sur le site <em>distrib</em>.<br />'
  337. . 'Ils créditent leur compte en vous donnant la somme de leur choix et c\'est ensuite à vous de ' . Html::a('mettre à jour', ['user/index']) . ' leur Crédit en ligne.<br />'
  338. . 'Ceci fait, les clients paient leur commande directement via leur Crédit.'); ?>
  339. <?= $form->field($model, 'credit_functioning')
  340. ->dropDownList([
  341. Producer::CREDIT_FUNCTIONING_OPTIONAL => Producer::$creditFunctioningArray[Producer::CREDIT_FUNCTIONING_OPTIONAL],
  342. Producer::CREDIT_FUNCTIONING_MANDATORY => Producer::$creditFunctioningArray[Producer::CREDIT_FUNCTIONING_MANDATORY],
  343. Producer::CREDIT_FUNCTIONING_USER => Producer::$creditFunctioningArray[Producer::CREDIT_FUNCTIONING_USER],
  344. ], [])->hint(Producer::HINT_CREDIT_FUNCTIONING); ?>
  345. <?= $form->field($model, 'use_credit_checked_default')
  346. ->dropDownList([
  347. 0 => 'Non',
  348. 1 => 'Oui',
  349. ], [])->hint('Utilisation optionnelle du Crédit.'); ?>
  350. <?= $form->field($model, 'credit_limit_reminder', [
  351. 'template' => '{label}<div class="input-group">{input}<span class="input-group-addon"><span class="glyphicon glyphicon-euro"></span></span></div>{hint}',
  352. ])
  353. ->hint("Une relance est envoyé au client dès que ce seuil est dépassé."); ?>
  354. <?= $form->field($model, 'credit_limit', [
  355. 'template' => '{label}<div class="input-group">{input}<span class="input-group-addon"><span class="glyphicon glyphicon-euro"></span></span></div>{hint}',
  356. ])->hint('Limite de crédit que l\'utilisateur ne pourra pas dépasser. Laisser vide pour permettre un crédit négatif et infini.'); ?>
  357. <h4>Paiement en ligne</h4>
  358. <?= $form->field($model, 'online_payment')
  359. ->dropDownList([
  360. 0 => 'Non',
  361. 1 => 'Oui',
  362. ], []); ?>
  363. <?= $form->field($model, 'option_online_payment_minimum_amount')
  364. ->hint('Valeur par défaut si non défini : '.Producer::ONLINE_PAYMENT_MINIMUM_AMOUNT_DEFAULT.' €')
  365. ->textInput(); ?>
  366. <?= $form->field($model, 'option_stripe_mode_test')->dropDownList([
  367. 0 => 'Non',
  368. 1 => 'Oui'
  369. ], []); ?>
  370. <?= $form->field($model, 'option_online_payment_type')
  371. ->dropDownList([
  372. 'credit' => 'Alimentation du crédit',
  373. 'order' => 'Paiement à la commande',
  374. ], []); ?>
  375. <?= $form->field($model, 'option_stripe_public_key')->textInput(); ?>
  376. <?= $form->field($model, 'option_stripe_private_key')->textInput(); ?>
  377. <?= $form->field($model, 'option_stripe_endpoint_secret')->textInput(); ?>
  378. </div>
  379. </div>
  380. <div v-show="currentSection == 'infos'" class="panel panel-default">
  381. <div class="panel-body">
  382. <h4>Informations légales</h4>
  383. <?= $form->field($model, 'mentions')
  384. ->textarea(['rows' => 15])
  385. ->hint('') ?>
  386. <?= $form->field($model, 'gcs')
  387. ->textarea(['rows' => 15])
  388. ->hint('') ?>
  389. </div>
  390. </div>
  391. <div v-show="currentSection == 'logiciels-caisse'" class="panel panel-default">
  392. <div class="panel-body">
  393. <h4>Tiller</h4>
  394. <?= $form->field($model, 'tiller')
  395. ->dropDownList([
  396. 0 => 'Non',
  397. 1 => 'Oui'
  398. ], [])
  399. ->label('Synchroniser avec Tiller'); ?>
  400. <?= $form->field($model, 'tiller_provider_token'); ?>
  401. <?= $form->field($model, 'tiller_restaurant_token'); ?>
  402. </div>
  403. </div>
  404. <div v-show="currentSection == 'facturation'" class="panel panel-default">
  405. <div class="panel-body">
  406. <h4>Facturation</h4>
  407. <?= $form->field($model, 'id_tax_rate_default')
  408. ->dropDownList(ArrayHelper::map(TaxRate::find()->all(), 'id', function ($model) {
  409. return $model->name;
  410. }))
  411. ->label('TVA à appliquer par défaut'); ?>
  412. <?= $form->field($model, 'option_tax_calculation_method')
  413. ->dropDownList(Document::$taxCalculationMethodArray); ?>
  414. <?= $form->field($model, 'option_export_evoliz')->dropDownList([
  415. 0 => 'Non',
  416. 1 => 'Oui'
  417. ]); ?>
  418. <?php $hintKeywordsPrefix = "Saisissez [ANNEE] pour intégrer l'année courante"; ?>
  419. <?= $form->field($model, 'document_quotation_prefix')->hint($hintKeywordsPrefix); ?>
  420. <?= $form->field($model, 'document_quotation_first_reference'); ?>
  421. <?= $form->field($model, 'document_quotation_duration'); ?>
  422. <?= $form->field($model, 'document_invoice_prefix')->hint($hintKeywordsPrefix);; ?>
  423. <?= $form->field($model, 'document_invoice_first_reference'); ?>
  424. <?= $form->field($model, 'document_delivery_note_prefix')->hint($hintKeywordsPrefix);; ?>
  425. <?= $form->field($model, 'document_delivery_note_first_reference'); ?>
  426. <?= $form->field($model, 'option_invoice_only_based_on_delivery_notes')->dropDownList([
  427. 0 => 'Non',
  428. 1 => 'Oui'
  429. ]); ?>
  430. <?= $form->field($model, 'document_display_orders_invoice')->dropDownList([
  431. 0 => 'Non',
  432. 1 => 'Oui'
  433. ]); ?>
  434. <?= $form->field($model, 'document_display_orders_delivery_note')->dropDownList([
  435. 0 => 'Non',
  436. 1 => 'Oui'
  437. ]); ?>
  438. <?= $form->field($model, 'document_display_prices_delivery_note')->dropDownList([
  439. 0 => 'Non',
  440. 1 => 'Oui'
  441. ]); ?>
  442. <?= $form->field($model, 'document_display_product_description')->dropDownList([
  443. 0 => 'Non',
  444. 1 => 'Oui'
  445. ]); ?>
  446. <?= $form->field($model, 'option_document_price_decimals')->dropDownList([
  447. 2 => '2',
  448. 3 => '3'
  449. ]); ?>
  450. <?= $form->field($model, 'document_infos_top')
  451. ->textarea(['rows' => 8])
  452. ->hint("Affichées juste en dessous de l'adresse"); ?>
  453. <?= $form->field($model, 'document_infos_bottom')
  454. ->textarea(['rows' => 8]) ?>
  455. <?= $form->field($model, 'document_infos_quotation')
  456. ->textarea(['rows' => 8]) ?>
  457. <?= $form->field($model, 'document_infos_invoice')
  458. ->textarea(['rows' => 8]) ?>
  459. <?= $form->field($model, 'document_infos_delivery_note')
  460. ->textarea(['rows' => 8]) ?>
  461. </div>
  462. </div>
  463. <div v-show="currentSection == 'software'" class="panel panel-default">
  464. <div class="panel-body">
  465. <h4>Opendistrib</h4>
  466. <?php $urlAboutPage = Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/about']); ?>
  467. <?= $form->field($model, 'option_testimony')
  468. ->textarea(['rows' => 7])
  469. ->hint("Écrivez ici votre témoignage concernant l'utilisation du logiciel. Il sera publié sur la page <a href=\"".$urlAboutPage."\" target=\"_blanck\">À propos</a> du site.") ; ?>
  470. <?= $form->field($model, 'option_time_saved')
  471. ->dropDownList([
  472. null => '--',
  473. 0.5 => '30 minutes',
  474. 1 => '1 heure',
  475. 2 => '2 heures',
  476. 3 => '3 heures',
  477. 4 => '4 heures',
  478. 5 => '5 heures',
  479. 6 => '6 heures',
  480. 7 => '7 heures',
  481. 8 => '8 heures',
  482. ])
  483. ->hint("Sélectionnez le temps que vous estimez gagner chaque semaine en utilisant ce logiciel. Cette donnée sera utilisée sur la page <a href=\"".$urlAboutPage."\" target=\"_blanck\">À propos</a> du site.") ; ?>
  484. <?= $form->field($model, 'option_display_message_new_opendistrib_version')
  485. ->dropDownList([
  486. 1 => 'Oui',
  487. 0 => 'Non'
  488. ], []); ?>
  489. </div>
  490. </div>
  491. <div class="form-group">
  492. <?= Html::submitButton('Mettre à jour', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  493. </div>
  494. </div>
  495. <?php ActiveForm::end(); ?>
  496. </div>
  497. </div>