Sha256: fe7edea444e585c75f726aa2beb6d9763ccc5c2d9ba1ed973c8e982d31342384

Contents?: true

Size: 944 Bytes

Versions: 12

Compression:

Stored size: 944 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, :value => arg.default_value.to_s }
  %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

12 entries across 12 versions & 1 rubygems

Version Path
rumx-0.2.3 lib/rumx/server/views/content_operation.haml
rumx-0.2.2 lib/rumx/server/views/content_operation.haml
rumx-0.1.5 lib/rumx/server/views/content_operation.haml
rumx-0.1.4 lib/rumx/server/views/content_operation.haml
rumx-0.1.3 lib/rumx/server/views/content_operation.haml
rumx-0.1.2 lib/rumx/server/views/content_operation.haml
rumx-0.1.1 lib/rumx/server/views/content_operation.haml
rumx-0.1.0 lib/rumx/server/views/content_operation.haml
rumx-0.0.8 lib/rumx/server/views/content_operation.haml
rumx-0.0.7 lib/rumx/server/views/content_operation.haml
rumx-0.0.6 lib/rumx/server/views/content_operation.haml
rumx-0.0.5 lib/rumx/server/views/content_operation.haml