From 90c0c452cbdb1ae40df5bab48b935c7bea2410a8 Mon Sep 17 00:00:00 2001 From: chrisramey Date: Sun, 18 Sep 2011 16:59:04 -0500 Subject: [PATCH 1/2] Updates --- protected/views/app/_form.php | 2 +- protected/views/app/create.php | 50 ++++++++++++++------------- protected/views/app/index.php | 1 + protected/views/app/view.php | 8 ++--- protected/views/assessment/_view.php | 4 ++- protected/views/assessment/create.php | 2 +- protected/views/assessment/view.php | 29 +++++++++++----- protected/views/challenge/_form.php | 6 ++-- protected/views/challenge/_view.php | 4 ++- protected/views/student/game.php | 2 +- 10 files changed, 64 insertions(+), 44 deletions(-) diff --git a/protected/views/app/_form.php b/protected/views/app/_form.php index ed13f25..7571ea4 100644 --- a/protected/views/app/_form.php +++ b/protected/views/app/_form.php @@ -3,7 +3,7 @@ errorSummary($model); ?>
- labelEx($model,'name'); ?> +

labelEx($model,'name'); ?>

textField($model,'name',array('size'=>45,'maxlength'=>45)); ?> error($model,'name'); ?>
diff --git a/protected/views/app/create.php b/protected/views/app/create.php index 468f262..f3b9046 100644 --- a/protected/views/app/create.php +++ b/protected/views/app/create.php @@ -10,27 +10,29 @@ ); ?> -

Create App

-
- -beginWidget('CActiveForm', array( - 'id'=>'App-form', - 'enableAjaxValidation'=>true, -)); -echo $this->renderPartial('_form', array( - 'model'=>$model, - 'form' =>$form - )); ?> - -
- request->getQuery('returnTo')); - if(empty($url[0])) - $url = array('App/admin'); -echo CHtml::Button(Yii::t('app', 'Cancel'), array('submit' => $url)); ?>  - -
- -endWidget(); ?> - -
+
+

New App

+
+ + beginWidget('CActiveForm', array( + 'id'=>'App-form', + 'enableAjaxValidation'=>true, + )); + echo $this->renderPartial('_form', array( + 'model'=>$model, + 'form' =>$form + )); ?> + +
+ request->getQuery('returnTo')); + if(empty($url[0])) + $url = array('App/admin'); + echo CHtml::Button(Yii::t('app', 'Cancel'), array('submit' => $url)); ?>  + +
+ + endWidget(); ?> + +
+
\ No newline at end of file diff --git a/protected/views/app/index.php b/protected/views/app/index.php index 78598b4..4e315ea 100644 --- a/protected/views/app/index.php +++ b/protected/views/app/index.php @@ -16,3 +16,4 @@ 'dataProvider'=>$dataProvider, 'itemView'=>'_view', )); ?> +
Add App
\ No newline at end of file diff --git a/protected/views/app/view.php b/protected/views/app/view.php index 12425d8..f9243ce 100644 --- a/protected/views/app/view.php +++ b/protected/views/app/view.php @@ -9,10 +9,10 @@ 'form' =>$form, 'link' => true )); ?> -
+ 0) { ?> - +

Challenges

renderPartial('/challenge/_view', array( @@ -21,8 +21,8 @@ 'link' => true )); ?> +
No challenges found.

'; + echo '

No challenges found.

'; }?> -
Add Challenge
\ No newline at end of file diff --git a/protected/views/assessment/_view.php b/protected/views/assessment/_view.php index 1059466..59d7878 100644 --- a/protected/views/assessment/_view.php +++ b/protected/views/assessment/_view.php @@ -8,13 +8,15 @@ $actions .= 'Delete'; $actions .= ''; $style = 'margin:8px 0px;padding:5px;border:1px solid #666;-moz-border-radius:4px;-border-radius:4px;background-color:#fefefe;'; + $h2Style = 'border-bottom:none;'; } 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;'; + $h2Style = ''; }?>
-

+

diff --git a/protected/views/assessment/create.php b/protected/views/assessment/create.php index 7ddff96..32c06ef 100644 --- a/protected/views/assessment/create.php +++ b/protected/views/assessment/create.php @@ -10,7 +10,7 @@ ); ?> -

Create Assessment

+

Create Assessment

beginWidget('CActiveForm', array( diff --git a/protected/views/assessment/view.php b/protected/views/assessment/view.php index 4f29cee..3330e2c 100644 --- a/protected/views/assessment/view.php +++ b/protected/views/assessment/view.php @@ -12,26 +12,39 @@ array('label'=>Yii::t('app', 'Manage') . ' Assessment', 'url'=>array('admin')), ); ?> - +

name?>

0) { ?> +

Multiple Choice Questions

- -
- prompt;?> -
+ '; + $actions .= 'Edit'; + $actions .= 'Delete'; + $actions .= '
'; + ?> +
+ + prompt;?> +
0) { ?>

Free Form Questions

- -
+ '; + $actions .= 'Edit'; + $actions .= 'Delete'; + $actions .= '
'; + ?> +
+ prompt;?>
- +
Add id));?> | id));?>
diff --git a/protected/views/challenge/_form.php b/protected/views/challenge/_form.php index d1ba8f3..98eaa38 100644 --- a/protected/views/challenge/_form.php +++ b/protected/views/challenge/_form.php @@ -3,11 +3,11 @@ errorSummary($model); ?>
-

Name *

+

Name *

textField($model,'name',array('size'=>60,'maxlength'=>255)); ?>
-

Type *

+

Type *

Yii::t('app', 'video') , 'reading' => Yii::t('app', 'reading') , @@ -18,7 +18,7 @@
-

Description *

+

Description *

widget('application.extensions.ckeditor.CKEditorWidget', array( diff --git a/protected/views/challenge/_view.php b/protected/views/challenge/_view.php index d83bb55..76570cf 100644 --- a/protected/views/challenge/_view.php +++ b/protected/views/challenge/_view.php @@ -8,15 +8,17 @@ $actions .= 'Delete'; $actions .= '
'; $style = 'margin:8px 0px;padding:5px;border:1px solid #666;-moz-border-radius:4px;-border-radius:4px;background-color:#fefefe;'; + $h2Style = 'border-bottom:none;'; } 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:#fefefe url(/images/brain-icon.png) 98% 6px no-repeat;'; + $h2Style = ''; } ?>
-

+

diff --git a/protected/views/student/game.php b/protected/views/student/game.php index 58d644c..bcad056 100644 --- a/protected/views/student/game.php +++ b/protected/views/student/game.php @@ -15,7 +15,7 @@

name; ?>

- + description ?>

Leaderboard

From 8d9ea83758fbafe80e0268d97b42cc8b6e7cbe25 Mon Sep 17 00:00:00 2001 From: chrisramey Date: Sun, 18 Sep 2011 17:12:20 -0500 Subject: [PATCH 2/2] Updates --- protected/views/student/_gameView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protected/views/student/_gameView.php b/protected/views/student/_gameView.php index 00f327f..85e80bd 100644 --- a/protected/views/student/_gameView.php +++ b/protected/views/student/_gameView.php @@ -1,7 +1,7 @@
- image,CHtml::encode($data->name),array('style'=>'width:80px;')), array('student/game', 'id'=>$data->id)); ?> + image,CHtml::encode($data->name),array('style'=>'width:80px;')), array('student/game', 'id'=>$data->id)); ?>