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

Version Path
model_base_generators-0.4.0 examples/rails-5.0/app/views/projects/_form.html.erb
model_base_generators-0.4.0 examples/rails-5.1/app/views/projects/_form.html.erb
model_base_generators-0.3.9 example/app/views/projects/_form.html.erb
model_base_generators-0.3.8 example/app/views/projects/_form.html.erb
model_base_generators-0.3.7 example/app/views/projects/_form.html.erb
model_base_generators-0.3.6 example/app/views/projects/_form.html.erb
model_base_generators-0.3.5 example/app/views/projects/_form.html.erb
model_base_generators-0.3.4 example/app/views/projects/_form.html.erb
model_base_generators-0.3.3 example/app/views/projects/_form.html.erb
model_base_generators-0.3.2 example/app/views/projects/_form.html.erb
model_base_generators-0.3.1 example/app/views/projects/_form.html.erb
model_base_generators-0.3.0 example/app/views/projects/_form.html.erb
model_base_generators-0.2.4 example/app/views/projects/_form.html.erb
model_base_generators-0.2.3 example/app/views/projects/_form.html.erb
model_base_generators-0.2.2 example/app/views/projects/_form.html.erb