Expose db picker for butterball theme
This commit is contained in:
parent
4ccdf99a43
commit
9a841ba5e2
|
@ -715,26 +715,22 @@
|
||||||
% endif
|
% endif
|
||||||
% endif
|
% endif
|
||||||
|
|
||||||
## % if expose_db_picker is not Undefined and expose_db_picker:
|
% if expose_db_picker is not Undefined and expose_db_picker:
|
||||||
## <div class="level-item">
|
<span>DB:</span>
|
||||||
## <p>DB:</p>
|
${h.form(url('change_db_engine'), ref='dbPickerForm')}
|
||||||
## </div>
|
${h.csrf_token(request)}
|
||||||
## <div class="level-item">
|
${h.hidden('engine_type', value=master.engine_type_key)}
|
||||||
## ${h.form(url('change_db_engine'), ref='dbPickerForm')}
|
<b-select name="dbkey"
|
||||||
## ${h.csrf_token(request)}
|
v-model="dbSelected"
|
||||||
## ${h.hidden('engine_type', value=master.engine_type_key)}
|
@input="changeDB()">
|
||||||
## <b-select name="dbkey"
|
% for option in db_picker_options:
|
||||||
## value="${db_picker_selected}"
|
<option value="${option.value}">
|
||||||
## @input="changeDB()">
|
${option.label}
|
||||||
## % for option in db_picker_options:
|
</option>
|
||||||
## <option value="${option.value}">
|
% endfor
|
||||||
## ${option.label}
|
</b-select>
|
||||||
## </option>
|
${h.end_form()}
|
||||||
## % endfor
|
% endif
|
||||||
## </b-select>
|
|
||||||
## ${h.end_form()}
|
|
||||||
## </div>
|
|
||||||
## % endif
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -1104,6 +1100,10 @@
|
||||||
globalSearchData: ${json.dumps(global_search_data)|n},
|
globalSearchData: ${json.dumps(global_search_data)|n},
|
||||||
mountedHooks: [],
|
mountedHooks: [],
|
||||||
|
|
||||||
|
% if expose_db_picker is not Undefined and expose_db_picker:
|
||||||
|
dbSelected: ${json.dumps(db_picker_selected)|n},
|
||||||
|
% endif
|
||||||
|
|
||||||
% if expose_theme_picker and request.has_perm('common.change_app_theme'):
|
% if expose_theme_picker and request.has_perm('common.change_app_theme'):
|
||||||
globalTheme: ${json.dumps(theme)|n},
|
globalTheme: ${json.dumps(theme)|n},
|
||||||
% endif
|
% endif
|
||||||
|
|
Loading…
Reference in a new issue