Sha256: 7d6af6acd0b3ace775a0dc5a6ef53b8e133d750c4b82abb5918922c421d5efbc
Contents?: true
Size: 1.29 KB
Versions: 6
Compression:
Stored size: 1.29 KB
Contents
<html> <body> <a href="/scenarios">Home</a> <br> <%= error %> <h2><%= scenario[:name] %></h2> <table> <thead> <tr> <th>Request Type</th> <th>Path</th> <th>Fixture</th> </tr> </thead> <tbody> <% routes.each do |route| %> <tr> <td><%= route[:route_type] %></td> <td><a href="/scenarios/<%= scenario[:id] %>/routes/<%= route[:id]%>"><%= route[:path] %></a></td> <td><%= route[:fixture] %></td> <td> <form action="/scenarios/<%= scenario[:id] %>/routes/<%= route[:id]%>" method="post" style="display:inline;"> <input name="_method" value="delete" type="hidden"/> <input type="submit" name="commit" value="Delete"> </form> </td> </tr> <% end %> </tbody> </table> <p> <form action="/scenarios/<%= scenario[:id] %>/routes/new" method="post" id="routeform"> <p> <label>Request Type</label> <select name="route_type"> <option value="GET">GET</option> <option value="POST">POST</option> <option value="DELETE">DELETE</option> <option value="PUT">PUT</option> </select> <br> <label>Path</label> <input type="text" name="path"> <br> <label>Fixture</label> <textarea name="fixture" rows="10" ></textarea> </p> <p> <button type="submit">Submit</button> </p> </form> </p> </body> </html>
Version data entries
6 entries across 6 versions & 1 rubygems