= $form->field($model, 'name')->textInput(['maxlength' => 255]) ?>
= $form->field($model, 'locality')->textInput(['maxlength' => 255]) ?>
= $form->field($model, 'address')->textarea(['rows' => 6]) ?>
= $form->field($model, 'id_user', [
'template' => '{label}
Nouvel utilisateur {input}
{hint}',
])
->dropDownList($userModule->populateUserDropdownList(), ['class' => 'select2'])
->hint('Utilisé lors de la facturation'); ?>
getConfig('credit')):
$addHintCredit = '
Attention, le système de Crédit est désactivé au niveau des ' . Html::a('paramètres globaux', ['producer/update']) . '.';
endif;
echo $form->field($model, 'credit')
->checkbox()
->hint('Cochez cette case si le client peut régler ses commandes via son compte
Crédit pour ce point de vente.'
. $addHintCredit);
?>
= $form->field($model, 'credit_functioning')
->dropDownList([
'' => 'Paramètres globaux (' . Producer::$creditFunctioningArray[$producerModule->getConfig('credit_functioning')] . ')',
Producer::CREDIT_FUNCTIONING_OPTIONAL => Producer::$creditFunctioningArray[Producer::CREDIT_FUNCTIONING_OPTIONAL],
Producer::CREDIT_FUNCTIONING_MANDATORY => Producer::$creditFunctioningArray[Producer::CREDIT_FUNCTIONING_MANDATORY],
Producer::CREDIT_FUNCTIONING_USER => Producer::$creditFunctioningArray[Producer::CREDIT_FUNCTIONING_USER],
], [])->hint(Producer::HINT_CREDIT_FUNCTIONING); ?>
field($model, 'product_price_percent')
->dropDownList( ProductPrice::percentValues(), [])->hint('Pourcentage appliqué aux prix de chaque produit dans ce point de vente.');*/ ?>
= $form->field($model, 'maximum_number_orders')->textInput() ?>
Jours de livraison
= $form->field($model, 'delivery_monday')->checkbox() ?>
= $form->field($model, 'delivery_tuesday')->checkbox() ?>
= $form->field($model, 'delivery_wednesday')->checkbox() ?>
= $form->field($model, 'delivery_thursday')->checkbox() ?>
= $form->field($model, 'delivery_friday')->checkbox() ?>
= $form->field($model, 'delivery_saturday')->checkbox() ?>
= $form->field($model, 'delivery_sunday')->checkbox() ?>
Informations
= $form->field($model, 'infos_monday')->textarea(['rows' => 3]) ?>
= $form->field($model, 'infos_tuesday')->textarea(['rows' => 3]) ?>
= $form->field($model, 'infos_wednesday')->textarea(['rows' => 3]) ?>
= $form->field($model, 'infos_thursday')->textarea(['rows' => 3]) ?>
= $form->field($model, 'infos_friday')->textarea(['rows' => 3]) ?>
= $form->field($model, 'infos_saturday')->textarea(['rows' => 3]) ?>
= $form->field($model, 'infos_sunday')->textarea(['rows' => 3]) ?>
Livraison à domicile
= $form->field($model, 'is_home_delivery')->checkbox() ?>
Boîte à pain
= $form->field($model, 'is_bread_box')->checkbox() ?>
= $form->field($model, 'bread_box_code')->textInput() ?>
= Html::submitButton($model->isNewRecord ? 'Ajouter' : 'Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>