denny/ShinyCMS-ruby

View on GitHub
plugins/ShinyAccess/app/views/shiny_access/admin/groups/new.html.erb

Summary

Maintainability
Test Coverage
<%= form_for :group, url: shiny_access.groups_path, method: :post do |f| %>
  <p>
    <%= f.label :internal_name %>
    <br><%= f.text_field :internal_name %>
  </p>
  <p>
    <%= f.label :public_name %>
    <br><%= f.text_field :public_name %>
  </p>
  <p>
    <%= f.label :slug %>
    <br><%= f.text_field :slug %>
  </p>
  <p>
    <%= f.label :description %>
    <br><%= f.text_area :description %>
  </p>

  <p class="top-margin">
    <%= submit_tag t( 'add' ) %>
  </p>
<% end %>