Sha256: 2f82567418943761ac62d5f01c63266e0e6dc03178f71e0db11379737dbdda15

Contents?: true

Size: 1.12 KB

Versions: 6

Compression:

Stored size: 1.12 KB

Contents

<h1>Banner <%= @banner.name %> <small> - <%= link_to('Duplicate banner', new_banner_url(:duplicate_id => @banner.id)) %></small></h1>

<% unless @banner.target_view_count.nil? %>
  <strong>Current view count:</strong> <%= @banner.running_view_count %> / <%= @banner.target_view_count %>
  &nbsp;&nbsp;|&nbsp;&nbsp;
<% end %>

<br/>

Test banner in url :

<input type="text" name="test_url" id="test_url" style="width: 500px;" value="<%= AdvertSelector.default_banner_test_url + "advert_selector_force=#{@banner.id}&advert_selector_force_stamp=#{@banner.start_time.to_i}" %>">
<button class="btn btn-info" type="button" onclick="window.open(document.getElementById('test_url').value)">Test</button>

<hr/>

<%= render 'form' %>


<hr/>

<%= simple_form_for(@banner, :url => update_running_view_count_banner_url(@banner), :html => {:class => 'form-inline'}) do |f| %>

  <strong>Running view count:</strong>
  <input class="numeric integer optional" id="banner_running_view_count" name="banner[running_view_count]" step="1" value="<%= @banner.running_view_count %>" type="number">

  <%= f.button :submit, 'Change running view count' %>

<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
advert_selector-3.0.1 app/views/advert_selector/banners/edit.html.erb
advert_selector-3.0.0 app/views/advert_selector/banners/edit.html.erb
advert_selector-2.0.1 app/views/advert_selector/banners/edit.html.erb
advert_selector-2.0.0 app/views/advert_selector/banners/edit.html.erb
advert_selector-1.0.4 app/views/advert_selector/banners/edit.html.erb
advert_selector-1.0.3 app/views/advert_selector/banners/edit.html.erb