Sha256: cbd08d3673a538dde2238923366d26b6efde5a7099145f64a0c13ec026b9e634

Contents?: true

Size: 1.37 KB

Versions: 23

Compression:

Stored size: 1.37 KB

Contents

<%
   if @form.nil?
     @form = current_site.contact_forms.new
   end
%>
<%= form_for @form, url:{action: @form.new_record? ? :create : :update}, html:{class: 'validate-forms'} do |f| %>
    <input id="plugins_contact_form_models_contact_form_site_id" type="hidden" name="plugins_contact_form_models_contact_form[site_id]" value="<%= current_site.id %>" />

    <%= f.hidden_field :id  %>
    <div class="panel-body">
      <%#= render partial: 'layouts/admin/form_error', locals: {data: @form} %>
        <div class="form-group">
          <%= f.label t('admin.table.name') %><br>
          <%= f.text_field :name, :class => "form-control required" %>
        </div>
        <div class="form-group">
            <%= f.label t('admin.table.slug') %><br>
            <%= f.text_field :slug, :class => "form-control slug", "data-parent" => "plugins_contact_form_models_contact_form_name" %>
        </div>

        <div class="form-group">
          <%= f.label t('admin.table.description') %><br>
          <%= f.text_area :description, :class => "form-control", :rows => 4 %>
        </div>

    </div>

    <div class="panel-footer">
      <a class="btn btn-default" href="<%= url_for action: :index %>" role="back" ><%= t('plugin.contact_form.button.back') %></a>
      <button class="btn btn-primary pull-right" type="submit"><%= t('plugin.contact_form.button.submit') %></button>
    </div>
<% end %>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
camaleon_cms-1.1.0 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-1.0.9 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-1.0.8 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-1.0.7 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-1.0.6 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-1.0.5 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-1.0.4 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-1.0.3 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-1.0.2 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-1.0.1 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-1.0 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-0.2.1 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-0.2.0 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-0.1.9 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-0.1.8 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-0.1.7 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-0.1.6 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-0.1.5 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-0.1.4 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb
camaleon_cms-0.1.3 app/apps/plugins/contact_form/views/admin_forms/_form.html.erb