Sha256: 50b9d5e002f8209a09ba71e0ac4a42bc1be888b45edc208b0842e20ec725c26c

Contents?: true

Size: 732 Bytes

Versions: 6

Compression:

Stored size: 732 Bytes

Contents

<%= form_for(@template) do |f| %>
  <% if @template.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@template.errors.count, "error") %> prohibited this template from being saved:</h2>

      <ul>
      <% @template.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :template_name %><br />
    <%= f.text_field :template_name %>
  </div>
  <div class="field">
    <%= f.label :description %><br />
    <%= f.text_area :description %>
  </div>
  <div class="field">
    <%= f.label :content %><br />
    <%= f.text_area :content %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
stachio-0.2.1 app/views/stachio/templates/_form.html.erb
stachio-0.2.0 app/views/stachio/templates/_form.html.erb
stachio-0.1.0 app/views/stachio/templates/_form.html.erb
stachio-0.0.6 app/views/stachio/templates/_form.html.erb
stachio-0.0.5 app/views/stachio/templates/_form.html.erb
stachio-0.0.4 app/views/stachio/templates/_form.html.erb