예제 #1
0
							<div class="controls">
								<span class="text"><?php 
    echo Locale::formatPrice($model->off_price);
    ?>
</span>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label"><?php 
    echo $form->controlLabel($model, 'off_status');
    ?>
</label>

							<div class="controls hint">
								<?php 
    echo $form->dropDownList($model, 'off_status', Offer::getStatuses(), ['disabled' => $model->off_status == Offer::STATUS_DELETED]);
    ?>
								<?php 
    if (!in_array($model->off_status, [Offer::STATUS_DELETED, Offer::STATUS_ACCEPTED])) {
        ?>
									<span class="hint">
										If offer is Accepted, other offer(s) will turn to Rejected
									</span>
								<?php 
    }
    ?>
							</div>
						</div>
					<?php 
}
?>