Sha256: 33a9e42b2d5df78e076039bc105bb4285e4be2c4f199a709c44b92812b2d52a0

Contents?: true

Size: 1.27 KB

Versions: 3

Compression:

Stored size: 1.27 KB

Contents

<%= row do %>
  <%= span(12) do %>
  <section>
    <div class="section-title">
      <%= t('site.contacts', :default => "Contacts") %>
    </div>
  </section>
  <% end %>
<% end %>

<%= row do %>
<%= span(5) do %>
<% unless params[:success] %>

     <%= semantic_form_for(Contact.new(:locale => I18n.locale), :url => { :controller => "site/site", :action => "contact" }, :builder => FormtasticBootstrap::FormBuilder) do |f| %>
     
     <%= f.input :locale, :as => :hidden %>
         <%= f.inputs do %>
            <%= f.input :first_name, :input_html => {:class => "span5"} %>
            <%= f.input :second_name, :input_html => {:class => "span5"} %>
            <%= f.input :email, :input_html => {:class => "span5"} %>
            <%= f.input :text, :input_html => {:class => "span5"} %>
            <%= f.input :agreed_to_privacy %>           
         <% end %>
         <div>
             <input name="commit" type="submit" value="<%= t("send", :scope => :site, :default => "Send") %>" class="contact-submit">
         </div>
     
     <% end %>
<% else %>
  <div class="alert">
    <%= t("contacts.success", :default => "") %>
  </div>
<% end %>
  <% end %>
  
  <%= span(7) do %>
    <%= part("embed", :schema => :text) do |p| %>
        <%= raw p.text %>
    <% end %>
  <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fullstack-cms-0.2.24 lib/generators/fullstack/cms/templates/rails/app/views/site/site/contacts.html.erb
fullstack-cms-0.2.23 lib/generators/fullstack/cms/templates/rails/app/views/site/site/contacts.html.erb
fullstack-cms-0.2.22 lib/generators/fullstack/cms/templates/rails/app/views/site/site/contacts.html.erb