Sha256: 2ffb976b356d03d7f5032a44eb0c603642c7a855462c54c7aa9407e3d3c0aa3b

Contents?: true

Size: 910 Bytes

Versions: 4

Compression:

Stored size: 910 Bytes

Contents

%h3= path[1..-1]
%h4 Operation
%form#form{ :method =>'POST' }
  %table{}
    %tr
      %td  Name:
      %td= operation.name
    %tr
      %td  Description:
      %td= operation.description
    %tr
      %td  Returns:
      %td= operation.type
    - operation.arguments.each_with_index do |arg, i|
      %tr
        %td= "Argument #{i+1}:"
        %td= arg.name
      %tr
        %td Description:
        %td= arg.description
      %tr
        %td Type:
        %td= arg.type
      %tr
        %td Value:
        %td
          %input{ :type => 'text', :name => arg.name, :size => 30 }
  %input{ :type => 'submit', :value => 'Execute' }

%p#results

:javascript
  $("#form").submit(function() {
    //posts the contents of the form to /action using ajax
    $.post("#{operation_path(path)}", $("#form").serialize(), function(result) {
      $("#results").html("Result: "+result);
    });
    return false;
  });

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rumx-0.0.4 lib/rumx/server/views/content_operation.haml
rumx-0.0.3 lib/rumx/server/views/content_operation.haml
rumx-0.0.2 lib/rumx/server/views/content_operation.haml
rumx-0.0.1 lib/rumx/server/views/content_operation.haml