anchor.diff:        <%= f.text_field :space_name, :class=>"form-control login-credential"-%>
       </div>
   
  -    <span style="border:1px black solid;" id="test-endpoint">Test!</span>
  -    <span id="result"></span>
  +    <span id="check-result"></span>
   
  -    <%= f.submit(@openbis_space.new_record? ? "Add" : "Update",
  -                 disabled:true ,
  -                 disable_with: @openbis_space.new_record? ? "Adding ..." : "Updating ...",
  -                 class:'btn btn-primary',
  -                 id:'submit-button')
  -    %>
  +    <%= content_tag(:button,type:'button',class:'btn btn-primary',id:'submit-button'){@openbis_space.new_record? ? "Add" : "Update"} %>
       or
       <%= cancel_button(project_openbis_spaces_path(@project)) %>
   
  
positive.code:           data: $j('input.login-credential').serialize(),
            success: function (data) {
              if (data.result==true) {
                $j('#result').html('Passed')
                $j('#submit-button').prop('disabled', false);
              }
              else {
                $j('#result').html('Failed')
                $j('#submit-button').prop('disabled', true);
              }
            },
            beforeSend: function () {
              $j('#result').html('<%= image('spinner') %>');
            }
          }
      );
    }
  
    $j('#test-endpoint').on('click', function() {
      testEndpoint();
    });
  
  
negative.code: <%= form_for([@project,@openbis_space],html:{id:'openbis-space-form'}) do |f| %>
  
      <%= f.error_messages %>
  
  