File: add_feature.erb

package info (click to toggle)
ruby-flipper 0.13.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,824 kB
  • sloc: ruby: 13,183; sh: 54; makefile: 14
file content (21 lines) | stat: -rw-r--r-- 840 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<% if params.key?("error") %>
  <div class="alert alert-danger">
    <%= params["error"] %>
  </div>
<% end %>

<div class="card">
  <h4 class="card-header">Add Feature</h4>
  <div class="card-body">
    <form action="<%= script_name %>/features" method="post" class="form-inline mb-2">
      <%== csrf_input_tag %>
      <input type="text" name="value" size="30" placeholder="ie: search, new_pricing, etc." autofocus class="form-control mr-2 mb-2 mb-md-0">
      <input type="submit" value="Add Feature" class="btn btn-light">
    </form>
    <p class="text-muted">
      Recommended naming conventions: lower case, <a href="https://en.wikipedia.org/wiki/Snake_case">snake case</a>, underscores over dashes.
      <strong>Good</strong>: foo_bar, foo.
      <strong>Bad</strong>: FooBar, Foo Bar, foo bar, foo-bar.
    </p>
  </div>
</div>