- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
<% form_tag(advertiser_creatives_path(@advertiser), :method=>'post' ) do %>
<% content_tag :table, :class => "form-tabular" do %>
<% content_tag :thead do %>
<% content_tag :tr do %>
<% tag :th, :class=>'hide'%>
<% content_tag :th do %>
Concept (optional)
<%end%>
<% content_tag :th do %>
Ad Tag
<%end%>
<% content_tag :th do %>
Click-Through URL
<%end%>
<th/>
<%end%>
<%end%>
<% content_tag :tbody, :id=>'creative_sub_forms' do %>
<% creatives.each_with_index do |creative, index|
next unless creative.new_record?
%>
<% unless creative.errors.empty? %>
<tr class='nowrap'>
<td colspan='3'>
Error:
<% creative.errors.full_messages.each do |msg| %>
<%= msg %><br/>
<%end%>
</td>
</tr>
<%end%>
<%=render :partial => 'creative_fields', :locals => {:index => index, :creative => creative}%>
<%end%>
<%end%>
<tr>
<td colspan='3'><%= link_to_add_creative_fields "Add row" %></td>
</tr>
<%end%>
<br/>
<br/>
<%= submit_tag 'Continue', :class=>'button' %>
<%end%>
Товарищи, заставляйте нубой учить HTML. Ну, или HAML.