Sha256: ab50c23c5a7e5f666d7b5c570d57bffe61744463b84cfa26a819872f415d2ce3

Contents?: true

Size: 1.21 KB

Versions: 6

Compression:

Stored size: 1.21 KB

Contents

<%= simple_form_for([:backend, site], as: :site,
                                      url: :backend_site,
                                      html: { autocomplete: "false" }) do |f| %>
  <%= f.error_notification %>

  <div class="form-inputs">
    <%= f.input :name %>
    <%= f.input :logo, as: :file %>
    <%= f.input :logo_cache, as: :hidden %>

    <div class="form-group site_logo_image">
      <div class="col-sm-10 col-sm-offset-2">
        <%= image_tag(f.object.logo.small.url, alt: "") %>
      </div>
    </div>

    <%= f.input :remove_logo, as: :boolean,
                              checked_value: true,
                              unchecked_value: false if f.object.logo? %>

    <%= f.input :theme, as: :theme %>
    <%= f.input :locale, as: :language %>

    <%= f.input :favicon, as: :file %>
    <%= f.input :favicon_cache, as: :hidden %>
    <%= f.input :remove_favicon, as: :boolean,
                                 checked_value: true,
                                 unchecked_value: false if f.object.favicon? %>

    <%= f.input :meta_keywords, as: :meta_keywords %>
    <%= f.input :meta_description %>
  </div>

  <div class="form-actions text-right">
    <%= f.button :submit %>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
archangel-0.0.7 app/views/archangel/backend/sites/_form.html.erb
archangel-0.0.6 app/views/archangel/backend/sites/_form.html.erb
archangel-0.0.5 app/views/archangel/backend/sites/_form.html.erb
archangel-0.0.4 app/views/archangel/backend/sites/_form.html.erb
archangel-0.0.3 app/views/archangel/backend/sites/_form.html.erb
archangel-0.0.2 app/views/archangel/backend/sites/_form.html.erb