Skip to content

Commit

Permalink
Fixed issue #11585: VV export/import dialogs are not styled
Browse files Browse the repository at this point in the history
Dev: using button group
  • Loading branch information
LouisGac committed Aug 25, 2016
1 parent 93bc98c commit 4eb5962
Showing 1 changed file with 59 additions and 13 deletions.
72 changes: 59 additions & 13 deletions application/views/admin/export/vv_view.php
Expand Up @@ -8,7 +8,7 @@
<div class="panel panel-primary" id="pannel-1" style="opacity: 1; top: 0px;">
<div class="panel-heading">
<h4 class="panel-title">
<?php eT("Export survey:");?>
<?php eT("Export survey");?>
</h4>
</div>

Expand All @@ -26,22 +26,49 @@
<label for="completionstate" class="col-sm-2 control-label">
<?php eT("Export:");?>
</label>
<div class="col-sm-4">
<?php echo CHtml::dropDownList('completionstate', $selectincansstate, array(
'complete' => gT("Completed responses only",'unescaped'),
'all' => gT("All responses",'unescaped'),
'incomplete' => gT("Incomplete responses only",'unescaped'),
), array('class'=>'form-control')); ?>
<div class="col-sm-8">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input
name="completionstate"
value="complete"
type="radio"
id="completionstate-complete"
/>
<?php eT("Completed responses only");?>
</label>

<label class="btn btn-default active">
<input
name="completionstate"
value="all"
type="radio"
checked='checked'
id="completionstate-all"
autofocus="true"
/>
<?php eT("All responses");?>
</label>

<label class="btn btn-default">
<input
name="completionstate"
value="incomplete"
type="radio"
id="completionstate-incomplete"
/>
<?php eT("Incomplete responses only");?>
</label>
</div>
</div>
</div>

</div>
</div>

<div class="panel panel-primary" id="pannel-1" style="opacity: 1; top: 0px;">
<div class="panel-heading">
<h4 class="panel-title">
<?php eT("Format:");?>
<?php eT("Format");?>
</h4>
</div>
<div class="panel-body">
Expand All @@ -59,12 +86,31 @@
<?php eT("VV export version:");?>
</label>
<div class="col-sm-4">
<?php echo CHtml::dropDownList('vvversion', $vvversionseleted, array(
'2' => gT("Last VV version",'unescaped'),
'1' => gT("Old VV version",'unescaped'),
), array('class'=>'form-control'));; ?>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input
name="vvversion"
value="2"
type="radio"
id="vvversion-last"
checked='checked'
autofocus="true"
/>
<?php eT("Last VV version");?>
</label>

<label class="btn btn-default">
<input
name="vvversion"
value="1"
type="radio"
id="vvversion-old"
/>
<?php eT("Old VV version");?>
</label>
</div>
</div>

</div>
</div>
</div>
Expand Down

0 comments on commit 4eb5962

Please sign in to comment.