Skip to content

Commit

Permalink
search box style
Browse files Browse the repository at this point in the history
  • Loading branch information
mylxsw committed May 5, 2019
1 parent 5115bac commit 8386c8f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions resources/views/layouts/navbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@
<h5 class="my-0 mr-md-auto font-weight-normal wz-top-nav-item">
<a href="/">{{ config('app.name', 'Wizard API') }}</a>
</h5>

<div class="wz-top-nav-search ml-md-auto d-flex justify-content-end">
<form action="{{ wzRoute('search:search') }}" method="get">
<label for="search-keyword"></label>
<input type="text" placeholder="@lang('common.search')" id="search-keyword" name="keyword" value="{{ $keyword ?? '' }}">
</form>
</div>
@if (Auth::guest())
<a class="p-2 text-dark mr-3" href="{{ wzRoute('search:search') }}">搜索</a>
<a class="btn btn-info active" href="{{ wzRoute('login') }}">@lang('common.login')</a>
{{--<a class="btn btn-outline-primary" href="{{ wzRoute('register') }}">@lang('common.register')</a>--}}
@else

<div class="wz-top-nav-search ml-md-auto d-flex justify-content-end">
<form action="{{ wzRoute('search:search') }}" method="get">
<label for="search-keyword"></label>
<input type="text" placeholder="@lang('common.search')" id="search-keyword" name="keyword" value="{{ $keyword ?? '' }}">
</form>
</div>

<nav class="my-2 my-md-0 wz-top-nav-item">
<a class="p-2 text-dark dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ Auth::user()->name ?? Auth::user()->email }}
Expand Down

0 comments on commit 8386c8f

Please sign in to comment.