[Kimchi-devel] [PATCH 11/15] V3 Ginger Base : base plugin ui/pages files
Daniel Henrique Barboza
dhbarboza82 at gmail.com
Wed Oct 7 13:09:50 UTC 2015
Reviewed-by: Daniel Barboza <dhbarboza82 at gmail.com>
On 10/07/2015 07:46 AM, chandra at linux.vnet.ibm.com wrote:
> From: chandrureddy <chandra at linux.vnet.ibm.com>
>
> ---
> src/wok/plugins/gingerbase/ui/pages/Makefile.am | 22 +++
> src/wok/plugins/gingerbase/ui/pages/host.html.tmpl | 177 +++++++++++++++++++++
> src/wok/plugins/gingerbase/ui/pages/i18n.json.tmpl | 148 +++++++++++++++++
> .../gingerbase/ui/pages/report-add.html.tmpl | 56 +++++++
> .../gingerbase/ui/pages/report-rename.html.tmpl | 56 +++++++
> .../gingerbase/ui/pages/repository-add.html.tmpl | 113 +++++++++++++
> .../gingerbase/ui/pages/repository-edit.html.tmpl | 117 ++++++++++++++
> src/wok/plugins/kimchi/ui/pages/host.html.tmpl | 177 ---------------------
> .../plugins/kimchi/ui/pages/report-add.html.tmpl | 56 -------
> .../kimchi/ui/pages/report-rename.html.tmpl | 56 -------
> .../kimchi/ui/pages/repository-add.html.tmpl | 113 -------------
> .../kimchi/ui/pages/repository-edit.html.tmpl | 117 --------------
> 12 files changed, 689 insertions(+), 519 deletions(-)
> create mode 100644 src/wok/plugins/gingerbase/ui/pages/Makefile.am
> create mode 100644 src/wok/plugins/gingerbase/ui/pages/host.html.tmpl
> create mode 100644 src/wok/plugins/gingerbase/ui/pages/i18n.json.tmpl
> create mode 100644 src/wok/plugins/gingerbase/ui/pages/report-add.html.tmpl
> create mode 100644 src/wok/plugins/gingerbase/ui/pages/report-rename.html.tmpl
> create mode 100644 src/wok/plugins/gingerbase/ui/pages/repository-add.html.tmpl
> create mode 100644 src/wok/plugins/gingerbase/ui/pages/repository-edit.html.tmpl
> delete mode 100644 src/wok/plugins/kimchi/ui/pages/host.html.tmpl
> delete mode 100644 src/wok/plugins/kimchi/ui/pages/report-add.html.tmpl
> delete mode 100644 src/wok/plugins/kimchi/ui/pages/report-rename.html.tmpl
> delete mode 100644 src/wok/plugins/kimchi/ui/pages/repository-add.html.tmpl
> delete mode 100644 src/wok/plugins/kimchi/ui/pages/repository-edit.html.tmpl
>
> diff --git a/src/wok/plugins/gingerbase/ui/pages/Makefile.am b/src/wok/plugins/gingerbase/ui/pages/Makefile.am
> new file mode 100644
> index 0000000..d8c729f
> --- /dev/null
> +++ b/src/wok/plugins/gingerbase/ui/pages/Makefile.am
> @@ -0,0 +1,22 @@
> +#
> +# Ginger Base
> +#
> +# Copyright IBM, Corp. 2015
> +#
> +# Licensed under the Apache License, Version 2.0 (the "License");
> +# you may not use this file except in compliance with the License.
> +# You may obtain a copy of the License at
> +#
> +# http://www.apache.org/licenses/LICENSE-2.0
> +#
> +# Unless required by applicable law or agreed to in writing, software
> +# distributed under the License is distributed on an "AS IS" BASIS,
> +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> +# See the License for the specific language governing permissions and
> +# limitations under the License.
> +
> +SUBDIRS = help
> +
> +htmldir = $(datadir)/wok/plugins/gingerbase/ui/pages
> +
> +dist_html_DATA = $(wildcard *.tmpl) $(NULL)
> diff --git a/src/wok/plugins/gingerbase/ui/pages/host.html.tmpl b/src/wok/plugins/gingerbase/ui/pages/host.html.tmpl
> new file mode 100644
> index 0000000..2c55614
> --- /dev/null
> +++ b/src/wok/plugins/gingerbase/ui/pages/host.html.tmpl
> @@ -0,0 +1,177 @@
> +#*
> + * Project Ginger Base
> + *
> + * Copyright IBM, Corp. 2013-2015
> + *
> + * Licensed under the Apache License, Version 2.0 (the "License");
> + * you may not use this file except in compliance with the License.
> + * You may obtain a copy of the License at
> + *
> + * http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing, software
> + * distributed under the License is distributed on an "AS IS" BASIS,
> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> + * See the License for the specific language governing permissions and
> + * limitations under the License.
> + *#
> +
> +#unicode UTF-8
> +#import gettext
> +#from wok.cachebust import href
> +#silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True)
> +#silent _ = t.gettext
> +#silent _t = t.gettext
> +<!DOCTYPE html>
> +<html>
> +<head>
> +<link rel="stylesheet" href="plugins/gingerbase/css/theme-default.min.css">
> +<script src="plugins/gingerbase/js/gingerbase.min.js"></script>
> +</head>
> +<body>
> +<div id="host-root-container">
> + <div class="toolbar">
> + <div class="tools">
> + </div>
> + </div>
> + <div id="host-content-container" class="empty-when-logged-off"></div>
> +</div>
> +
> +<script id="host-tmpl" type="gingerbase/template">
> + <div class="host-panel">
> + <div class="logo-container">
> + <div class="logo" style="background-image: url({logo});"></div>
> + </div>
> + <div id="host-info-container" class="info-container">
> + <h2 class="hostname">{hostname}</h2>
> + <div class="action-panel">
> + <button id="host-button-shutdown" class="btn-normal-1 stop">
> + <div class="button-icon action-icon-stop"></div>
> + $_("Shut down")
> + </button>
> + <button id="host-button-restart" class="btn-normal-1 restart">
> + <div class="button-icon action-icon-restart"></div>
> + $_("Restart")
> + </button>
> + <button class="btn-normal-1 connect" disabled="disabled">
> + <div class="button-icon action-icon-connect"></div>
> + $_("Connect")
> + </button>
> + </div>
> + <div class="host-section">
> + <h3 class="section-header"
> + aria-expanded="false"
> + aria-controls="content-sys-info">
> + $_("Basic Information")
> + </h3>
> + <div id="content-sys-info" class="section-content">
> + <div class="section-row">
> + <div class="section-label">$_("OS Distro")</div>
> + <div class="section-value">{os_distro}</div>
> + </div>
> + <div class="section-row">
> + <div class="section-label">$_("OS Version")</div>
> + <div class="section-value">{os_version}</div>
> + </div>
> + <div class="section-row">
> + <div class="section-label">$_("OS Code Name")</div>
> + <div class="section-value">{os_codename}</div>
> + </div>
> + <div class="section-row">
> + <div class="section-label">$_("Processor")</div>
> + <div class="section-value">{cpu_model}</div>
> + </div>
> + <div class="section-row">
> + <div class="section-label">$_("CPU(s)")</div>
> + <div class="section-value">{cpus}</div>
> + </div>
> + <div class="section-row">
> + <div class="section-label">$_("Memory")</div>
> + <div class="section-value">{memory}</div>
> + </div>
> + </div>
> + </div>
> + <div class="host-section">
> + <h3 class="section-header"
> + aria-controls="content-sys-statistics">
> + $_("System Statistics")
> + </h3>
> + <div id="content-sys-statistics" class="section-content">
> + <div class="section-row">
> + <div class="section-label">$_("CPU")</div>
> + <div class="section-value">
> + <div id="container-chart-cpu" class="inline-block"></div>
> + </div>
> + </div>
> + <div class="section-row">
> + <div class="section-label">$_("Memory")</div>
> + <div class="section-value">
> + <div id="container-chart-memory" class="inline-block"></div>
> + </div>
> + </div>
> + <div class="section-row">
> + <div class="section-label">$_("Disk I/O")</div>
> + <div class="section-value">
> + <div id="container-chart-disk-io" class="inline-block"></div>
> + </div>
> + </div>
> + <div class="section-row">
> + <div class="section-label">$_("Network I/O")</div>
> + <div class="section-value">
> + <div id="container-chart-network-io" class="inline-block"></div>
> + </div>
> + </div>
> + </div>
> + </div>
> + <div id="software-update-section" class="host-section hidden">
> + <h3 class="section-header"
> + aria-controls="content-software-update">
> + $_("Software Updates")
> + </h3>
> + <div id="content-software-update" class="section-content">
> + <div class="section-row">
> + <div class="section-value">
> + <div id="software-updates-grid-container"></div>
> + <div id="software-updates-progress-container" class="hidden">
> + <label for="software-updates-progress-textarea">$_("Update Progress")</label>
> + <textarea id="software-updates-progress-textarea" readonly></textarea>
> + </div>
> + </div>
> + </div>
> + </div>
> + </div>
> + <div id="repositories-section" class="host-section hidden">
> + <h3 class="section-header"
> + aria-controls="content-repositories">
> + $_("Repositories")
> + </h3>
> + <div id="content-repositories" class="section-content">
> + <div class="section-row">
> + <div class="section-value">
> + <div id="repositories-grid-container"></div>
> + </div>
> + </div>
> + </div>
> + </div>
> + <div id="debug-report-section" class="host-section hidden">
> + <h3 class="section-header"
> + aria-controls="content-sys-reports">
> + $_("Debug Reports")
> + </h3>
> + <div id="content-sys-reports" class="section-content">
> + <div class="section-row">
> + <div class="section-value">
> + <div id="available-reports-grid-container"></div>
> + </div>
> + </div>
> + </div>
> + </div>
> + </div>
> + </div>
> +</script>
> +
> +<script type="text/javascript">
> + kimchi.host_main();
> +</script>
> +</body>
> +</html>
> diff --git a/src/wok/plugins/gingerbase/ui/pages/i18n.json.tmpl b/src/wok/plugins/gingerbase/ui/pages/i18n.json.tmpl
> new file mode 100644
> index 0000000..b6091ca
> --- /dev/null
> +++ b/src/wok/plugins/gingerbase/ui/pages/i18n.json.tmpl
> @@ -0,0 +1,148 @@
> +#*
> + * Project Ginger Base
> + *
> + * Copyright IBM, Corp. 2015
> + *
> + * Licensed under the Apache License, Version 2.0 (the "License");
> + * you may not use this file except in compliance with the License.
> + * You may obtain a copy of the License at
> + *
> + * http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing, software
> + * distributed under the License is distributed on an "AS IS" BASIS,
> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> + * See the License for the specific language governing permissions and
> + * limitations under the License.
> + *#
> +#unicode UTF-8
> +#import gettext
> +#from wok.cachebust import href
> +#silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True)
> +#silent _ = t.gettext
> +#silent _t = t.gettext
> +{
> + "GGBAUTH6001E": "$_("The username or password you entered is incorrect. Please try again.")",
> + "GGBAUTH6002E": "$_("This field is required.")",
> +
> + "GGBAUTH6001M": "$_("Log in")",
> + "GGBAUTH6002M": "$_("Logging in...")",
> +
> + "Host": "$_("Host")",
> + "Guests": "$_("Guests")",
> + "Templates": "$_("Templates")",
> + "Storage": "$_("Storage")",
> + "Network": "$_("Network")",
> +
> + "GGBAPI6002E": "$_("Failed to get application configuration")",
> + "GGBAPI6003E": "$_("This is not a valid Linux path")",
> + "GGBAPI6004E": "$_("This is not a valid URL.")",
> + "GGBAPI6005E": "$_("No such data available.")",
> + "GGBAPI6007E": "$_("Can not contact the host system. Verify the host system is up and that you have network connectivity to it. HTTP request response %1. ")",
> + "GGBAPI6008E": "$_("Unable to read file.")",
> + "GGBAPI6009E": "$_("Error while uploading file.")",
> +
> + "GGBAPI6001M": "$_("Delete Confirmation")",
> + "GGBAPI6002M": "$_("OK")",
> + "GGBAPI6003M": "$_("Cancel")",
> + "GGBAPI6004M": "$_("Confirm")",
> + "GGBAPI6005M": "$_("Create")",
> + "GGBAPI6006M": "$_("Warning")",
> + "GGBAPI6007M": "$_("Save")",
> + "GGBAPI6008M": "$_("Creating...")",
> + "GGBAPI6009M": "$_("Cloning...")",
> +
> + "GGBGRD6001M": "$_("Loading...")",
> + "GGBGRD6002M": "$_("An error occurred while retrieving system information.")",
> + "GGBGRD6003M": "$_("Retry")",
> + "GGBGRD6004M": "$_("Detailed message:")",
> +
> + "GGBHOST6001E": "$_("Unable to shut down system as there are some virtual machines running!")",
> +
> + "GGBHOST6001M": "$_("Max:")",
> + "GGBHOST6002M": "$_("Utilization")",
> + "GGBHOST6003M": "$_("Available")",
> + "GGBHOST6004M": "$_("Read Rate")",
> + "GGBHOST6005M": "$_("Write Rate")",
> + "GGBHOST6006M": "$_("Received")",
> + "GGBHOST6007M": "$_("Sent")",
> + "GGBHOST6008M": "$_("Shutting down or restarting host will cause unsaved work lost. Continue to shut down/restarting?")",
> +
> +
> + "GGBREPO6001M": "$_("Confirm")",
> + "GGBREPO6002M": "$_("Repository will be removed permanently and can't be recovered. Do you want to continue?")",
> + "GGBREPO6003M": "$_("Repositories")",
> + "GGBREPO6004M": "$_("ID")",
> + "GGBREPO6005M": "$_("Name")",
> + "GGBREPO6006M": "$_("Base URL")",
> + "GGBREPO6007M": "$_("Is Mirror")",
> + "GGBREPO6008M": "$_("URL Args")",
> + "GGBREPO6009M": "$_("Enabled")",
> + "GGBREPO6010M": "$_("GPG Check")",
> + "GGBREPO6011M": "$_("GPG Key")",
> + "GGBREPO6012M": "$_("Add")",
> + "GGBREPO6013M": "$_("Edit")",
> + "GGBREPO6014M": "$_("Remove")",
> + "GGBREPO6016M": "$_("Enable")",
> + "GGBREPO6017M": "$_("Disable")",
> +
> +
> + "GGBUPD6001M": "$_("Software Updates")",
> + "GGBUPD6002M": "$_("Package Name")",
> + "GGBUPD6003M": "$_("Version")",
> + "GGBUPD6004M": "$_("Architecture")",
> + "GGBUPD6005M": "$_("Repository")",
> + "GGBUPD6006M": "$_("Update All")",
> + "GGBUPD6007M": "$_("Updating...")",
> + "GGBUPD6008M": "$_("Failed to retrieve packages update information.")",
> + "GGBUPD6009M": "$_("Failed to update package(s).")",
> +
> +
> + "GGBDR6001M": "$_("Debug report will be removed permanently and can't be recovered. Do you want to continue?")",
> + "GGBDR6002M": "$_("Debug Reports")",
> + "GGBDR6003M": "$_("Name")",
> + "GGBDR6005M": "$_("Generated Time")",
> + "GGBDR6006M": "$_("Generate")",
> + "GGBDR6007M": "$_("Generating...")",
> + "GGBDR6008M": "$_("Rename")",
> + "GGBDR6009M": "$_("Remove")",
> + "GGBDR6010M": "$_("Download")",
> + "GGBDR6011M": "$_("Report name should contain only letters, digits, underscore ('_') and/or hyphen ('-').")",
> + "GGBDR6012M": "$_("Pending...")",
> + "GGBDR6013M": "$_("Report name is the same as the original one.")",
> +
> + "GGBVM6001M": "$_("This will delete the virtual machine and its virtual disks. This operation cannot be undone. Would you like to continue?")",
> + "GGBVM6002M": "$_("Power off Confirmation")",
> + "GGBVM6003M": "$_("This action may produce undesirable results, "
> + "for example unflushed disk cache in the guest. "
> + "Would you like to continue?")",
> + "GGBVM6004M": "$_("Reset Confirmation")",
> + "GGBVM6005M": "$_("There is a risk of data loss caused by reset without"
> + " the guest OS shutdown. Would you like to continue?")",
> + "GGBVM6006M": "$_("Shut Down Confirmation")",
> + "GGBVM6007M": "$_("Note the guest OS may ignore this request. Would you like to continue?")",
> + "GGBVM6008M": "$_("Virtual Machine delete Confirmation")",
> + "GGBVM6009M": "$_("This virtual machine is not persistent. Power Off will delete it. Continue?")",
> + "GGBVM6010M": "$_("When the target guest has SCSI or iSCSI volumes, they will be cloned on default storage pool. The same will happen when the target pool does not have enough space to clone the volumes. Do you want to continue?")",
> +
> + "GGBVMCD6001M": "$_("This CDROM will be detached permanently and you can re-attach it. Continue to detach it?")",
> + "GGBVMCD6002M": "$_("Attach")",
> + "GGBVMCD6003M": "$_("Attaching...")",
> + "GGBVMCD6004M": "$_("Replace")",
> + "GGBVMCD6005M": "$_("Replacing...")",
> + "GGBVMCD6006M": "$_("Successfully attached!")",
> + "GGBVMCD6007M": "$_("Successfully replaced!")",
> + "GGBVMCD6008M": "$_("Successfully detached!")",
> + "GGBVMCD6009M": "$_("This disk will be detached permanently and you can re-attach it. Continue to detach it?")",
> +
> + "GGBVMED6001M": "$_("interface:")",
> + "GGBVMED6002M": "$_("address:")",
> + "GGBVMED6003M": "$_("link_type:")",
> + "GGBVMED6004M": "$_("block:")",
> + "GGBVMED6005M": "$_("drive_type:")",
> + "GGBVMED6006M": "$_("model:")",
> + "GGBVMED6007M": "$_("Affected devices:")",
> +
> + "GGBVMSTOR0001E": "$_("CDROM path needs to be a valid local/remote path and cannot be blank.")",
> + "GGBVMSTOR0002E": "$_("Disk pool or volume cannot be blank.")"
> +}
> diff --git a/src/wok/plugins/gingerbase/ui/pages/report-add.html.tmpl b/src/wok/plugins/gingerbase/ui/pages/report-add.html.tmpl
> new file mode 100644
> index 0000000..4983ff0
> --- /dev/null
> +++ b/src/wok/plugins/gingerbase/ui/pages/report-add.html.tmpl
> @@ -0,0 +1,56 @@
> +#*
> + * Project Ginger Base
> + *
> + * Copyright IBM, Corp. 2013-2015
> + *
> + * Licensed under the Apache License, Version 2.0 (the "License");
> + * you may not use this file except in compliance with the License.
> + * You may obtain a copy of the License at
> + *
> + * http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing, software
> + * distributed under the License is distributed on an "AS IS" BASIS,
> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> + * See the License for the specific language governing permissions and
> + * limitations under the License.
> + *#
> +#unicode UTF-8
> +#import gettext
> +#from wok.cachebust import href
> +#silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True)
> +#silent _ = t.gettext
> +#silent _t = t.gettext
> +<!DOCTYPE html>
> +<div id="report-add-window" class="window">
> + <header>
> + <h1 class="title h1 grey">$_("Generate a New Debug Report")</h1>
> + </header>
> + <div class="content">
> + <form id="form-report-add">
> + <section class="form-section">
> + <h2>
> + <label for="report-name-textbox">$_("Report Name")</label>
> + </h2>
> + <div class="field">
> + <input type="text" class="text" id="report-name-textbox" name="name" />
> + <span class="icon-info-circled light-grey c1"></span>
> + <span class="info-add-debug-report">
> + $_("The name used to identify the report. If omitted, a name will be chosen based on current time. Name can contain: letters, digits, underscore (\"_\") and hyphen (\"-\").")
> + </span>
> + </div>
> + </section>
> + </form>
> + </div>
> + <footer>
> + <div class="btn-group">
> + <button id="button-report-add" class="btn-normal"><span class="text">$_("Generate")</span></button>
> + <button id="button-report-cancel" class="btn-normal close" type="button">
> + <span calss="text">$_("Cancel")</span>
> + </button>
> + </div>
> + </footer>
> +</div>
> +<script>
> + kimchi.report_add_main();
> +</script>
> diff --git a/src/wok/plugins/gingerbase/ui/pages/report-rename.html.tmpl b/src/wok/plugins/gingerbase/ui/pages/report-rename.html.tmpl
> new file mode 100644
> index 0000000..900dae8
> --- /dev/null
> +++ b/src/wok/plugins/gingerbase/ui/pages/report-rename.html.tmpl
> @@ -0,0 +1,56 @@
> +#*
> + * Project Ginger Base
> + *
> + * Copyright IBM, Corp. 2014-2015
> + *
> + * Licensed under the Apache License, Version 2.0 (the "License");
> + * you may not use this file except in compliance with the License.
> + * You may obtain a copy of the License at
> + *
> + * http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing, software
> + * distributed under the License is distributed on an "AS IS" BASIS,
> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> + * See the License for the specific language governing permissions and
> + * limitations under the License.
> + *#
> +#unicode UTF-8
> +#import gettext
> +#from wok.cachebust import href
> +#silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True)
> +#silent _ = t.gettext
> +#silent _t = t.gettext
> +<!DOCTYPE html>
> +<div id="report-rename-window" class="window">
> + <header>
> + <h1 class="title h1 grey">$_("Rename a Debug Report")</h1>
> + </header>
> + <div class="content">
> + <form id="form-report-rename">
> + <section class="form-section">
> + <h2>
> + <label for="report-name-textbox">$_("Report Name")</label>
> + </h2>
> + <div class="field">
> + <input type="text" class="text" id="report-name-textbox" name="name" />
> + <span class="icon-info-circled light-grey c1"></span>
> + <span class="info-debug-report-rename">
> + $_("The name used to identify the report. Name can contain: letters, digits and hyphen (\"-\").")
> + </span>
> + </div>
> + </section>
> + </form>
> + </div>
> + <footer>
> + <div class="btn-group">
> + <button id="button-report-rename" class="btn-normal"><span class="text">$_("Submit")</span></button>
> + <button id-"button-report-rename-cancel" class="btn-normal close" type="button">
> + <span class="text">$_("Cancel")</span>
> + </button>
> + </div>
> + </footer>
> +</div>
> +<script>
> + kimchi.report_rename_main();
> +</script>
> diff --git a/src/wok/plugins/gingerbase/ui/pages/repository-add.html.tmpl b/src/wok/plugins/gingerbase/ui/pages/repository-add.html.tmpl
> new file mode 100644
> index 0000000..a5b4001
> --- /dev/null
> +++ b/src/wok/plugins/gingerbase/ui/pages/repository-add.html.tmpl
> @@ -0,0 +1,113 @@
> +#*
> + * Project Ginger Base
> + *
> + * Copyright IBM, Corp. 2014-2015
> + *
> + * Licensed under the Apache License, Version 2.0 (the "License");
> + * you may not use this file except in compliance with the License.
> + * You may obtain a copy of the License at
> + *
> + * http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing, software
> + * distributed under the License is distributed on an "AS IS" BASIS,
> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> + * See the License for the specific language governing permissions and
> + * limitations under the License.
> + *#
> +#unicode UTF-8
> +#import gettext
> +#from wok.cachebust import href
> +#silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True)
> +#silent _ = t.gettext
> +#silent _t = t.gettext
> +<div id="repository-add-window" class="window">
> + <form id="form-repository-add">
> + <header class="window-header">
> + <h1 class="title h1 grey">$_("Add a Repository")</h1>
> + </header>
> + <section>
> + <div class="content">
> + <div class="form-section yum">
> + <h2>$_("Identifier")</h2>
> + <div class="field">
> + <div class="textbox-wrapper">
> + <input type="text" class="text" name="repo_id" />
> + </div>
> + <div class="icon-info-circled light-grey c1 help-inline"></div>
> + <p class="text-help help-inline">
> + $_("Single word, unique identifier for the repository.")
> + </p>
> + </div>
> + </div>
> + <section class="form-section yum">
> + <h2>$_("Name")</h2>
> + <div class="field">
> + <div class="textbox-wrapper">
> + <input type="text" class="text" name="config[repo_name]" />
> + </div>
> + <div class="icon-info-circled light-grey c1 help-inline"></div>
> + <p class="text-help help-inline">
> + $_("Textual name for the repository.")
> + </p>
> + </div>
> + </section>
> + <section class="form-section">
> + <h2>$_("URL")<span class="required" role="presentation" title='$_("Required Field")'>*</span></h2>
> + <div class="field">
> + <div class="textbox-wrapper">
> + <input type="text" class="text required" name="baseurl" />
> + </div>
> + <div class="icon-info-circled light-grey c1 help-inline"></div>
> + <p class="text-help help-inline">
> + $_("URL to the repository. Supported protocols are http, ftp, and file.")
> + </p>
> + </div>
> + <div class="field yum">
> + <p class="yum">
> + <input type="checkbox" name="isMirror" value="true" id="isMirror" />
> + <label id="isMirrorLabel" for="isMirror">$_("Repository is a mirror")</label>
> + </p>
> + </div>
> + </section>
> + <section class="form-section repository-dist deb">
> + <h2>$_("Distribution")</h2>
> + <div class="field">
> + <div class="textbox-wrapper">
> + <input type="text" class="text" name="config[dist]" />
> + </div>
> + <div class="icon-info-circled light-grey c1 help-inline"></div>
> + <p class="text-help help-inline">
> + $_("Distribution of the DEB repository.")
> + </p>
> + </div>
> + </section>
> + <section class="form-section repository-comps deb">
> + <h2>$_("Components")</h2>
> + <div class="field">
> + <div class="textbox-wrapper">
> + <input type="text" class="text" name="config[comps]" />
> + </div>
> + <div class="icon-info-circled light-grey c1 help-inline"></div>
> + <p class="text-help help-inline">
> + $_("List of components in DEB repository.")
> + </p>
> + </div>
> + </section>
> + </div>
> + </section>
> + <footer>
> + <div class="btn-group">
> + <button type="submit" id="button-repository-add" class="btn-normal" disabled="disabled">
> + <span class="text">$_("Add")</span>
> + </button>
> + <button type="button" id="button-repository-close" class="btn-normal close">
> + <span class="text">$("Cancel")</span>
> + </button>
> + </div>
> + </footer>
> + </form>
> +</div>
> +<script>
> + kimchi.repository_add_main();
> +</script>
> diff --git a/src/wok/plugins/gingerbase/ui/pages/repository-edit.html.tmpl b/src/wok/plugins/gingerbase/ui/pages/repository-edit.html.tmpl
> new file mode 100644
> index 0000000..b1a421e
> --- /dev/null
> +++ b/src/wok/plugins/gingerbase/ui/pages/repository-edit.html.tmpl
> @@ -0,0 +1,117 @@
> +#*
> + * Project Ginger Base
> + *
> + * Copyright IBM, Corp. 2014-2015
> + *
> + * Licensed under the Apache License, Version 2.0 (the "License");
> + * you may not use this file except in compliance with the License.
> + * You may obtain a copy of the License at
> + *
> + * http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing, software
> + * distributed under the License is distributed on an "AS IS" BASIS,
> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> + * See the License for the specific language governing permissions and
> + * limitations under the License.
> + *#
> +#unicode UTF-8
> +#import gettext
> +#from wok.cachebust import href
> +#silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True)
> +#silent _ = t.gettext
> +#silent _t = t.gettext
> +
> +<div id="repository-edit-window" class="window">
> + <form id="form-repository-edit">
> + <header>
> + <h1 class="title h1 grey">$_("Edit Repository")</h1>
> + </header>
> + <div class="content">
> + <section id="form-repository-edit">
> + <fieldset class="repository-edit-fieldset">
> + <div class="repository-id yum">
> + <div class="repository-edit-wrapper-label">
> + <label for="repository-edit-id-textbox">$_("ID")</label>
> + </div>
> + <div class="repository-edit-wrapper-controls">
> + <input id="repository-edit-id-textbox" name="repo_id" type="text" disabled="disabled" readonly="readonly"/>
> + </div>
> + </div>
> + <div class="repository-name yum">
> + <div class="repository-edit-wrapper-label">
> + <label for="repository-edit-name-textbox">$_("Name")</label>
> + </div>
> + <div class="repository-edit-wrapper-controls">
> + <input id="repository-edit-name-textbox" class="yum" name="config[repo_name]" type="text" />
> + </div>
> + </div>
> + <div class="repository-url">
> + <div class="repository-edit-wrapper-label">
> + <label for="repository-edit-baseurl-textbox">$_("URL")</label>
> + </div>
> + <div class="repository-edit-wrapper-controls">
> + <input id="repository-edit-baseurl-textbox" name="baseurl" type="text" />
> + </div>
> + </div>
> + <div class="repository-dist deb">
> + <div class="repository-edit-wrapper-label">
> + <label for="repository-edit-urlargs-textbox">$_("Distribution")</label>
> + </div>
> + <div class="repository-edit-wrapper-controls">
> + <input id="repository-edit-urlargs-textbox" class="deb" name="config[dist]" type="text" />
> + </div>
> + </div>
> + <div class="repository-mirrorlist yum">
> + <div class="repository-edit-wrapper-label">
> + <label for="repository-edit-urlargs-textbox">$_("Mirror List URL")</label>
> + </div>
> + <div class="repository-edit-wrapper-controls">
> + <input id="repository-edit-urlargs-textbox" class="yum" name="config[mirrorlist]" type="text" />
> + </div>
> + </div>
> + <div class="repository-comps deb">
> + <div class="repository-edit-wrapper-label">
> + <label for="repository-edit-urlargs-textbox">$_("Components")</label>
> + </div>
> + <div class="repository-edit-wrapper-controls">
> + <input id="repository-edit-urlargs-textbox" class="deb" name="config[comps]" type="text" />
> + </div>
> + </div>
> + <div class="repository-gpgkey yum">
> + <div class="repository-edit-wrapper-label">
> + <label for="repository-edit-gpgkey-textbox">$_("GPG Key")</label>
> + </div>
> + <div class="repository-edit-wrapper-controls">
> + <input id="repository-edit-gpgkey-textbox" class="yum" name="config[gpgkey]" type="text" />
> + </div>
> + </div>
> + <div class="repository-gpgcheck yum">
> + <div class="repository-edit-wrapper-label">
> + <label>$_("GPG Check")</label>
> + </div>
> + <div class="repository-edit-wrapper-controls">
> + <input id="repository-edit-gpgcheck-radio-true" class="yum" name="config[gpgcheck]" type="radio" value="true" />
> + <label for="repository-edit-gpgcheck-radio-true">$_("Yes")</label>
> + <input id="repository-edit-gpgcheck-radio-false" class="yum" name="config[gpgcheck]" type="radio" value="false" />
> + <label for="repository-edit-gpgcheck-radio-false">$_("No")</label>
> + </div>
> + </div>
> + </fieldset>
> + </section>
> + </div>
> + <footer>
> + <div class="btn-group">
> + <button type="submit" id="repository-edit-button-save" class="btn-normal">
> + <span class="text">$_("Save")</span>
> + </button>
> + <button type="button" id="repository-edit-button-cancel" class="close btn-normal">
> + <span class="text">$_("Cancel")</span>
> + </button>
> + </div>
> + </footer>
> + </form>
> +</div>
> +<script type="text/javascript">
> + kimchi.repository_edit_main();
> +</script>
> diff --git a/src/wok/plugins/kimchi/ui/pages/host.html.tmpl b/src/wok/plugins/kimchi/ui/pages/host.html.tmpl
> deleted file mode 100644
> index d87debc..0000000
> --- a/src/wok/plugins/kimchi/ui/pages/host.html.tmpl
> +++ /dev/null
> @@ -1,177 +0,0 @@
> -#*
> - * Project Kimchi
> - *
> - * Copyright IBM, Corp. 2013-2015
> - *
> - * Licensed under the Apache License, Version 2.0 (the "License");
> - * you may not use this file except in compliance with the License.
> - * You may obtain a copy of the License at
> - *
> - * http://www.apache.org/licenses/LICENSE-2.0
> - *
> - * Unless required by applicable law or agreed to in writing, software
> - * distributed under the License is distributed on an "AS IS" BASIS,
> - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> - * See the License for the specific language governing permissions and
> - * limitations under the License.
> - *#
> -
> -#unicode UTF-8
> -#import gettext
> -#from wok.cachebust import href
> -#silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True)
> -#silent _ = t.gettext
> -#silent _t = t.gettext
> -<!DOCTYPE html>
> -<html>
> -<head>
> -<link rel="stylesheet" href="plugins/kimchi/css/theme-default.min.css">
> -<script src="plugins/kimchi/js/kimchi.min.js"></script>
> -</head>
> -<body>
> -<div id="host-root-container">
> - <div class="toolbar">
> - <div class="tools">
> - </div>
> - </div>
> - <div id="host-content-container" class="empty-when-logged-off"></div>
> -</div>
> -
> -<script id="host-tmpl" type="kimchi/template">
> - <div class="host-panel">
> - <div class="logo-container">
> - <div class="logo" style="background-image: url({logo});"></div>
> - </div>
> - <div id="host-info-container" class="info-container">
> - <h2 class="hostname">{hostname}</h2>
> - <div class="action-panel">
> - <button id="host-button-shutdown" class="btn-normal-1 stop">
> - <div class="button-icon action-icon-stop"></div>
> - $_("Shut down")
> - </button>
> - <button id="host-button-restart" class="btn-normal-1 restart">
> - <div class="button-icon action-icon-restart"></div>
> - $_("Restart")
> - </button>
> - <button class="btn-normal-1 connect" disabled="disabled">
> - <div class="button-icon action-icon-connect"></div>
> - $_("Connect")
> - </button>
> - </div>
> - <div class="host-section">
> - <h3 class="section-header"
> - aria-expanded="false"
> - aria-controls="content-sys-info">
> - $_("Basic Information")
> - </h3>
> - <div id="content-sys-info" class="section-content">
> - <div class="section-row">
> - <div class="section-label">$_("OS Distro")</div>
> - <div class="section-value">{os_distro}</div>
> - </div>
> - <div class="section-row">
> - <div class="section-label">$_("OS Version")</div>
> - <div class="section-value">{os_version}</div>
> - </div>
> - <div class="section-row">
> - <div class="section-label">$_("OS Code Name")</div>
> - <div class="section-value">{os_codename}</div>
> - </div>
> - <div class="section-row">
> - <div class="section-label">$_("Processor")</div>
> - <div class="section-value">{cpu_model}</div>
> - </div>
> - <div class="section-row">
> - <div class="section-label">$_("CPU(s)")</div>
> - <div class="section-value">{cpus}</div>
> - </div>
> - <div class="section-row">
> - <div class="section-label">$_("Memory")</div>
> - <div class="section-value">{memory}</div>
> - </div>
> - </div>
> - </div>
> - <div class="host-section">
> - <h3 class="section-header"
> - aria-controls="content-sys-statistics">
> - $_("System Statistics")
> - </h3>
> - <div id="content-sys-statistics" class="section-content">
> - <div class="section-row">
> - <div class="section-label">$_("CPU")</div>
> - <div class="section-value">
> - <div id="container-chart-cpu" class="inline-block"></div>
> - </div>
> - </div>
> - <div class="section-row">
> - <div class="section-label">$_("Memory")</div>
> - <div class="section-value">
> - <div id="container-chart-memory" class="inline-block"></div>
> - </div>
> - </div>
> - <div class="section-row">
> - <div class="section-label">$_("Disk I/O")</div>
> - <div class="section-value">
> - <div id="container-chart-disk-io" class="inline-block"></div>
> - </div>
> - </div>
> - <div class="section-row">
> - <div class="section-label">$_("Network I/O")</div>
> - <div class="section-value">
> - <div id="container-chart-network-io" class="inline-block"></div>
> - </div>
> - </div>
> - </div>
> - </div>
> - <div id="software-update-section" class="host-section hidden">
> - <h3 class="section-header"
> - aria-controls="content-software-update">
> - $_("Software Updates")
> - </h3>
> - <div id="content-software-update" class="section-content">
> - <div class="section-row">
> - <div class="section-value">
> - <div id="software-updates-grid-container"></div>
> - <div id="software-updates-progress-container" class="hidden">
> - <label for="software-updates-progress-textarea">$_("Update Progress")</label>
> - <textarea id="software-updates-progress-textarea" readonly></textarea>
> - </div>
> - </div>
> - </div>
> - </div>
> - </div>
> - <div id="repositories-section" class="host-section hidden">
> - <h3 class="section-header"
> - aria-controls="content-repositories">
> - $_("Repositories")
> - </h3>
> - <div id="content-repositories" class="section-content">
> - <div class="section-row">
> - <div class="section-value">
> - <div id="repositories-grid-container"></div>
> - </div>
> - </div>
> - </div>
> - </div>
> - <div id="debug-report-section" class="host-section hidden">
> - <h3 class="section-header"
> - aria-controls="content-sys-reports">
> - $_("Debug Reports")
> - </h3>
> - <div id="content-sys-reports" class="section-content">
> - <div class="section-row">
> - <div class="section-value">
> - <div id="available-reports-grid-container"></div>
> - </div>
> - </div>
> - </div>
> - </div>
> - </div>
> - </div>
> -</script>
> -
> -<script type="text/javascript">
> - kimchi.host_main();
> -</script>
> -</body>
> -</html>
> diff --git a/src/wok/plugins/kimchi/ui/pages/report-add.html.tmpl b/src/wok/plugins/kimchi/ui/pages/report-add.html.tmpl
> deleted file mode 100644
> index 25bf0a9..0000000
> --- a/src/wok/plugins/kimchi/ui/pages/report-add.html.tmpl
> +++ /dev/null
> @@ -1,56 +0,0 @@
> -#*
> - * Project Kimchi
> - *
> - * Copyright IBM, Corp. 2013-2015
> - *
> - * Licensed under the Apache License, Version 2.0 (the "License");
> - * you may not use this file except in compliance with the License.
> - * You may obtain a copy of the License at
> - *
> - * http://www.apache.org/licenses/LICENSE-2.0
> - *
> - * Unless required by applicable law or agreed to in writing, software
> - * distributed under the License is distributed on an "AS IS" BASIS,
> - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> - * See the License for the specific language governing permissions and
> - * limitations under the License.
> - *#
> -#unicode UTF-8
> -#import gettext
> -#from wok.cachebust import href
> -#silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True)
> -#silent _ = t.gettext
> -#silent _t = t.gettext
> -<!DOCTYPE html>
> -<div id="report-add-window" class="window">
> - <header>
> - <h1 class="title h1 grey">$_("Generate a New Debug Report")</h1>
> - </header>
> - <div class="content">
> - <form id="form-report-add">
> - <section class="form-section">
> - <h2>
> - <label for="report-name-textbox">$_("Report Name")</label>
> - </h2>
> - <div class="field">
> - <input type="text" class="text" id="report-name-textbox" name="name" />
> - <span class="icon-info-circled light-grey c1"></span>
> - <span class="info-add-debug-report">
> - $_("The name used to identify the report. If omitted, a name will be chosen based on current time. Name can contain: letters, digits, underscore (\"_\") and hyphen (\"-\").")
> - </span>
> - </div>
> - </section>
> - </form>
> - </div>
> - <footer>
> - <div class="btn-group">
> - <button id="button-report-add" class="btn-normal"><span class="text">$_("Generate")</span></button>
> - <button id="button-report-cancel" class="btn-normal close" type="button">
> - <span calss="text">$_("Cancel")</span>
> - </button>
> - </div>
> - </footer>
> -</div>
> -<script>
> - kimchi.report_add_main();
> -</script>
> diff --git a/src/wok/plugins/kimchi/ui/pages/report-rename.html.tmpl b/src/wok/plugins/kimchi/ui/pages/report-rename.html.tmpl
> deleted file mode 100644
> index 90a0a80..0000000
> --- a/src/wok/plugins/kimchi/ui/pages/report-rename.html.tmpl
> +++ /dev/null
> @@ -1,56 +0,0 @@
> -#*
> - * Project Kimchi
> - *
> - * Copyright IBM, Corp. 2014-2015
> - *
> - * Licensed under the Apache License, Version 2.0 (the "License");
> - * you may not use this file except in compliance with the License.
> - * You may obtain a copy of the License at
> - *
> - * http://www.apache.org/licenses/LICENSE-2.0
> - *
> - * Unless required by applicable law or agreed to in writing, software
> - * distributed under the License is distributed on an "AS IS" BASIS,
> - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> - * See the License for the specific language governing permissions and
> - * limitations under the License.
> - *#
> -#unicode UTF-8
> -#import gettext
> -#from wok.cachebust import href
> -#silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True)
> -#silent _ = t.gettext
> -#silent _t = t.gettext
> -<!DOCTYPE html>
> -<div id="report-rename-window" class="window">
> - <header>
> - <h1 class="title h1 grey">$_("Rename a Debug Report")</h1>
> - </header>
> - <div class="content">
> - <form id="form-report-rename">
> - <section class="form-section">
> - <h2>
> - <label for="report-name-textbox">$_("Report Name")</label>
> - </h2>
> - <div class="field">
> - <input type="text" class="text" id="report-name-textbox" name="name" />
> - <span class="icon-info-circled light-grey c1"></span>
> - <span class="info-debug-report-rename">
> - $_("The name used to identify the report. Name can contain: letters, digits and hyphen (\"-\").")
> - </span>
> - </div>
> - </section>
> - </form>
> - </div>
> - <footer>
> - <div class="btn-group">
> - <button id="button-report-rename" class="btn-normal"><span class="text">$_("Submit")</span></button>
> - <button id-"button-report-rename-cancel" class="btn-normal close" type="button">
> - <span class="text">$_("Cancel")</span>
> - </button>
> - </div>
> - </footer>
> -</div>
> -<script>
> - kimchi.report_rename_main();
> -</script>
> diff --git a/src/wok/plugins/kimchi/ui/pages/repository-add.html.tmpl b/src/wok/plugins/kimchi/ui/pages/repository-add.html.tmpl
> deleted file mode 100644
> index 950252a..0000000
> --- a/src/wok/plugins/kimchi/ui/pages/repository-add.html.tmpl
> +++ /dev/null
> @@ -1,113 +0,0 @@
> -#*
> - * Project Kimchi
> - *
> - * Copyright IBM, Corp. 2014-2015
> - *
> - * Licensed under the Apache License, Version 2.0 (the "License");
> - * you may not use this file except in compliance with the License.
> - * You may obtain a copy of the License at
> - *
> - * http://www.apache.org/licenses/LICENSE-2.0
> - *
> - * Unless required by applicable law or agreed to in writing, software
> - * distributed under the License is distributed on an "AS IS" BASIS,
> - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> - * See the License for the specific language governing permissions and
> - * limitations under the License.
> - *#
> -#unicode UTF-8
> -#import gettext
> -#from wok.cachebust import href
> -#silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True)
> -#silent _ = t.gettext
> -#silent _t = t.gettext
> -<div id="repository-add-window" class="window">
> - <form id="form-repository-add">
> - <header class="window-header">
> - <h1 class="title h1 grey">$_("Add a Repository")</h1>
> - </header>
> - <section>
> - <div class="content">
> - <div class="form-section yum">
> - <h2>$_("Identifier")</h2>
> - <div class="field">
> - <div class="textbox-wrapper">
> - <input type="text" class="text" name="repo_id" />
> - </div>
> - <div class="icon-info-circled light-grey c1 help-inline"></div>
> - <p class="text-help help-inline">
> - $_("Single word, unique identifier for the repository.")
> - </p>
> - </div>
> - </div>
> - <section class="form-section yum">
> - <h2>$_("Name")</h2>
> - <div class="field">
> - <div class="textbox-wrapper">
> - <input type="text" class="text" name="config[repo_name]" />
> - </div>
> - <div class="icon-info-circled light-grey c1 help-inline"></div>
> - <p class="text-help help-inline">
> - $_("Textual name for the repository.")
> - </p>
> - </div>
> - </section>
> - <section class="form-section">
> - <h2>$_("URL")<span class="required" role="presentation" title='$_("Required Field")'>*</span></h2>
> - <div class="field">
> - <div class="textbox-wrapper">
> - <input type="text" class="text required" name="baseurl" />
> - </div>
> - <div class="icon-info-circled light-grey c1 help-inline"></div>
> - <p class="text-help help-inline">
> - $_("URL to the repository. Supported protocols are http, ftp, and file.")
> - </p>
> - </div>
> - <div class="field yum">
> - <p class="yum">
> - <input type="checkbox" name="isMirror" value="true" id="isMirror" />
> - <label id="isMirrorLabel" for="isMirror">$_("Repository is a mirror")</label>
> - </p>
> - </div>
> - </section>
> - <section class="form-section repository-dist deb">
> - <h2>$_("Distribution")</h2>
> - <div class="field">
> - <div class="textbox-wrapper">
> - <input type="text" class="text" name="config[dist]" />
> - </div>
> - <div class="icon-info-circled light-grey c1 help-inline"></div>
> - <p class="text-help help-inline">
> - $_("Distribution of the DEB repository.")
> - </p>
> - </div>
> - </section>
> - <section class="form-section repository-comps deb">
> - <h2>$_("Components")</h2>
> - <div class="field">
> - <div class="textbox-wrapper">
> - <input type="text" class="text" name="config[comps]" />
> - </div>
> - <div class="icon-info-circled light-grey c1 help-inline"></div>
> - <p class="text-help help-inline">
> - $_("List of components in DEB repository.")
> - </p>
> - </div>
> - </section>
> - </div>
> - </section>
> - <footer>
> - <div class="btn-group">
> - <button type="submit" id="button-repository-add" class="btn-normal" disabled="disabled">
> - <span class="text">$_("Add")</span>
> - </button>
> - <button type="button" id="button-repository-close" class="btn-normal close">
> - <span class="text">$("Cancel")</span>
> - </button>
> - </div>
> - </footer>
> - </form>
> -</div>
> -<script>
> - kimchi.repository_add_main();
> -</script>
> diff --git a/src/wok/plugins/kimchi/ui/pages/repository-edit.html.tmpl b/src/wok/plugins/kimchi/ui/pages/repository-edit.html.tmpl
> deleted file mode 100644
> index e5a3cfb..0000000
> --- a/src/wok/plugins/kimchi/ui/pages/repository-edit.html.tmpl
> +++ /dev/null
> @@ -1,117 +0,0 @@
> -#*
> - * Project Kimchi
> - *
> - * Copyright IBM, Corp. 2014-2015
> - *
> - * Licensed under the Apache License, Version 2.0 (the "License");
> - * you may not use this file except in compliance with the License.
> - * You may obtain a copy of the License at
> - *
> - * http://www.apache.org/licenses/LICENSE-2.0
> - *
> - * Unless required by applicable law or agreed to in writing, software
> - * distributed under the License is distributed on an "AS IS" BASIS,
> - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> - * See the License for the specific language governing permissions and
> - * limitations under the License.
> - *#
> -#unicode UTF-8
> -#import gettext
> -#from wok.cachebust import href
> -#silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True)
> -#silent _ = t.gettext
> -#silent _t = t.gettext
> -
> -<div id="repository-edit-window" class="window">
> - <form id="form-repository-edit">
> - <header>
> - <h1 class="title h1 grey">$_("Edit Repository")</h1>
> - </header>
> - <div class="content">
> - <section id="form-repository-edit">
> - <fieldset class="repository-edit-fieldset">
> - <div class="repository-id yum">
> - <div class="repository-edit-wrapper-label">
> - <label for="repository-edit-id-textbox">$_("ID")</label>
> - </div>
> - <div class="repository-edit-wrapper-controls">
> - <input id="repository-edit-id-textbox" name="repo_id" type="text" disabled="disabled" readonly="readonly"/>
> - </div>
> - </div>
> - <div class="repository-name yum">
> - <div class="repository-edit-wrapper-label">
> - <label for="repository-edit-name-textbox">$_("Name")</label>
> - </div>
> - <div class="repository-edit-wrapper-controls">
> - <input id="repository-edit-name-textbox" class="yum" name="config[repo_name]" type="text" />
> - </div>
> - </div>
> - <div class="repository-url">
> - <div class="repository-edit-wrapper-label">
> - <label for="repository-edit-baseurl-textbox">$_("URL")</label>
> - </div>
> - <div class="repository-edit-wrapper-controls">
> - <input id="repository-edit-baseurl-textbox" name="baseurl" type="text" />
> - </div>
> - </div>
> - <div class="repository-dist deb">
> - <div class="repository-edit-wrapper-label">
> - <label for="repository-edit-urlargs-textbox">$_("Distribution")</label>
> - </div>
> - <div class="repository-edit-wrapper-controls">
> - <input id="repository-edit-urlargs-textbox" class="deb" name="config[dist]" type="text" />
> - </div>
> - </div>
> - <div class="repository-mirrorlist yum">
> - <div class="repository-edit-wrapper-label">
> - <label for="repository-edit-urlargs-textbox">$_("Mirror List URL")</label>
> - </div>
> - <div class="repository-edit-wrapper-controls">
> - <input id="repository-edit-urlargs-textbox" class="yum" name="config[mirrorlist]" type="text" />
> - </div>
> - </div>
> - <div class="repository-comps deb">
> - <div class="repository-edit-wrapper-label">
> - <label for="repository-edit-urlargs-textbox">$_("Components")</label>
> - </div>
> - <div class="repository-edit-wrapper-controls">
> - <input id="repository-edit-urlargs-textbox" class="deb" name="config[comps]" type="text" />
> - </div>
> - </div>
> - <div class="repository-gpgkey yum">
> - <div class="repository-edit-wrapper-label">
> - <label for="repository-edit-gpgkey-textbox">$_("GPG Key")</label>
> - </div>
> - <div class="repository-edit-wrapper-controls">
> - <input id="repository-edit-gpgkey-textbox" class="yum" name="config[gpgkey]" type="text" />
> - </div>
> - </div>
> - <div class="repository-gpgcheck yum">
> - <div class="repository-edit-wrapper-label">
> - <label>$_("GPG Check")</label>
> - </div>
> - <div class="repository-edit-wrapper-controls">
> - <input id="repository-edit-gpgcheck-radio-true" class="yum" name="config[gpgcheck]" type="radio" value="true" />
> - <label for="repository-edit-gpgcheck-radio-true">$_("Yes")</label>
> - <input id="repository-edit-gpgcheck-radio-false" class="yum" name="config[gpgcheck]" type="radio" value="false" />
> - <label for="repository-edit-gpgcheck-radio-false">$_("No")</label>
> - </div>
> - </div>
> - </fieldset>
> - </section>
> - </div>
> - <footer>
> - <div class="btn-group">
> - <button type="submit" id="repository-edit-button-save" class="btn-normal">
> - <span class="text">$_("Save")</span>
> - </button>
> - <button type="button" id="repository-edit-button-cancel" class="close btn-normal">
> - <span class="text">$_("Cancel")</span>
> - </button>
> - </div>
> - </footer>
> - </form>
> -</div>
> -<script type="text/javascript">
> - kimchi.repository_edit_main();
> -</script>
More information about the Kimchi-devel
mailing list