Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix wrong input name for parameter name

  • Loading branch information...
commit af43c73fc5a7d0d176311e44d510527aa68f420b 1 parent 214eb4a
@brandonmwest authored
Showing with 10 additions and 5 deletions.
  1. +5 −0 README.md
  2. +5 −5 views/_parameters.haml
View
5 README.md
@@ -19,8 +19,13 @@ I/O Doctor is built on [Sinatra](http://www.sinatrarb.com), Twitter Bootstrap 2.
TODO
----
+
* Refactor to use a Javascript MVC framework
* Highlight selected Endpoint in the menu
* Wire up the Method links in the menu
* Add validation on form fields
* Ability to reorder nodes
+* Ability to edit JSON directly on output tab - GUI v Source view
+* Ability to copy a node
+* Add Parameter buttons both above and below the list of parameters
+* Default the paramater data type to be custom: string
View
10 views/_parameters.haml
@@ -8,7 +8,7 @@
%legend
.section.clickable{"parent" => "#endpoint#{endpointIndex}method#{methodIndex}", "target" => "#endpoint#{endpointIndex}method#{methodIndex}parameter#{param_count}"}
Parameter:
- %span.parameterNameSpan #{p.ParameterName}
+ %span.parameterNameSpan #{p.Name}
.parameterContainer.hide{:id => "endpoint#{endpointIndex}method#{methodIndex}parameter#{param_count}"}
%span.method-controls
@@ -18,11 +18,11 @@
Delete Parameter
.control-group
- %label.control-label{:for => "endpoints[#{endpointIndex}].methods[#{methodIndex}].parameters[#{param_count}].ParameterName"} Parameter Name
+ %label.control-label{:for => "endpoints[#{endpointIndex}].methods[#{methodIndex}].parameters[#{param_count}].Name"} Parameter Name
.controls
- %input.parameterName{:name => "endpoints[#{endpointIndex}].methods[#{methodIndex}].parameters[#{param_count}].ParameterName", |
- :id => "endpoints[#{endpointIndex}].methods[#{methodIndex}].parameters[#{param_count}].ParameterName", |
- :value => "#{p.ParameterName}"} |
+ %input.name{:name => "endpoints[#{endpointIndex}].methods[#{methodIndex}].parameters[#{param_count}].Name", |
+ :id => "endpoints[#{endpointIndex}].methods[#{methodIndex}].parameters[#{param_count}].Name", |
+ :value => "#{p.Name}"} |
.control-group
%label.control-label{:for => "endpoints[#{endpointIndex}].methods[#{methodIndex}].parameters[#{param_count}].Description"} Description
.controls
Please sign in to comment.
Something went wrong with that request. Please try again.