Sha256: 3caf8773b80373cb9c8dfb80d445555ddac1f74549b337fdaf81b8d7b6e31fa9

Contents?: true

Size: 1.33 KB

Versions: 33

Compression:

Stored size: 1.33 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_instance,
              url: url_for({
                  controller: params[:controller],
                  action: :fb_save_token,
                  id: @resource_instance,
                  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

33 entries across 33 versions & 1 rubygems

Version Path
adminpanel-3.6.1 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.6.0 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.5.1 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.5.0 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.4.7 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.4.6 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.4.5 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.4.4 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.4.3 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.4.2 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.4.1 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.4.0 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.3.4 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.3.3 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.3.0 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.2.1 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.2.0 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.1.0 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-3.0.0 app/views/adminpanel/templates/fb_choose_page.html.erb
adminpanel-2.6.1 app/views/adminpanel/templates/fb_choose_page.html.erb