Sha256: c00274677f34fed3d2bc0d565fed4d091710555c8878d1fe726d24ae55a05099
Contents?: true
Size: 1.77 KB
Versions: 13
Compression:
Stored size: 1.77 KB
Contents
<%= form_for phase, :html => { :class => "form-horizontal phase" } do |f| %> <% if phase.errors.any? %> <div id="error_expl" class="panel panel-danger"> <div class="panel-heading"> <h3 class="panel-title"><%= pluralize(phase.errors.count, "error") %> prohibited this phase from being saved:</h3> </div> <div class="panel-body"> <ul> <% phase.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> </div> <% end %> <div class="form-group"> <%= f.label :project_id, :class => 'control-label col-lg-2' %> <div class="col-lg-10"> <%= f.collection_select :project_id, Project.all, :id, :name, {}, :class=>"form-control" %> </div> <%=f.error_span(:project_id) %> </div> <div class="form-group"> <%= f.label :name, :class => 'control-label col-lg-2' %> <div class="col-lg-10"> <%= f.text_field :name, :class => 'form-control' %> </div> <%=f.error_span(:name) %> </div> <div class="form-group"> <%= f.label :started_at, :class => 'control-label col-lg-2' %> <div class="col-lg-10"> <%= f.datetime_select :started_at, :class => 'form-control' %> </div> <%=f.error_span(:started_at) %> </div> <div class="form-group"> <%= f.label :finished_at, :class => 'control-label col-lg-2' %> <div class="col-lg-10"> <%= f.datetime_select :finished_at, :class => 'form-control' %> </div> <%=f.error_span(:finished_at) %> </div> <div class="form-group"> <div class="col-lg-offset-2 col-lg-10"> <%= f.submit nil, :class => 'btn btn-primary' %> <%= link_to t('.cancel', :default => t("helpers.links.cancel")), phases_path, :class => 'btn btn-default' %> </div> </div> <% end %>
Version data entries
13 entries across 12 versions & 1 rubygems