Sha256: c0d02f674e555cbbce902b40a6023f2b0b82ca3b423ed019e46080e72a3adc50

Contents?: true

Size: 1.18 KB

Versions: 12

Compression:

Stored size: 1.18 KB

Contents

<% provide(:page_title, t("action.create") + " #{@model.display_name.capitalize}") -%>
<%
  breadcrumb_add(
  @model.display_name.capitalize.pluralize(I18n.default_locale),
    {
      :controller => params[:controller],
      :action => "index"
    }
  )
%>
<div class="row-fluid">
  <div class = "widget widget-padding span12">
    <div class = "widget-header">
      <%= content_tag(:i, nil, :class => "fa fa-#{@model.icon}") %>
      <h5><%= t("action.create") + " " + @model.display_name %></h5>
    </div>
    <%=
    adminpanel_form_for(
      resource,
      :html => {
        :class => 'form-horizontal',
        :id => 'new_resource'
      }
    ) do |f| -%>
      <div class = "widget-body">
        <div class = "widget-forms clearfix">
            <%= render 'shared/error_messages', :object => resource %>
            <%= render 'shared/form_fields', :f => f %>
        </div>
      </div>
      <div class = "widget-footer">
        <%=
        f.submit t('action.add') + " " + @model.display_name,
          data: {:disable_with => t("action.submitting")},
          :id =>"new-#{@model.name.demodulize}-button"
        %>
      </div>
    <% end -%>
  </div>
</div>
<%= render 'shared/modal' %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
adminpanel-2.2.5 app/views/shared/new.html.erb
adminpanel-2.2.4 app/views/shared/new.html.erb
adminpanel-2.2.3 app/views/shared/new.html.erb
adminpanel-2.2.2 app/views/shared/new.html.erb
adminpanel-2.2.1 app/views/shared/new.html.erb
adminpanel-2.2.0 app/views/shared/new.html.erb
adminpanel-2.1.7 app/views/shared/new.html.erb
adminpanel-2.1.6 app/views/shared/new.html.erb
adminpanel-2.1.5 app/views/shared/new.html.erb
adminpanel-2.1.3 app/views/shared/new.html.erb
adminpanel-2.1.2 app/views/shared/new.html.erb
adminpanel-2.1.1 app/views/shared/new.html.erb