Added views for QOR admin

This commit is contained in:
Nedim
2023-09-07 13:04:34 +02:00
parent 40c6366608
commit f02e5e49cb
180 changed files with 18556 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
<span class="mdl-layout-title">{{page_title}}</span>

View 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}}

View 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}}