Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue: Default tutorials out of db and reset surveymenues to wo…
…rk well with translations
- Loading branch information
Showing
22 changed files
with
200 additions
and
1,708 deletions.
There are no files selected for viewing
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
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
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
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
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,20 +1,25 @@ | ||
<?php | ||
$aTutorials = Tutorials::model()->getActiveTutorials(); | ||
$aTutorials = Tutorial::model()->getActiveTutorials(); | ||
|
||
?> | ||
|
||
<li class="dropdown"> | ||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> | ||
<span class="fa fa-rocket" ></span> | ||
<?php eT('Tutorials');?> | ||
<?php eT('Tutorial');?> | ||
<span class="caret"></span> | ||
</a> | ||
<ul class="dropdown-menu " id="tutorials-dropdown"> | ||
<?php foreach($aTutorials as $oTutorial) { ?> | ||
<li> | ||
<a href="#" onclick="window.tourLibrary.triggerTourStart('<?=$oTutorial->name?>')"> | ||
<i class="fa <?=$oTutorial->icon?>"></i> <?=gT($oTutorial->title)?> | ||
<i class="fa <?=$oTutorial->icon?>"></i> <?=$oTutorial->title?> | ||
</a> | ||
</li> | ||
<?php } ?> | ||
</ul> | ||
</li> | ||
|
||
<script> | ||
console.log(<?=json_encode( array_map(function($tut){return $tut->attributes;}, $aTutorials) )?>); | ||
</script> |
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
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,18 +1,18 @@ | ||
<?php | ||
/* @var $this TutorialsController */ | ||
/* @var $model Tutorials */ | ||
/* @var $model Tutorial */ | ||
|
||
$this->breadcrumbs=array( | ||
'Tutorials'=>array('index'), | ||
'Tutorial'=>array('index'), | ||
'Create', | ||
); | ||
|
||
$this->menu=array( | ||
array('label'=>'List Tutorials', 'url'=>array('index')), | ||
array('label'=>'Manage Tutorials', 'url'=>array('admin')), | ||
array('label'=>'List Tutorial', 'url'=>array('index')), | ||
array('label'=>'Manage Tutorial', 'url'=>array('admin')), | ||
); | ||
?> | ||
|
||
<h1>Create Tutorials</h1> | ||
<h1>Create Tutorial</h1> | ||
|
||
<?php $this->renderPartial('_form', array('model'=>$model)); ?> |
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
Oops, something went wrong.