<form class="navbar-form" action="" method="post">
                <div class="time">
                    <span>time :</span>
                    <div class="form-group form-inline" role="group" aria-label="...">
                      <button type="submit" class="btn btn-default {% if time_choose == '1' %}btn-primary{% endif %}" name="time" value='1'>1day</button>
                      <button type="submit" class="btn btn-default {% if time_choose == '7' %}btn-primary{% endif %}" name="time" value='7'>7day</button>
                      <button type="submit" class="btn btn-default {% if time_choose == '15' %}btn-primary{% endif %}" name="time" value='15'>15day</button>
                      <button type="submit" class="btn btn-default {% if time_choose == '30' %}btn-primary{% endif %}" name="time" value='30'>30day</button>
                    </div>
                </div>
            </form>