Romain Rigaux 11 жил өмнө
parent
commit
888a292

+ 1 - 1
apps/oozie/src/oozie/models2.py

@@ -856,7 +856,7 @@ class SshAction(Action):
           'label': _('User and Host'),
           'label': _('User and Host'),
           'value': 'user@host.com',
           'value': 'user@host.com',
           'help_text': _('Where the shell will be executed.'),
           'help_text': _('Where the shell will be executed.'),
-          'type': ''
+          'type': 'text'
      },         
      },         
      'ssh_command': { 
      'ssh_command': { 
           'name': 'ssh_command',
           'name': 'ssh_command',

+ 7 - 2
apps/oozie/src/oozie/templates/editor/workflow_editor.mako

@@ -1159,12 +1159,12 @@ ${ commonheader(_("Workflow Editor"), "Oozie", user, "40px") | n,unicode }
   <!-- ko if: $root.workflow.getNodeById(id()) -->
   <!-- ko if: $root.workflow.getNodeById(id()) -->
   <div class="row-fluid" data-bind="with: $root.workflow.getNodeById(id())" style="padding: 10px">
   <div class="row-fluid" data-bind="with: $root.workflow.getNodeById(id())" style="padding: 10px">
     <div data-bind="visible: $root.isEditing">
     <div data-bind="visible: $root.isEditing">
-      <input type="text" data-bind="value: id" />
-      <input type="text" data-bind="value: name" />
+
       <div data-bind="visible: ! $parent.ooziePropertiesExpanded()">
       <div data-bind="visible: ! $parent.ooziePropertiesExpanded()">
         <span data-bind="text: $root.workflow_properties.host.label"></span>
         <span data-bind="text: $root.workflow_properties.host.label"></span>
         <input type="text" data-bind="value: properties.host" />
         <input type="text" data-bind="value: properties.host" />
         <br/>
         <br/>
+        
         <span data-bind="text: $root.workflow_properties.ssh_command.label"></span>
         <span data-bind="text: $root.workflow_properties.ssh_command.label"></span>
         <input type="text" data-bind="value: properties.ssh_command" />
         <input type="text" data-bind="value: properties.ssh_command" />
         <div class="row-fluid">
         <div class="row-fluid">
@@ -1172,6 +1172,11 @@ ${ commonheader(_("Workflow Editor"), "Oozie", user, "40px") | n,unicode }
         </div>
         </div>
       </div>
       </div>
     </div>
     </div>
+    
+    <div data-bind="visible: ! $root.isEditing()">
+      <span data-bind="text: properties.host" />
+      <span data-bind="text: properties.ssh_command().slice(0, 75)" />
+    </div> 
 
 
     <div data-bind="visible: $parent.ooziePropertiesExpanded">
     <div data-bind="visible: $parent.ooziePropertiesExpanded">
       <ul class="nav nav-tabs">
       <ul class="nav nav-tabs">