false]); ?> id): ?> field($model, 'id')->hiddenInput() ?>
field($model, 'id_user')->dropDownList(User::populateDropdownList(), ['class' => 'select2']); ?>
OU
field($model, 'username')->textInput() ?>
field($model, 'id_producer')->hiddenInput() ?> field($model, 'id_point_sale')->dropDownList(ArrayHelper::map(PointSale::searchAll(), 'id', function($model, $defaultValue) { return $model['name']; }), ['prompt' => '--','class' => 'form-control user-id']) ?> field($model, 'date_begin') ?> field($model, 'date_end')->hint('Laisser vide pour une durée indéterminée') ?>

Jours

field($model, 'monday')->checkbox() ?> field($model, 'tuesday')->checkbox() ?> field($model, 'wednesday')->checkbox() ?> field($model, 'thursday')->checkbox() ?> field($model, 'friday')->checkbox() ?> field($model, 'saturday')->checkbox() ?> field($model, 'sunday')->checkbox() ?>
field($model, 'week_frequency')->dropDownList([1=>1, 2=>2, 3=>3, 4=>4]) ?> field($model, 'auto_payment') ->dropDownList([ Subscription::AUTO_PAYMENT_DEDUCTED => 'Déduit', Subscription::AUTO_PAYMENT_YES => 'Oui', Subscription::AUTO_PAYMENT_NO => 'Non' ]) ->hint('Attention, un compte client existant doit être spécifié en haut de ce formulaire.') ?>

Produits

errors['products']) && count($model->errors['products'])) { echo '
'.$model->errors['products'][0].'
' ; } ?>
{{ product.name }}
{{ product.wording_unit }}
field($model, 'comment')->textarea(['rows' => 6]) ?> 'btn btn-primary']) ?>