Sha256: 0e5bfbb77169ffac4494216f7b016fd1a66f3c79094f07a5d589ae7522d1c340

Contents?: true

Size: 877 Bytes

Versions: 4

Compression:

Stored size: 877 Bytes

Contents

<%= form_for(@site) do |f| %>
  <div class="small-12 columns">
    <%= f.submit 'Save', class: 'success button' %>
    <%= link_to 'Back', sites_path, class: 'secondary hollow button' %>
  </div>

  <% if @site.errors.any? %>
    <div class="small-12 columns">
      <div class="callout warning">
        <h5><%= pluralize(@site.errors.count, 'error') %> prohibited this content from being saved:</h5>

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

  <div class="small-12 columns">
    <%= f.label :name %>
    <%= f.text_field :name, required: true %>
  </div>

  <div class="small-12 columns">
    <%= f.label :domain %>
    <%= f.text_field :domain, required: true %>
    <p class="help-text">Example: fr.domain.com</p>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
guts-1.3.6 app/views/guts/sites/_form.html.erb
guts-1.3.5 app/views/guts/sites/_form.html.erb
guts-1.3.4 app/views/guts/sites/_form.html.erb
guts-1.3.3 app/views/guts/sites/_form.html.erb