Sha256: 6d11cef84244dafd465d3e0ab080f7d8ba95d9fe57a31d3a4e759eecc8834228

Contents?: true

Size: 1.1 KB

Versions: 16

Compression:

Stored size: 1.1 KB

Contents

<div style="max-width: 60em; margin: auto">
  <div class="mb-2">
    <label class="form-label w-100">Route
      <select class="form-control" id="rawFormRoute">
        <% raw_form_routes.each do |route| %>
          <% path = @route_props[:with_path_args].call(route[:route]) %>
          <option value="<%= route[:verb] %>:<%= path %>"><%= route[:verb] %> <%= route[:relative_path] %></option>
        <% end %>
      </select>
    </label>
  </div>

  <div class="mb-2">
    <label class="form-label w-100">Media Type
      <select class="form-control" id="rawFormMediaType">
        <% ["application/json", "application/x-www-form-urlencoded", "multipart/form-data"].each do |t| %>
          <option value="<%= t %>"><%= t %></option>
        <% end %>
      </select>
    </label>
  </div>

  <div class="mb-2">
    <label class="form-label w-100">Content
      <textarea class="form-control" style="font-family: monospace" id="rawFormContent" rows="8" cols="60"></textarea>
    </label>
  </div>

  <button type="button" class="btn btn-primary" style="float: right" onclick="rrfSubmitRawForm(this)">Submit</button>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rest_framework-0.7.7 app/views/rest_framework/_raw_form.html.erb
rest_framework-0.7.6 app/views/rest_framework/_raw_form.html.erb
rest_framework-0.7.5 app/views/rest_framework/_raw_form.html.erb
rest_framework-0.7.4 app/views/rest_framework/_raw_form.html.erb
rest_framework-0.7.3 app/views/rest_framework/_raw_form.html.erb
rest_framework-0.7.2 app/views/rest_framework/_raw_form.html.erb
rest_framework-0.7.1 app/views/rest_framework/_raw_form.html.erb
rest_framework-0.7.0 app/views/rest_framework/_raw_form.html.erb
rest_framework-0.6.13 app/views/rest_framework/_raw_form.html.erb
rest_framework-0.6.12 app/views/rest_framework/_raw_form.html.erb
rest_framework-0.6.11 app/views/rest_framework/_raw_form.html.erb
rest_framework-0.6.10 app/views/rest_framework/_raw_form.html.erb
rest_framework-0.6.9 app/views/rest_framework/_raw_form.html.erb
rest_framework-0.6.8 app/views/rest_framework/_raw_form.html.erb
rest_framework-0.6.7 app/views/rest_framework/_raw_form.html.erb
rest_framework-0.6.6 app/views/rest_framework/_raw_form.html.erb