Sha256: 87ff4deb5060f6ff9feac40c6dd7cd6c4d04db28f1c6ee3f6042334275624e1d

Contents?: true

Size: 1.51 KB

Versions: 46

Compression:

Stored size: 1.51 KB

Contents

<%= form_for(@tag_definition) do |f| %>
  <% if @tag_definition.errors.any? %>
    <div class='alert alert-error'>
      <h2><%= pluralize(@tag_definition.errors.count, 'error') %> prohibited this tag definition from being saved:</h2>

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

  <% unless @tag_definition.new_record? %>
    <div class='control-group'>
      <%= f.label :id, 'Id:', :class => 'control-label' %>
      <div class='controls'>
        <%= f.text_field :id, :class => 'input-xlarge disabled', :readonly => true %>
      </div>
    </div>
  <% end %>
  <div class='control-group'>
    <%= f.label :name, 'Name:', :class => 'control-label' %>
    <div class='controls'>
      <% unless @tag_definition.new_record? %>
        <%= f.text_field :name, :class => 'input-large disabled', :readonly => true %>
      <% else %>
        <%= f.text_field :name %>
      <% end %>
    </div>
  </div>
  <div class='control-group'>
    <%= f.label :description, 'Description:', :class => 'control-label' %>
    <div class='controls'>
      <%= f.text_field :description, :class => 'input-xxlarge' %>
    </div>
  </div>
  <div class='form-actions'>
    <%= f.submit @tag_definition.new_record? ? 'Create' : 'Update', :class => 'btn btn-primary' %>
    <% unless @tag_definition.new_record? %>
      <%= link_to 'Show', @tag_definition, :class => 'btn' %>
    <% end %>
    <%= link_to 'Back', :back, :class => 'btn' %>
  </div>
<% end %>

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
kaui-0.6.6 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.6.5 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.6.4 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.6.3 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.6.2 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.6.1 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.6.0 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.5.3 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.5.2 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.5.1 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.5.0 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.4.9 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.4.8 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.4.7 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.4.6 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.4.5 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.4.4 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.4.3 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.4.2 app/views/kaui/tag_definitions/_form.html.erb
kaui-0.4.1 app/views/kaui/tag_definitions/_form.html.erb