Sha256: 5c226a0c15180dd50f47cd57ea0dec265775febe0b5df4e1607a8432ade79734

Contents?: true

Size: 1.24 KB

Versions: 11

Compression:

Stored size: 1.24 KB

Contents

<%= form_for @widget, url: { action: (@widget.new_record? ? "create" : "update"), controller: "admin/appearances/widgets/main", id: @widget }, html: { role: 'form', class: "validate", id: "widget_form" } do |f| %>
    <%= render partial: 'layouts/admin/form_error', locals: {data: @widget} %>
    <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 required", "data-parent" => "widget_main_name" %>
    </div>

    <div class="form-group">
        <%= f.label t('admin.sidebar.content') %><br>
        <%= f.text_area :description, :class => "form-control translatable", :rows => 2 %>
    </div>
    <!--<div class="form-group">
        <%#= f.label t('admin.table.excerpt') %><br>
        <%#= f.text_area :excerpt, :class => "form-control", :rows => 2 %>
    </div>-->
    <div class="form-group text-right">
        <button class="btn btn-primary" type="submit"><%= t('admin.button.submit')%></button>
    </div>
    <script>
        jQuery(function(){ init_form_validations($("#widget_form")); });
    </script>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
camaleon_cms-1.1.0 app/views/admin/appearances/widgets/main/form.html.erb
camaleon_cms-1.0.9 app/views/admin/appearances/widgets/main/form.html.erb
camaleon_cms-1.0.8 app/views/admin/appearances/widgets/main/form.html.erb
camaleon_cms-1.0.7 app/views/admin/appearances/widgets/main/form.html.erb
camaleon_cms-1.0.6 app/views/admin/appearances/widgets/main/form.html.erb
camaleon_cms-1.0.5 app/views/admin/appearances/widgets/main/form.html.erb
camaleon_cms-1.0.4 app/views/admin/appearances/widgets/main/form.html.erb
camaleon_cms-1.0.3 app/views/admin/appearances/widgets/main/form.html.erb
camaleon_cms-1.0.2 app/views/admin/appearances/widgets/main/form.html.erb
camaleon_cms-1.0.1 app/views/admin/appearances/widgets/main/form.html.erb
camaleon_cms-1.0 app/views/admin/appearances/widgets/main/form.html.erb