Sha256: c05a1fec2eb82b9b72602f1dfe713ab9c8d5de86ed3bf6a0f47dfb2f72bc66d0

Contents?: true

Size: 1.48 KB

Versions: 9

Compression:

Stored size: 1.48 KB

Contents

<%= form_for @banner, :url => path, :html => {:class => 'form-horizontal spud_banner_form', :target => 'spud_banners_upload_target'} do |f| %>

  <%= error_messages_for(f.object) %>

  <fieldset>
    <div class="control-group">
      <%= f.label :link_to, 'Link to', :class => 'control-label' %>
      <div class="controls">
        <%= f.text_field :link_to %>
      </div>
    </div>
    <div class="control-group">
      <%= f.label :link_target, 'Open Link in', :class => 'control-label' %>
      <div class="controls">
        <%= f.select :link_target, options_for_select([
          ['Same Window', '_self'],
          ['New Window', '_blank']
        ], @banner.link_target) %>
      </div>
    </div>
    <div class="control-group">
      <%= f.label :title, 'Image Title', :class => 'control-label' %>
      <div class="controls">
        <%= f.text_field :title %>
      </div>
    </div>
    <div class="control-group">
      <%= f.label :alt, 'Alt Text', :class => 'control-label' %>
      <div class="controls">
        <%= f.text_field :alt %>
      </div>
    </div>
    <div class="control-group">
      <%= f.label :banner, 'Banner', :class => 'control-label' %>
      <div class="controls">
        <%= f.file_field :banner %>
      </div>
    </div>
  </fieldset>

  <div class="progress progress-striped active spud_banner_upload_progress">
    <div class="bar"></div>
  </div>

<% end %>

<iframe id="spud_banners_upload_target" name="spud_banners_upload_target" style="display:none;"></iframe>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spud_banners-1.0.0.rc1 app/views/spud/admin/banners/_form.html.erb
spud_banners-0.9.3 app/views/spud/admin/banners/_form.html.erb
spud_banners-0.9.2 app/views/spud/admin/banners/_form.html.erb
spud_banners-0.9.1.1 app/views/spud/admin/banners/_form.html.erb
spud_banners-0.9.1 app/views/spud/admin/banners/_form.html.erb
spud_banners-0.9.0.2 app/views/spud/admin/banners/_form.html.erb
spud_banners-0.9.0.1 app/views/spud/admin/banners/_form.html.erb
spud_banners-0.9.0 app/views/spud/admin/banners/_form.html.erb
spud_banners-0.0.1 app/views/spud/admin/banners/_form.html.erb