Sha256: 4f8ea099b81c0fab974d6fe5601420e6e33d25e6ea6c38f8e267fbdb252bfaf7

Contents?: true

Size: 1014 Bytes

Versions: 1

Compression:

Stored size: 1014 Bytes

Contents

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

      <ul>
      <% @source.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
  <div class="control-group">
    <%= f.label :identifier, :class=>"control-label" %>
    <div class="controls">
      <%= f.text_field :identifier %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :url, :class=>"control-label" %>
    <div class="controls">
      <%= f.text_field :url, :placeholder=>"http://your_other_env.host/lit" %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :api_key, :class=>"control-label" %>
    <div class="controls">
      <%= f.text_field :api_key %>
    </div>
  </div>

  <div class="actions">
    <%= f.submit t('lit.common.save'), :class=>"btn" %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lit-0.1.0 app/views/lit/sources/_form.html.erb