<commit_before><?php

use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
use common\models\Common;

/* @var $this yii\web\View */
/* @var $model backend\models\Firm */

$this->title = 'Update Firm: ' . ' ' . $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Firms', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="box box-primary">
    <div class="box-header with-border">
        <h3 class="box-title"><?= Html::encode($this->title) ?></h3>
    </div>
    <!-- /.box-header -->
    <!-- form start -->
    <?php
    $form = ActiveForm::begin(['id' => 'firm']);

    echo $form->errorSummary($model);
    ?>
<div class="box-body">    
<div class="form-group field-firm-firm_name required">
<label class="control-label" for="firm-firm_name">Firm Name<span class="label-required">*</span></label>
<input type="text" id="firm-firm_name" class="form-control" name="Firm[firm_name]" maxlength="50" required value="<?php echo $model->firm_name; ?>" placeholder="-- Provide Firm Name--">


</div>
<div class="form-group field-firm-firm_type required">
<label class="control-label" for="firm-firm_type">Firm Type</label>
<input type="text" id="firm-firm_type" class="form-control" name="Firm[firm_type]" value="<?php echo $model->firm_type; ?>" placeholder="-- Provide Firm Type--">


</div>

<div class="form-group">
  <label class="control-label" for="firm-is_registered">Is Registered</label>
  <select name="Firm[is_registered]" class="form-control">
    <option value="1" <?php echo Common::isRegistered($model->is_registered,1); ?>>True</option>
    <option value="2" <?php echo Common::isRegistered($model->is_registered,0); ?>>False</option>
  </select>
</div>

<div class="form-group field-firm-vat_number">
<label class="control-label" for="firm-vat_number">Vat Number</label>
<input type="text" id="firm-vat_number" class="form-control" name="Firm[vat_number]" maxlength="20" value="<?php echo $model->vat_number; ?>" placeholder="-- Provide VAT Number --">


</div>
<div class="form-group field-firm-cst_number">
<label class="control-label" for="firm-cst_number">Cst Number</label>
<input type="text" id="firm-cst_number" class="form-control" name="Firm[cst_number]" maxlength="20" value="<?php echo $model->cst_number; ?>" placeholder="-- Provide CST Number --">


</div>
<div class="form-group field-firm-gst_number">
<label class="control-label" for="firm-gst_number">Gst Number</label>
<input type="text" id="firm-gst_number" class="form-control" name="Firm[gst_number]" maxlength="20" value="<?php echo $model->gst_number; ?>" placeholder="-- Provide GST Number --"><commit_msg>updated registered field<commit_after><?php

use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
use common\models\Common;

/* @var $this yii\web\View */
/* @var $model backend\models\Firm */

$this->title = 'Update Firm: ' . ' ' . $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Firms', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="box box-primary">
    <div class="box-header with-border">
        <h3 class="box-title"><?= Html::encode($this->title) ?></h3>
    </div>
    <!-- /.box-header -->
    <!-- form start -->
    <?php
    $form = ActiveForm::begin(['id' => 'firm']);

    echo $form->errorSummary($model);
    ?>
<div class="box-body">    
<div class="form-group field-firm-firm_name required">
<label class="control-label" for="firm-firm_name">Firm Name<span class="label-required">*</span></label>
<input type="text" id="firm-firm_name" class="form-control" name="Firm[firm_name]" maxlength="50" required value="<?php echo $model->firm_name; ?>" placeholder="-- Provide Firm Name--">


</div>
<div class="form-group field-firm-firm_type required">
<label class="control-label" for="firm-firm_type">Firm Type</label>
<input type="text" id="firm-firm_type" class="form-control" name="Firm[firm_type]" value="<?php echo $model->firm_type; ?>" placeholder="-- Provide Firm Type--">


</div>

<div class="form-group">
  <label class="control-label" for="firm-is_registered">Is Registered</label>
  <select name="Firm[is_registered]" class="form-control">
    <option value="1" <?php echo Common::isRegistered($model->is_registered,1); ?>>True</option>
    <option value="0" <?php echo Common::isRegistered($model->is_registered,0); ?>>False</option>
  </select>
</div>

<div class="form-group field-firm-vat_number">
<label class="control-label" for="firm-vat_number">Vat Number</label>
<input type="text" id="firm-vat_number" class="form-control" name="Firm[vat_number]" maxlength="20" value="<?php echo $model->vat_number; ?>" placeholder="-- Provide VAT Number --">


</div>
<div class="form-group field-firm-cst_number">
<label class="control-label" for="firm-cst_number">Cst Number</label>
<input type="text" id="firm-cst_number" class="form-control" name="Firm[cst_number]" maxlength="20" value="<?php echo $model->cst_number; ?>" placeholder="-- Provide CST Number --">


</div>
<div class="form-group field-firm-gst_number">
<label class="control-label" for="firm-gst_number">Gst Number</label>
<input type="text" id="firm-gst_number" class="form-control" name="Firm[gst_number]" maxlength="20" value="<?php echo $model->gst_number; ?>" placeholder="-- Provide GST Number --">
{'fraction_non_alphanumeric': 0.22266984068851858, 'fraction_numerical': 0.005127266068485625, 'mean_word_length': 5.588661037394451, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 155, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2458793', 'n_tokens_mistral': 1966, 'n_tokens_neox': 1873, 'n_words': 368}