Added views for QOR admin
This commit is contained in:
23
app/views/qor/index.tmpl
Normal file
23
app/views/qor/index.tmpl
Normal file
@@ -0,0 +1,23 @@
|
||||
{{$actions := load_actions "index" }}
|
||||
{{if $actions}}
|
||||
<div class="qor-page__header">
|
||||
{{$actions}}
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<div class="qor-page__body">
|
||||
{{render "shared/flashes"}}
|
||||
{{render "shared/errors"}}
|
||||
|
||||
<div class="qor-table-container">
|
||||
{{render "index/table"}}
|
||||
</div>
|
||||
|
||||
{{if has_create_permission .Resource}}
|
||||
<a class="mdl-button mdl-button--fab mdl-button--primary qor-button--new" href="{{new_resource_path .Resource}}" data-url="{{new_resource_path .Resource}}">
|
||||
<i class="material-icons">add</i>
|
||||
</a>
|
||||
{{end}}
|
||||
|
||||
{{render "index/pagination"}}
|
||||
</div>
|
||||
Reference in New Issue
Block a user