Merge pull request #18 from techAPJ/hide-controls
hide controls on query page
This commit is contained in:
commit
3586919881
|
@ -3,27 +3,29 @@
|
||||||
{{#if disallow}}
|
{{#if disallow}}
|
||||||
<h2>{{i18n "explorer.admins_only"}}</h2>
|
<h2>{{i18n "explorer.admins_only"}}</h2>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="query-list">
|
{{#unless selectedQueryId}}
|
||||||
{{combo-box valueAttribute="id" value=selectedQueryId nameProperty="listName" none="explorer.menu_none" content=content castInteger="true" nameChanges="true"}}
|
<div class="query-list">
|
||||||
{{d-button action="showCreate" icon="plus" class="no-text"}}
|
{{combo-box valueAttribute="id" value=selectedQueryId nameProperty="listName" none="explorer.menu_none" content=content castInteger="true" nameChanges="true"}}
|
||||||
{{d-button action="importQuery" label="explorer.import.label" icon="upload"}}
|
{{d-button action="showCreate" icon="plus" class="no-text"}}
|
||||||
</div>
|
{{d-button action="importQuery" label="explorer.import.label" icon="upload"}}
|
||||||
|
|
||||||
{{#if showCreate}}
|
|
||||||
<div class="query-create">
|
|
||||||
{{text-field value=newQueryName placeholderKey="explorer.create_placeholder"}}
|
|
||||||
{{d-button action="create" disabled=createDisabled label="explorer.create" icon="plus" class="btn-primary"}}
|
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if othersDirty}}
|
{{#if showCreate}}
|
||||||
<div class="warning">
|
<div class="query-create">
|
||||||
{{fa-icon "warning"}}
|
{{text-field value=newQueryName placeholderKey="explorer.create_placeholder"}}
|
||||||
{{i18n "explorer.others_dirty"}}
|
{{d-button action="create" disabled=createDisabled label="explorer.create" icon="plus" class="btn-primary"}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<hr>
|
{{#if othersDirty}}
|
||||||
|
<div class="warning">
|
||||||
|
{{fa-icon "warning"}}
|
||||||
|
{{i18n "explorer.others_dirty"}}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
{{/unless}}
|
||||||
|
|
||||||
{{#if content.length}}
|
{{#if content.length}}
|
||||||
{{#if selectedItem.fake}}
|
{{#if selectedItem.fake}}
|
||||||
|
|
Loading…
Reference in New Issue