Added views for QOR admin
This commit is contained in:
10
app/views/qor/metas/form/checkbox.tmpl
Normal file
10
app/views/qor/metas/form/checkbox.tmpl
Normal file
@@ -0,0 +1,10 @@
|
||||
<div class="qor-field">
|
||||
<label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" {{if .InputId}}for="{{.InputId}}"{{end}}>
|
||||
<span class="qor-field__label mdl-checkbox__label">{{meta_label .Meta}}</span>
|
||||
|
||||
<span class="qor-field__edit">
|
||||
<input type="checkbox" {{if .InputId}}id="{{.InputId}}"{{end}} name="{{.InputName}}" class="mdl-checkbox__input" value="true" type="checkbox" {{if .Value}}checked{{end}} {{if (not (has_change_permission .Meta)) }} disabled{{end}}>
|
||||
{{if has_change_permission .Meta}}<input type="hidden" name="{{.InputName}}" value="false">{{end}}
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
Reference in New Issue
Block a user