<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\bootstrap\Button;
use yii\bootstrap\Modal;
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \backend\models\ValidationForm */


$user = $model->user;

?>
<!-- <div class="site-validate"> -->
	<div class="jumbotron">
		<h2>User validation</h2>
	</div>
<div class="browser">
	<p>
		<strong>A new user would like to sign up! Please verify the
			information below and click "Accept" to validate the user's
			candidature or "Reject" to cancel the registration.</strong>
	</p>
	<table style="cellpadding:20px;" >
		<tr>
			<th>Username:</th>
			<td>
   <?php echo  $user->__get('username')?>
   </td>
		</tr>
		<tr>
			<th>Email:</th>
			<td> <?php echo  $user->__get('email')?></td>
		</tr>
		<tr>
			<th>Form of address:</th>
			<td> <?php echo  $user->__get('form_of_address')?>
   </td>
		</tr>
		<tr>
		
		
		<tr>
			<th>Title:</th>
			<td> <?php echo  $user->__get('title')?>
   </td>
		</tr>
		<tr>
			<th>Name:</th>
			<td> <?php echo  $user->__get('name')?>
   </td>
		</tr>
		<tr>
			<th>First name:</th>
			<td> <?php echo  $user->__get('first_name')?>
   </td>
		</tr>
		<tr>
			<th>
				Institution:
			
			</th>
			<td> <?php echo  $user->__get('institution')?>
   </td>
		</tr>
		<tr>
			<th>Division:</th>
			<td> <?php echo  $user->__get('division')?>
   </td>
		</tr>
		<tr>
			<th>Street/P.O. Box:</th>
			<td> <?php echo  $user->__get('street_pobox')?>
   </td>
		</tr>
		<tr>
			<th>Postal Code:</th>
			<td> <?php echo  $user->__get('postal_code')?>
   </td>
		</tr>
		<tr>
			<th>Location/City:</th>
			<td> <?php echo  $user->__get('location_city')?>
   </td>
		</tr>
		<tr>
			<th>Country:</th>
			<td> <?php echo  $user->__get('country')?>
   </td>
		</tr>
	</table>
   
  
   
    <?php $form = ActiveForm::begin(['id' => 'form-validation']); ?>
    
    <p align="left"><?= $form->field($model, 'comment');?></p>
	<div class="row">
		<div class="col-lg-5">
			<div class="form-group">
         <?= Html::submitButton('Accept', ['class' => 'btn btn-primary', 'name' => 'accept-button', 'method'=>'post', 'action'=>['controller/accept-reject']])?>
        <?= Html::submitButton('Reject', ['class' => 'btn btn-primary', 'name' => 'reject-button'])?>
        </div>
		</div>

	</div>
        <?php ActiveForm::end();?>
        </div>
</div>