Added views for QOR admin
This commit is contained in:
3
app/views/qor/actions/header/1.page_title.tmpl
Normal file
3
app/views/qor/actions/header/1.page_title.tmpl
Normal file
@@ -0,0 +1,3 @@
|
||||
<span class="mdl-layout-title">{{page_title}}</span>
|
||||
|
||||
|
||||
4
app/views/qor/actions/header/5.userinfo.tmpl
Normal file
4
app/views/qor/actions/header/5.userinfo.tmpl
Normal file
@@ -0,0 +1,4 @@
|
||||
{{if .CurrentUser}}
|
||||
<div class="mdl-layout-spacer"></div>
|
||||
<button class="mdl-button mdl-navigation mdl-layout--small-screen-only qor-mobile--show-actions">{{t "qor_admin.layout.header.actions" "Actions"}} <i class="material-icons">arrow_drop_down</i></button>
|
||||
{{end}}
|
||||
27
app/views/qor/actions/header/6.searchbar.tmpl
Normal file
27
app/views/qor/actions/header/6.searchbar.tmpl
Normal file
@@ -0,0 +1,27 @@
|
||||
{{if .Resource}}
|
||||
{{if .Resource.SearchHandler}}
|
||||
{{ $keyword := .Context.Request.URL.Query.Get "keyword" }}
|
||||
<form class="qor-search-container ignore-dirtyform" method="GET">
|
||||
{{range $key, $values := .Context.Request.URL.Query}}
|
||||
{{if (and (ne $key "keyword") (ne $key "page"))}}
|
||||
{{range $value := $values}}
|
||||
<input name="{{$key}}" value="{{$value}}" type="hidden">
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--expandable qor-search">
|
||||
<label class="mdl-button mdl-js-button mdl-button--icon qor-search__label" for="inputSearch">
|
||||
<i class="material-icons">search</i>
|
||||
</label>
|
||||
<div class="mdl-textfield__expandable-holder">
|
||||
<input class="mdl-textfield__input qor-search__input" type="text" id="inputSearch" name="keyword" value="{{ $keyword }}" placeholder="{{t "qor_admin.actions.search_bar_search" "Search"}}">
|
||||
<label class="mdl-textfield__label"></label>
|
||||
</div>
|
||||
<button class="mdl-button mdl-js-button mdl-button--icon mdl-button--colored qor-search__clear" type="button">
|
||||
<i class="material-icons md-18">clear</i>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
{{end}}
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user