1
0
Fork 0
MSU-Course-Alerter/app/views/alerts/_form.html.erb

39 lines
1.2 KiB
Text
Raw Normal View History

2013-04-02 02:43:01 -04:00
<%= form_for @alert, :html => { :class => 'form-horizontal' } do |f| %>
<div class="control-group">
<%= f.label :user_id, :class => 'control-label' %>
<div class="controls">
<%= f.number_field :user_id, :class => 'number_field' %>
</div>
</div>
<div class="control-group">
<%= f.label :department, :class => 'control-label' %>
<div class="controls">
<%= f.text_field :department, :class => 'text_field' %>
</div>
</div>
<div class="control-group">
<%= f.label :course, :class => 'control-label' %>
<div class="controls">
<%= f.text_field :course, :class => 'text_field' %>
</div>
</div>
2013-04-03 19:44:01 -04:00
<div class="control-group">
<%= f.label :semester, :class => 'control-label' %>
<div class="controls">
<%= f.text_field :semester, :class => 'text_field' %>
</div>
</div>
2013-04-02 02:43:01 -04:00
<div class="control-group">
<%= f.label :alerted, :class => 'control-label' %>
<div class="controls">
<%= f.check_box :alerted, :class => 'check_box' %>
</div>
</div>
<div class="form-actions">
<%= f.submit nil, :class => 'btn btn-primary' %>
<%= link_to t('.cancel', :default => t("helpers.links.cancel")),
alerts_path, :class => 'btn' %>
</div>
<% end %>