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

Socorro Stoppler socorro at linux.vnet.ibm.com
Wed Apr 13 17:51:16 UTC 2016


On 04/12/2016 10:19 AM, Aline Manera wrote:
>
> 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 
> >                                         |
> ---------------------------------------------------------------------------------- 
>

While the concept is good regarding the UI suggestion, I'm questioning 
if that'll be too much in one panel?  (i.e. what if there are numerous 
local and remote ISOs?)

Samuel,

I'd like to get your thoughts on this --- do you have a suggestion on 
how to handle what Aline is trying to get across?

>
> 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(-)
>>
>
Thanks
-Socorro




More information about the Kimchi-devel mailing list