Skip to content

Commit

Permalink
Merge branch '2.5' of https://github.com/LimeSurvey/LimeSurvey into 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Dec 16, 2015
2 parents d1769fa + 007ada7 commit 664dd0a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions application/controllers/admin/tokens.php
Expand Up @@ -1710,12 +1710,12 @@ function exportdialog($iSurveyId)
'filteremail'=>array(
'type'=>'string',
'label'=>gT('Filter by email address'),
'help'=>gT('Email address contains the input.'),
'help'=>gT('Only export entries which contain this string in the email address.'),
),
'tokendeleteexported'=>array(
'type'=>'checkbox',
'label'=>gT('Delete exported tokens'),
'help'=>'Attention : the tokens are deleted from token table, you can not find it again.',
'help'=>gT('Warning: Deleted token entries cannot be recovered.'),
),
);
$this->_renderWrappedTemplate('token', array( 'exportdialog'), $aData);
Expand Down
6 changes: 5 additions & 1 deletion application/extensions/SettingsWidget/SettingsWidget.php
Expand Up @@ -416,7 +416,11 @@ public function renderSelect($name, array $metaData, $form = null)
$properties['events']['change']='js: function(e) { this.form.submit();}';
}

return App()->getController()->widget('yiiwheels.widgets.select2.WhSelect2', $properties, true);
// Remove class 'form-control' because of double styling
// TODO: Where is this class added in the first place??
$html = App()->getController()->widget('yiiwheels.widgets.select2.WhSelect2', $properties, true);
$html = str_replace('form-control', '', $html);
return $html;

}

Expand Down
6 changes: 3 additions & 3 deletions application/views/admin/pluginmanager/index.php
Expand Up @@ -42,13 +42,13 @@
'value' => function($data) {
if ($data['active'] == 0)
{
$output = "<a href='" . $this->createUrl('/admin/pluginmanager/sa/activate') . "?id=" . $data["id"] . "' class='btn btn-default btn-xs btntooltip'><span class='fa fa-power-off'>&nbsp;</span>".gT('Activate')."</a>";
$output = "<a href='" . $this->createUrl('/admin/pluginmanager/sa/activate', array('id' => $data['id'])) . "' class='btn btn-default btn-xs btntooltip'><span class='fa fa-power-off'>&nbsp;</span>".gT('Activate')."</a>";
} else {
$output = "<a href='" . $this->createUrl('/admin/pluginmanager/sa/deactivate') . "?id=" . $data["id"] . "'class='btn btn-warning btn-xs'><span class='fa fa-power-off'>&nbsp;</span>".gT('Deactivate')."</a>";
$output = "<a href='" . $this->createUrl('/admin/pluginmanager/sa/deactivate', array('id' => $data['id'])) . "'class='btn btn-warning btn-xs'><span class='fa fa-power-off'>&nbsp;</span>".gT('Deactivate')."</a>";
}
if(count($data['settings'])>0)
{
$output .= "&nbsp;<a href='" . $this->createUrl('/admin/pluginmanager/sa/configure') . "?id=" . $data["id"] . "' class='btn btn-default btn-xs'><span class='icon-edit'>&nbsp;</span>" . gT('Configure') . "</a>";
$output .= "&nbsp;<a href='" . $this->createUrl('/admin/pluginmanager/sa/configure', array('id' => $data['id'])) . "' class='btn btn-default btn-xs'><span class='icon-edit'>&nbsp;</span>" . gT('Configure') . "</a>";
}
return $output;
}
Expand Down
4 changes: 2 additions & 2 deletions application/views/admin/token/exportdialog.php
Expand Up @@ -73,7 +73,7 @@
<input size="50" type="text" value="" name="filteremail" id="filteremail" />
</div>
<div class="alert alert-info col-lg-3 col-sm-2 col-md-12 controls" role="alert">
<?php eT('Email address contains the input.'); ?>
<?php eT('Only export entries which contain this string in email address.'); ?>
</div>

</div>
Expand All @@ -87,7 +87,7 @@
<input type="checkbox" value="1" name="tokendeleteexported" id="tokendeleteexported" />
</div>
<div class="alert alert-warning col-lg-3 col-sm-2 col-md-12 controls" role="alert">
<?php eT('Attention : the tokens are deleted from token table, you can not find it again.'); ?>
<?php eT('Warning: Deleted token entries cannot be recovered.'); ?>
</div>
</div>
</div>
Expand Down

0 comments on commit 664dd0a

Please sign in to comment.