<div class="panelContent">

    <?php 
echo \Form::open(array('action' => \Uri::admin('current'), 'method' => 'get', 'class' => 'filter_form'));
$margin = \Str::alternator('m_r_15', 'm_r_15', 'm_r_15', '');
$status = array('false' => 'All', '1' => 'Active', '0' => 'Inactive');
?>
    <div class="row-fluid blue_filters">
        <table class="blue_filters_table">  
            <tr>
                <td>
                    <div class="filter_width  <?php 
echo $margin();
?>
">
                        <div class="double_select">
                            <?php 
echo \Form::label('Status');
?>
                            <?php 
echo \Form::select('status', \Input::get('status'), array('select' => 'Select') + $status, array('class' => 'toggle_dates select_init filter_width', 'onchange' => "show_dates(\$(this), 2, \$('.toggable_dates'));"));
?>
                        </div>

                        <div class="toggable_dates date_content" <?php 
echo \Input::get('status') != '2' ? 'style="display: none;"' : '';
?>
>

                            <?php 
echo \Form::label('Dates Active', null, array('class' => 'dateLabel'));
Beispiel #2
0
 /**
  * Test for Str::alternator()
  *
  * @test
  */
 public function test_alternator()
 {
     $alt = Str::alternator('one', 'two', 'three');
     $output = $alt();
     $expected = 'one';
     $this->assertEquals($output, $expected);
     $output = $alt(false);
     $expected = 'two';
     $this->assertEquals($output, $expected);
     $output = $alt();
     $expected = 'two';
     $this->assertEquals($output, $expected);
     $output = $alt();
     $expected = 'three';
     $this->assertEquals($output, $expected);
     $output = $alt();
     $expected = 'one';
     $this->assertEquals($output, $expected);
 }