Sha256: a81d3ff37f559e914be5f7e91f6806a4af8278e2e4dcae00d36a2d3dead103c5

Contents?: true

Size: 1.31 KB

Versions: 12

Compression:

Stored size: 1.31 KB

Contents

<% provide(:page_title, I18n.t('fb.pages', name: @name)) %>
<% 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.share", model: @model.display_name) %></h5>
    </div>
    <div class = "widget-body">
      <div class = "widget-forms clearfix">
        <%= adminpanel_form_for(
              resource,
              url: url_for({
                  controller: params[:controller],
                  action: :fb_save_token,
                  id: resource,
                  host: request.host
              }),
              method: :post
            ) do |f| %>

          <%= f.select(
            :fb_page_access_key,
            options_for_select(@pages.map{ |p| [ p['name'], p['access_token'] ] }),
            { 'label' => I18n.t('fb.page_select') }
          )
          %>

      </div>
    </div>
    <div class = "widget-footer">
      <%=
      f.submit t('fb.confirm_page'),
        data: {:disable_with => t("action.submitting")},
        :id =>"save-fb-page-button"
      %>
    </div>
  <% end -%>
  </div>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

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