Пример #1
0
		
		<?php 
if (\Site::notifier()->hasMessage('error')) {
    ?>
			<div class="notification error"><?php 
    echo \Site::notifier()->getMessage('error');
    ?>
</div>
		<?php 
}
?>
			
		<table class="table-login">
			<tr>
				<td><?php 
echo $form->label($model, 'username');
?>
</td>
				<td><?php 
echo $form->textField($model, 'username', array('autofocus' => "autofocus"));
echo $form->error($model, 'username');
?>
</td>
			</tr>
			<tr>
				<td><?php 
echo $form->label($model, 'password');
?>
</td>
				<td><?php 
echo $form->passwordField($model, 'password');
Пример #2
0
        ?>
</div>
			<?php 
    }
    ?>

			<table class="table-reset-password">	
				<tr>
					<td colspan="2"><?php 
    echo \GO::t('changePasswordText', 'defaultsite');
    ?>
</td>
				</tr>
				<tr>
					<td><?php 
    echo $form->label($user, 'password');
    ?>
</td>
					<td><?php 
    echo $form->passwordField($user, 'password');
    echo $form->error($user, 'password');
    ?>
</td>
				</tr>
				<tr>
					<td><?php 
    echo $form->label($user, 'passwordConfirm');
    ?>
</td>
					<td><?php 
    echo $form->passwordField($user, 'passwordConfirm');
Пример #3
0
<?php 
$form = new \GO\Site\Widget\Form();
echo $form->beginForm();
?>

<div class="row formrow">					
	<?php 
echo $form->label($model, 'name');
?>
	<?php 
echo $form->textField($model, 'name');
?>
	<span ><?php 
echo '.' . \GO::config()->servermanager_wildcard_domain;
?>
</span>
	<?php 
echo $form->error($model, 'name');
?>
</div>
<div class="row formrow">
	<?php 
echo $form->label($model, 'title');
?>
	<?php 
echo $form->textField($model, 'title');
?>
	<?php 
echo $form->error($model, 'title');
?>
Пример #4
0
		<?php 
$form = new \GO\Site\Widget\Form();
?>
		<?php 
echo $form->beginForm(false, false, array('enctype' => 'multipart/form-data'));
?>

		<h3><?php 
echo \GO::t('ticketContactInfo', 'defaultsite');
?>
</h3>
		
		<table class="table-contactinformation">
			<tr>
				<td><?php 
echo $form->label($ticket, 'first_name', array('label' => \GO::t('ticketFirstname', 'defaultsite')));
?>
</td>
				<td><?php 
echo $form->textField($ticket, 'first_name');
?>
</td>
			</tr>
			<tr>
				<td><?php 
echo $form->label($ticket, 'middle_name', array('label' => \GO::t('ticketMiddlename', 'defaultsite')));
?>
</td>
				<td><?php 
echo $form->textField($ticket, 'middle_name');
?>
Пример #5
0
// Use the addressbook model to populate the hidden field:
echo $form->hiddenField($addressbook, 'id', array('value' => $addressbook->id));
// Just set the correct addressbook id in the hidden field manually:
// echo $form->hiddenField($addressbook,'id',array('value'=>11));
//$addressbook = \GO\Addressbook\Model\Addressbook::model()->findSingleByAttribute('name','Example');
echo $form->hiddenField($addressbook, 'id', array('value' => $addressbook->id));
?>
		
		<h3><?php 
echo \GO::t('contactDetails', 'defaultsite');
?>
</h3>
		<table class="table-registration-contact">
			<tr>
				<td><?php 
echo $form->label($contact, 'first_name');
?>
</td>
				<td><?php 
echo $form->textField($contact, 'first_name');
echo $form->error($contact, 'first_name');
?>
</td>
			</tr>
			<tr>
				<td><?php 
echo $form->label($contact, 'middle_name');
?>
</td>
				<td><?php 
echo $form->textField($contact, 'middle_name');
Пример #6
0
		<?php 
echo $form->beginForm(false, false, array('id' => 'register'));
?>
		
		<?php 
echo \GO::t('registerformText', 'defaultsite');
?>
		
		<h3><?php 
echo \GO::t('contactDetails', 'defaultsite');
?>
</h3>
		<table class="table-registration-contact">
			<tr>
				<td><?php 
echo $form->label($user, 'first_name');
?>
</td>
				<td><?php 
echo $form->textField($user, 'first_name');
echo $form->error($user, 'first_name');
?>
</td>
			</tr>
			<tr>
				<td><?php 
echo $form->label($user, 'middle_name');
?>
</td>
				<td><?php 
echo $form->textField($user, 'middle_name');