Sha256: d0a7e02489ce2ef008f890ff8b2e7a5b72c29b69ecc9fb6ace051efcfab04f35

Contents?: true

Size: 1011 Bytes

Versions: 8

Compression:

Stored size: 1011 Bytes

Contents

<h2>Install Site</h2>

<p>Welcome to adva-cms' less-than-one-minute installation process. Just fill in the information below and you're done.</p>
<p>Don't worry. You can always change these settings later.</p>

<%= form_for Site.new, url: admin_install_path do |f| %>
  <h3>Website</h3>
  <% f.field_set :site do %>
    <%= fields_for @site do |site| %>
      <%= site.text_field :name, label: true %>
    <% end %>
  <% end %>

  <h3>Home Section</h3>
  <% f.field_set :home_section do %>
    <%= fields_for :section, @section do |section| %>
      <p>
      <%= section.text_field :title, label: true %>
      </p>
    <% end %>
  <% end %>

  <h3>Admin Account</h3>
  <% f.field_set :admin_account do %>
    <%= fields_for @user do |user| %>
      <p>
      <%= user.email_field :email, label: true %>
      </p>
      <p>
      <%= user.password_field :password, label: true %>
      </p>
    <% end %>
  <% end %>

  <% f.buttons do %>
    <%= submit_tag "Create site and account" %>
  <% end %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
adva-0.3.2 app/views/admin/install/index.html.erb
adva-0.3.1 app/views/admin/install/index.html.erb
adva-0.3.0 app/views/admin/install/index.html.erb
adva-0.2.4 app/views/admin/install/index.html.erb
adva-0.2.3 app/views/admin/install/index.html.erb
adva-0.2.2 app/views/admin/install/index.html.erb
adva-0.2.1 app/views/admin/install/index.html.erb
adva-0.2.0 app/views/admin/install/index.html.erb