Sha256: 7fc03af33edbd91386c9597ec0e7fae6d3f4b236b0273eea5a638db660566f85

Contents?: true

Size: 543 Bytes

Versions: 2

Compression:

Stored size: 543 Bytes

Contents

<h1>Create Toggle</h1>
<%= form_tag(controller: 'toggles', action: 'create', method: 'post', class: 'toggle-form') do |form| %>
  <p>
    <%= label_tag(:name, 'Name*') %>
    <%= text_field_tag(:name) %>
  </p>
  <p>
    <%= check_box_tag(:active, (params[:active].present? ? params[:active] : '1')) %>
    <%= label_tag(:active, 'Active') %>
  </p>
  <p>
    <%= label_tag(:description, 'Description') %>
    <%= text_area_tag(:description, params[:description], size: '24x6') %>
  </p>
  <p>
    <%= submit_tag('Create') %>
  </p>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chirrin-chirrion-admin-0.0.3 app/views/chirrin_chirrion_admin/toggles/new.html.erb
chirrin-chirrion-admin-0.0.2 app/views/chirrin_chirrion_admin/toggles/new.html.erb