<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $uploadForm PortalPeople\shippingcosts\models\PriceUploadForm */

$this->title = 'Upload Price Sheet';
$this->params['breadcrumbs'][] = ['label' => 'Shippingcosts', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="shippingcosts-upload">

    <div class="card mb-3">
        <div class="card-header">
            <h4 class="mb-0">Upload &amp; Consolidate Pricing Spreadsheet</h4>
        </div>
        <div class="card-body">
            <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]) ?>
                <?= $form->field($uploadForm, 'priceFile')->fileInput(['accept' => '.xlsx,.xls']) ?>
                <?= Html::submitButton('Upload &amp; Consolidate', ['class' => 'btn btn-primary']) ?>
            <?php ActiveForm::end() ?>
        </div>
    </div>

</div>
