Skip to content

Commit

Permalink
Dev: added container to vanilla
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Dec 21, 2017
1 parent 7075c85 commit 52ed9b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions installer/create-database.php 100644 → 100755
Expand Up @@ -786,7 +786,7 @@ function createDatabase($oDB){
'files_css' => '{"add":["css/ajaxify.css","css/theme.css","css/custom.css"]}',
'files_js' => '{"add":["scripts/theme.js","scripts/ajaxify.js","scripts/custom.js"]}',
'files_print_css' => '{"add":["css/print_theme.css"]}',
'options' => '{"ajaxmode":"on","brandlogo":"on","brandlogofile":"./files/logo.png","font":"noto"}',
'options' => '{"ajaxmode":"on","brandlogo":"on","container":"on","brandlogofile":"./files/logo.png","font":"noto"}',
'cssframework_name' => 'bootstrap',
'cssframework_css' => '{}',
'cssframework_js' => '',
Expand All @@ -810,7 +810,7 @@ function createDatabase($oDB){
]
);
$oDB->createCommand()->createIndex('{{idx1_tutorials}}', '{{tutorials}}', 'name', true);

$oDB->createCommand()->insert('{{tutorials}}', array(
'tid' => 1,
'name' => 'firstStartTour',
Expand All @@ -821,12 +821,12 @@ function createDatabase($oDB){
'settings' => json_encode(array(
'keyboard' => false,
'template' => "<div class='popover tour lstutorial__template--mainContainer'> <div class='arrow'></div> <h3 class='popover-title lstutorial__template--title'></h3> <div class='popover-content lstutorial__template--content'></div> <div class='popover-navigation lstutorial__template--navigation'> <div class='btn-group col-xs-8' role='group' aria-label='...'> <button class='btn btn-default col-xs-6' data-role='prev'>".gT('Previous')."</button> <button class='btn btn-primary col-xs-6' data-role='next'>".gT('Next')."</button> </div> <div class='col-xs-4'> <button class='btn btn-warning' data-role='end'>".gT('End tour')."</button> </div> </div></div>",
'onShown' => "(function(tour){ console.ls.log($('#notif-container').children()); $('#notif-container').children().remove(); })",
'onShown' => "(function(tour){ console.ls.log($('#notif-container').children()); $('#notif-container').children().remove(); })",
'onStart' => "(function(){var domaintobe=LS.data.baseUrl+(LS.data.urlFormat == 'path' ? '/admin/index' : '?r=admin/index'); if(window.location.href!=domaintobe){window.location.href=domaintobe;} })"
)),
'permission' => 'survey',
'permission_grade' => 'create'

));

//tutorial user mapping
Expand All @@ -835,9 +835,9 @@ function createDatabase($oDB){
'uid' => 'int DEFAULT NULL',
'taken' => 'boolean DEFAULT 1',
));

$oDB->createCommand()->addPrimaryKey('{{map_tutorial_users_pk}}', '{{map_tutorial_users}}', ['uid','tid']);

//tutorial entry groups
$oDB->createCommand()->createTable('{{tutorial_entry_relation}}', array(
'teid' => 'int NOT NULL',
Expand Down Expand Up @@ -1116,7 +1116,7 @@ function createDatabase($oDB){
'teid' => 18,
'ordering' => 18,
'title' => 'The title of your question',
'content' =>
'content' =>
"This code is normally not shown to your participants, still it is necessary and has to be unique for the survey.".'<br>'
."This code is also the name of the variable that will be exported to SPSS or Excel."
.'<p class="alert bg-warning">'."Please type in a code that consists only of letters and numbers, and doesn't start with a number.".'</p>',
Expand Down
3 changes: 2 additions & 1 deletion themes/survey/vanilla/config.xml 100644 → 100755
Expand Up @@ -51,7 +51,8 @@
<options>
<ajaxmode>on</ajaxmode>
<animatebody>off</animatebody>
<bodyanimation>fadeInRight</bodyanimation>
<container>on</container>
<bodyanimation>fadeInRight</bodyanimation>
<brandlogo>on</brandlogo>
<brandlogofile>./files/logo.png</brandlogofile>
<font>noto</font>
Expand Down

0 comments on commit 52ed9b2

Please sign in to comment.