[Kimchi-devel] [PATCH] [Kimchi] Create template (UI part) without specifying media type

Aline Manera alinefm at linux.vnet.ibm.com
Tue Apr 12 17:19:26 UTC 2016


Hi Socorro,

The user will not need to choose any template type, ie, choose between 
local file or remote ISO.

Said that, when selecting "Add Template" a new dialog will be open to 
collect the source media path which can be a local file or remote one.

I think in something like below:

  ----------------------------------------------------------------------------------
|  Source media: < input box > 
                                                   |
|  <info icon> Specify a local ISO file or a local image file or         |
|                      even an URL to an specific ISO 
image                   |
| |
| Suggested ISO files: |
| < keep displaying the ISOs found in the active storage pools > |
| |
| Suggested Remote ISO 
files:                                                      |
| < keep displaying the remote ISOs 
 >                                         |
----------------------------------------------------------------------------------

Either way, you just need to collect the file path (local or remote) and 
pass it to 'source_media' parameter.

Please, let me know your thoughts on it.

On 04/06/2016 03:20 PM, Socorro Stoppler wrote:
> Rather than specifying whether local file is an img or an ISO, all the
> user has to do is to input the file including the path of its location.
> Kimchi will handle the rest on the backend.  Rather than originally having 3
> radio buttons, it is now 2 radio buttons -- one for local and the other
> for remote.
>
> This patch needs to work in conjunction w/Ramon's latest patch set sent
> today - Use a single field to create a template - (backend)
>
> Socorro Stoppler (1):
>    Create template without specifying media type
>
>   ui/css/kimchi.css                     |   2 +-
>   ui/css/src/modules/_templates.scss    |   2 +-
>   ui/js/src/kimchi.template_add_main.js | 378 +++++-----------------------------
>   ui/pages/template-add.html.tmpl       |  73 +------
>   4 files changed, 55 insertions(+), 400 deletions(-)
>




More information about the Kimchi-devel mailing list