Sha256: d8c8f3ab943edf1e444f9d310f06fdfddaf1c7edd57fa993ce686cb275ed1510

Contents?: true

Size: 1.57 KB

Versions: 3

Compression:

Stored size: 1.57 KB

Contents

<div class="col-md-3 js-widget">
  <div class="widget">
    <div class="widget-show">
      <div class="widget-header"><h4 class='widget-title--ellipsed'><%= widget.content(current_locale).title %></h4></div>
      <div class="widget-content"><%= widget.content(current_locale).text %></div>
      <div class="widget-footer">
        <% if widget.featured? %>
          <div class="widget-featured">
            <span class="badge badge-default" title='Featured on <%= pluralize(widget.featured_count, 'page') %>'><%= widget.featured_count %></span>
          </div>
        <% end -%>
        <%= link_to icon_tag('pencil'), '#', class: 'widget-action js-edit' %>
        <%= link_to_delete widget, text: icon_tag('trash-o'), class: 'widget-action' %>
      </div>
    </div>
    <div class="widget-form hide">
      <%= simple_form_for widget, remote: true, html: {class: 'js-spin-and-roll'} do |f| %>
        <%= f.simple_fields_for :contents, widget.content(current_locale) do |c| %>
          <%= c.input :locale, as: :hidden %>
          <div class="widget-header">
            <div class="widget-title">
              <%= c.input_field :title, class: 'form-control' %>
            </div>
          </div>
          <div class="widget-content">
            <%= c.input_field :text, as: :text, rows: 7, class: 'form-control' %>
          </div>
          <div class="widget-footer">
            <%= link_to "#{icon_tag('times')} Cancel".html_safe, '#', class: 'btn btn-default js-close' %>
            <%= button_to_save %>
          </div>
        <% end -%>
      <% end -%>
    </div>
  </div>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
georgia-0.8.0 app/views/georgia/widgets/_widget.html.erb
georgia-0.7.8 app/views/georgia/widgets/_widget.html.erb
georgia-0.7.7 app/views/georgia/widgets/_widget.html.erb