Commit 904f7fb623dd29b32d4abbd2398a768333b9a364

Authored by Alexis Koralewski
1 parent 4bc760b9
Exists in dev

ui fix on agent_detail view

src/core/pyros_django/dashboard/templates/dashboard/agent_detail.html
... ... @@ -326,10 +326,10 @@
326 326 var arg_type = "number";
327 327 }
328 328 if (arg_name == "U"){
329   - $("<p></p>").text("This command isn't implemented").css("display","inline").appendTo("#additional_fields");
  329 + $("<p></p>").text("This command isn't implemented").css("display","inline").css("color","red").appendTo("#additional_fields");
330 330 $("#send_cmd_btn").hide()
331 331 }else if (arg_name == "I"){
332   - $("<p></p>").text("This command is badly nammed. A command must start with \"do/get/set\"").css("display","inline").appendTo("#additional_fields");
  332 + $("<p></p>").text("This command is badly nammed. A command must start with \"do/get/set\"").css("color","red").css("display","inline").appendTo("#additional_fields");
333 333 $("#send_cmd_btn").hide()
334 334 }
335 335 else{
... ... @@ -346,6 +346,7 @@
346 346 }
347 347 else{
348 348 if (! cmd.startsWith("get")){
  349 + $("#send_cmd_btn").show()
349 350 $("<label></label>").text("parameter(s)").appendTo("#additional_fields");
350 351 $("<input type='text' value='' />")
351 352 .attr("id", "arg_name")
... ...