Skip to content

Commit

Permalink
Dev: Remove survey properties menu from survey bar (moved to side menu)
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jan 31, 2018
1 parent ec7f96c commit 00651df
Showing 1 changed file with 0 additions and 74 deletions.
74 changes: 0 additions & 74 deletions application/views/admin/survey/surveybar_view.php
Expand Up @@ -154,80 +154,6 @@
<?php endif; ?>
<?php endif; ?>

<!-- Survey Properties -->
<?php if (!isset($surveybar['active_survey_properties']) && $showSurveyPropertiesMenu && 1 == 2):?>
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="icon-edit" ></span>
<?php eT("Survey properties"); ?> <span class="caret"></span>
</button>

<ul class="dropdown-menu">
<?php
if ($surveylocale || $surveysettings): ?>

<!-- Edit text elements and general settings -->
<li>
<a href='<?php echo $this->createUrl("admin/survey/sa/editlocalsettings/surveyid/$surveyid"); ?>'>
<span class="icon-edit" ></span>
<?php eT("General settings & texts"); ?>
</a>
</li>
<?php endif; ?>

<?php if ($surveysecurity): ?>

<!-- Survey permissions -->
<li>
<a href='<?php echo $this->createUrl("admin/surveypermission/sa/view/surveyid/$surveyid"); ?>' >
<span class="icon-security" ></span>
<?php eT("Survey permissions"); ?>
</a>
</li>
<?php endif; ?>

<?php if ($quotas): ?>

<!-- Quotas -->
<li>
<a href='<?php echo $this->createUrl("admin/quotas/sa/index/surveyid/$surveyid/"); ?>' >
<span class="icon-quota" ></span>
<?php eT("Quotas"); ?>
</a>
</li>
<?php endif; ?>

<?php if ($assessments): ?>

<!-- Assessments -->
<li>
<a href='<?php echo $this->createUrl("admin/assessments/sa/index/surveyid/$surveyid"); ?>' >
<span class="icon-assessments" ></span>
<?php eT("Assessments"); ?>
</a>
</li>
<?php endif; ?>

<?php if ($surveylocale): ?>

<!-- Email templates -->
<li>
<a href='<?php echo $this->createUrl("admin/emailtemplates/sa/index/surveyid/$surveyid"); ?>' >
<span class="icon-emailtemplates" ></span>
<?php eT("Email templates"); ?>
</a>
</li>
<?php endif; ?>
</ul>
</div>
<?php elseif (isset($surveybar['active_survey_properties'])):?>
<button type="button" class="btn btn-default btntooltip active">
<span class="icon-expressionmanagercheck" ></span>
<?php echo $surveybar['active_survey_properties']['txt']; ?>
</button>
<?php endif; ?>


<!-- TOOLS -->
<?php if ($showToolsMenu): ?>
<div class="btn-group hidden-xs">
Expand Down

0 comments on commit 00651df

Please sign in to comment.