This repository has been archived by the owner on Oct 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
chrisramey
committed
Sep 18, 2011
1 parent
39a311c
commit 9b11e24
Showing
6 changed files
with
56 additions
and
42 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
<div class="view"> | ||
|
||
<b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b> | ||
<?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?> | ||
<br /> | ||
|
||
<b><?php echo CHtml::encode($data->getAttributeLabel('task_id')); ?>:</b> | ||
<?php echo CHtml::encode($data->task_id); ?> | ||
<br /> | ||
|
||
<b><?php echo CHtml::encode($data->getAttributeLabel('name')); ?>:</b> | ||
<?php echo CHtml::encode($data->name); ?> | ||
<br /> | ||
|
||
<b><?php echo CHtml::encode($data->getAttributeLabel('type')); ?>:</b> | ||
<?php echo CHtml::encode($data->type); ?> | ||
<br /> | ||
|
||
<?php | ||
$data = ($model == null) ? $data : $model; | ||
if ($link) { | ||
$title = '<a href="/assessment/view/id/'.$data->id.'">'.$data->name.'</a>'; | ||
$description = ''; | ||
$actions = '<div class="actions" style="float:right;line-height:30px;">'; | ||
$actions .= '<a style="margin:0px 6px;" href="/assessment/update/id/'.$data->id.'"><img style="height:20px;vertical-align:middle;" src="/images/edit.png" alt="Edit"/></a>'; | ||
$actions .= '<a style="margin:0px 6px;" href="/assessment/delete/id/'.$data->id.'" onclick="return confirm(\'Are you sure you want to delete this challenge? All related questions will be permnently deleted.\');"><img style="height:20px;vertical-align:middle;" src="/images/delete.png" alt="Delete"/></a>'; | ||
$actions .= '</div>'; | ||
$style = 'margin:8px 0px;padding:5px;border:1px solid #666;-moz-border-radius:4px;-border-radius:4px;background-color:#fefefe;'; | ||
} else { | ||
$title = $model->name; | ||
$description = $model->description; | ||
$actions = ''; | ||
$style = 'margin:20px 0px;padding:10px;border:1px solid #555;-moz-border-radius:4px;border-radius:4px;background:#efefef url(/images/brain-icon.png) 98% 6px no-repeat;'; | ||
}?> | ||
<div class="question" style="<?php echo $style;?>"> | ||
<?php echo $actions;?> | ||
<h2 style="margin:0px;"><?php echo $title;?></h2> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters