Update directory layout to fit with other projects
This commit is contained in:
11
source/webui/templates/ajax/admin/add-setting.tpl
Normal file
11
source/webui/templates/ajax/admin/add-setting.tpl
Normal file
@@ -0,0 +1,11 @@
|
||||
{if $success}
|
||||
"actions": {
|
||||
"add_setting_row": {
|
||||
{include file="fragments/admin-setting-row.tpl" assign=content}
|
||||
"content": {$content|json_encode}
|
||||
}
|
||||
},
|
||||
{/if}
|
||||
|
||||
"success": {$success|json_encode}
|
||||
|
||||
30
source/webui/templates/ajax/admin/new-setting.tpl
Normal file
30
source/webui/templates/ajax/admin/new-setting.tpl
Normal file
@@ -0,0 +1,30 @@
|
||||
"page_replacements": {
|
||||
|
||||
"dialogheadertitle": {
|
||||
"content": "Add Setting"
|
||||
},
|
||||
|
||||
"dialogcontent": {
|
||||
{include file="fragments/new-setting-dialog.tpl" assign=new_setting_dialog_content}
|
||||
"content": {$new_setting_dialog_content|json_encode}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
"dialog": {
|
||||
"show": true,
|
||||
"buttons": {
|
||||
"type": "okcancel",
|
||||
"actions": {
|
||||
"ok": [
|
||||
"add-setting",
|
||||
"close-dialog"
|
||||
],
|
||||
"cancel": "close-dialog"
|
||||
},
|
||||
"params": {
|
||||
"name": "settings_add_name",
|
||||
"type": "settings_add_type"
|
||||
}
|
||||
}
|
||||
}
|
||||
1
source/webui/templates/ajax/admin/remove-setting.tpl
Normal file
1
source/webui/templates/ajax/admin/remove-setting.tpl
Normal file
@@ -0,0 +1 @@
|
||||
"success": {$success|json_encode}
|
||||
44
source/webui/templates/ajax/admin/rename-setting.tpl
Normal file
44
source/webui/templates/ajax/admin/rename-setting.tpl
Normal file
@@ -0,0 +1,44 @@
|
||||
{if $confirm}
|
||||
{if $success}
|
||||
"actions": {
|
||||
"rename_setting_confirm": {
|
||||
"old_name": {$old_name|json_encode},
|
||||
"old_id": {$old_id|json_encode},
|
||||
"name": {$name|json_encode},
|
||||
{include file="fragments/admin-setting-row.tpl" assign="content"}
|
||||
"content": {$content|json_encode}
|
||||
}
|
||||
},
|
||||
{/if}
|
||||
|
||||
"success": {$success|json_encode}
|
||||
{else}
|
||||
"page_replacements": {
|
||||
"dialogheadertitle": {
|
||||
"content": "Rename Setting"
|
||||
},
|
||||
|
||||
"dialogcontent": {
|
||||
{include file="fragments/rename-setting-dialog.tpl" assign="content"}
|
||||
"content": {$content|json_encode}
|
||||
}
|
||||
},
|
||||
|
||||
"dialog": {
|
||||
"show": true,
|
||||
"buttons": {
|
||||
"type": "okcancel",
|
||||
"actions": {
|
||||
"ok": [
|
||||
"rename_setting",
|
||||
"close-dialog"
|
||||
],
|
||||
"cancel": "close-dialog"
|
||||
},
|
||||
"params": {
|
||||
"name": {$name|json_encode},
|
||||
"new_name_field": "settings_rename_name"
|
||||
}
|
||||
}
|
||||
}
|
||||
{/if}
|
||||
41
source/webui/templates/ajax/delete-source.tpl
Normal file
41
source/webui/templates/ajax/delete-source.tpl
Normal file
@@ -0,0 +1,41 @@
|
||||
|
||||
"page_replacements": {
|
||||
{if $confirmed}
|
||||
"source-list": {
|
||||
{include file="fragments/source-list.tpl" assign="sources_html"}
|
||||
"content": {$sources_html|json_encode}
|
||||
}
|
||||
{else}
|
||||
"dialogheadertitle": {
|
||||
"content": "Delete Source"
|
||||
},
|
||||
|
||||
"dialogcontent": {
|
||||
{include file="fragments/delete-source.tpl" assign="delete_source_html"}
|
||||
"content": {$delete_source_html|json_encode}
|
||||
}
|
||||
{/if}
|
||||
|
||||
{if ! $confirmed}
|
||||
},
|
||||
|
||||
"dialog": {
|
||||
"show": true,
|
||||
"buttons": {
|
||||
"type": "yesno",
|
||||
"actions": {
|
||||
"yes": [
|
||||
"delete-source-confirm",
|
||||
"close-dialog"
|
||||
],
|
||||
"no": "close-dialog"
|
||||
},
|
||||
"params": {
|
||||
"plugin": {$source_plugin|json_encode},
|
||||
"id": {$source_id|json_encode}
|
||||
}
|
||||
}
|
||||
}
|
||||
{else}
|
||||
}
|
||||
{/if}
|
||||
6
source/webui/templates/ajax/source-list.tpl
Normal file
6
source/webui/templates/ajax/source-list.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
"page_replacements": {
|
||||
"source-list": {
|
||||
{include file="fragments/source-list.tpl" assign="sources_html"}
|
||||
"content": {$sources_html|json_encode}
|
||||
}
|
||||
}
|
||||
22
source/webui/templates/ajax/update-settings.tpl
Normal file
22
source/webui/templates/ajax/update-settings.tpl
Normal file
@@ -0,0 +1,22 @@
|
||||
"page_replacements": {
|
||||
|
||||
"dialogheadertitle": {
|
||||
"content": "Update Settings"
|
||||
},
|
||||
|
||||
"dialogcontent": {
|
||||
{include file="fragments/update-settings-dialog.tpl" assign=dialog_content}
|
||||
"content": {$dialog_content|json_encode}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
"dialog": {
|
||||
"show": true,
|
||||
"buttons": {
|
||||
"type": "ok",
|
||||
"actions": {
|
||||
"ok": "close-dialog"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user