Sha256: 457cfc5ddbaf63e07d68d0c0c779acc98d5d9b1bb5ef9a2478befbf7588a47c8
Contents?: true
Size: 1.52 KB
Versions: 15
Compression:
Stored size: 1.52 KB
Contents
<%= form_for project, :html => { :class => "form-horizontal project" } do |f| %> <% if project.errors.any? %> <div id="error_expl" class="panel panel-danger"> <div class="panel-heading"> <h3 class="panel-title"><%= pluralize(project.errors.count, "error") %> prohibited this project from being saved:</h3> </div> <div class="panel-body"> <ul> <% project.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> </div> <% end %> <div class="form-group"> <%= f.label :owner_id, :class => 'control-label col-lg-2' %> <div class="col-lg-10"> <%= f.collection_select :owner_id, User.all, :id, :email, {}, :class=>"form-control" %> </div> <%=f.error_span(:owner_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 :closed, :class => 'control-label col-lg-2' %> <div class="col-lg-10"> <%= f.check_box :closed, :class => 'form-control' %> </div> <%=f.error_span(:closed) %> </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")), projects_path, :class => 'btn btn-default' %> </div> </div> <% end %>
Version data entries
15 entries across 14 versions & 1 rubygems