Ejemplo n.º 1
0
        ?>
</a></td>
			<td>
				<?php 
        $activities = $usergroup->getActivities();
        ?>
				<?php 
        if (count($activities) > 0) {
            ?>
					<ul class="inline">
						<?php 
            foreach ($activities as $activity) {
                ?>
							<li>
								<?php 
                echo color_dot($activity->getColor()) . $activity->getName();
                ?>
							</li>
						<?php 
            }
            ?>
					</ul>
				<?php 
        } else {
            ?>
					<span class="empty"><?php 
            echo __('No activities');
            ?>
</span>
				<?php 
        }
Ejemplo n.º 2
0
        echo $i;
        ?>
">
							<?php 
        echo $reservation->getDate();
        ?>
						</label>
					</td>
					
					<td class="ckb">
						<label class="ckb" for="ckb<?php 
        echo $i;
        ?>
">
							<?php 
        echo color_dot($reservation->getActivity()->getColor()) . $reservation->getActivity()->getName();
        ?>
							<span class="error_form"><?php 
        echo __($form->getErrorsToString());
        ?>
</span>
						</label>
					</td>
					
					<td class="ckb">
						<label class="ckb" for="ckb<?php 
        echo $i;
        ?>
">
							<?php 
        echo __('%duration% minute(s)', array('%duration%' => $reservation->getDuration()));
Ejemplo n.º 3
0
    ?>
			</td>
			<td>
				<?php 
    $activities = $room->getActivities();
    ?>
				<?php 
    if (count($activities) > 0) {
        ?>
					<ul class="inline">
						<?php 
        foreach ($activities as $activity) {
            ?>
							<li>
								<?php 
            echo color_dot($activity->getColor());
            ?>
								<span class="<?php 
            echo $activity->isCapacitySuitable($room->getCapacity()) ? '' : 'warning';
            ?>
">
									<?php 
            echo $activity->getNameAndOccupation($room->getCapacity());
            ?>
								</span>
							</li>
						<?php 
        }
        ?>
					</ul>
				<?php 
Ejemplo n.º 4
0
<?php

if (!is_null($person)) {
    ?>
<div class="navigation">
	<span><?php 
    echo __('Navigation: ');
    ?>
</span>
	<?php 
    if (!is_null($activity)) {
        ?>
		<span>
			<?php 
        echo link_to(color_dot($activity->getColor()) . $activity->getName(), 'home/index');
        ?>
		</span>
		<?php 
        if (!is_null($usergroup)) {
            ?>
			-<span>
				<?php 
            echo link_to($usergroup->getName(), 'home/usergroupIndex?usergroupId=' . $usergroup->getId());
            ?>
			</span>
			<?php 
            if (!is_null($user)) {
                ?>
				-<span>
					<?php 
                echo link_to($user->getFullName(), 'home/userIndex?userId=' . $user->getId());