38 lines
1.2 KiB
Text
38 lines
1.2 KiB
Text
<%= 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>
|
|
<div class="control-group">
|
|
<%= f.label :semester, :class => 'control-label' %>
|
|
<div class="controls">
|
|
<%= f.text_field :semester, :class => 'text_field' %>
|
|
</div>
|
|
</div>
|
|
<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 %>
|