<commit_before><% @page_title = t(:propose_campaign) %>


<div class="row-fluid">
  
  <%= render :partial => 'partials/diferencial' %>
  <%= render :partial => 'partials/logo' %>

<div class="span7">

<div id="page-wrapper">
  <div id="create-campaigns">
    <div id="create-campaign-form" class="form-stacked">
      <h2><%= @page_title %></h2>
<%# si no obtiene el @sub_oigame lo hace al general (/campaigns) %>

<% if params[:action] == "new" %>
  <% if @sub_oigame %>
    <% url = url_for(:action=> "create", :controller=> "campaigns", :sub_oigame_id => @sub_oigame) %>
  <% else %>
    <% url = url_for(:action=> "create", :controller=> "campaigns") %>
  <% end %>
<% end %>

<% if params[:action] == "edit" %>
  <% if @sub_oigame %>
    <% url = sub_oigame_campaign_path(@sub_oigame, @campaign) %>
  <% else %>
    <% url = campaign_path(@campaign) %>
  <% end %>
<% end %>

<%= form_for @campaign, :url => campaign_wizard_path, :method => :put do |f| %>
  <fieldset>
    <legend><%= t(:please_fill_the_form) %></legend>
    <div class="control-group">
      <%= f.label :image, t(:image_of_campaign), :class => 'control-label' %>
      <div class="controls">
        <%= f.file_field :image, :class => 'input-file' %>
        <p><%= I18n.t(:minimal_size) %></p>
        <% unless @campaign.errors[:image].blank? %>
          <span class="error_message"><%= @campaign.errors[:image].to_sentence %></span>
        <% end %>
      </div>
    </div>
    <div class="control-group">
      <%= f.label :intro, t(:intro_of_campaign), :class => 'control-label' %>
      <div class="controls">
      <div class="wmd-panel">
        <div id="wmd-button-bar"></div>
        <%= f.text_area :intro, :class => 'wmd-input', :id => 'wmd-input', :rows => 6, :class => 'span6', :required => true, :placeholder => t(:intro_of_campaign_help), :maxlength => 500 %>
        <p><%= I18n.t(:intro_limit) %></p>
      </div>
      <a href="#" class="show_markdown_help"><%= I18n.t(:markdown_help_show) %></a>
      <div class="markdown_help" style="display:none;">
        <%= render :partial => 'campaigns/markdown_help' %>
      </div>
      <% unless @campaign.errors[:intro].blank? %>
        <span class="error_message"><%= @campaign.errors[:intro].to_sentence %></span>
      <% end %>
    </div>
  </div>
    <div id="control-group">
      <div class="controls">
        <%= f.submit t('oigame.wizard.next_step'), :class => 'btn btn-inverse' %>
      </div>
    </div><commit_msg>#127 buttons no valid<commit_after><% @page_title = t(:propose_campaign) %>


<div class="row-fluid">
  
  <%= render :partial => 'partials/diferencial' %>
  <%= render :partial => 'partials/logo' %>

<div class="span7">

<div id="page-wrapper">
  <div id="create-campaigns">
    <div id="create-campaign-form" class="form-stacked">
      <h2><%= @page_title %></h2>
<%# si no obtiene el @sub_oigame lo hace al general (/campaigns) %>

<% if params[:action] == "new" %>
  <% if @sub_oigame %>
    <% url = url_for(:action=> "create", :controller=> "campaigns", :sub_oigame_id => @sub_oigame) %>
  <% else %>
    <% url = url_for(:action=> "create", :controller=> "campaigns") %>
  <% end %>
<% end %>

<% if params[:action] == "edit" %>
  <% if @sub_oigame %>
    <% url = sub_oigame_campaign_path(@sub_oigame, @campaign) %>
  <% else %>
    <% url = campaign_path(@campaign) %>
  <% end %>
<% end %>

<%= form_for @campaign, :url => campaign_wizard_path, :method => :put do |f| %>
  <fieldset>
    <legend><%= t(:please_fill_the_form) %></legend>
    <div class="control-group">
      <%= f.label :image, t(:image_of_campaign), :class => 'control-label' %>
      <div class="controls">
        <%= f.file_field :image, :class => 'input-file' %>
        <p><%= I18n.t(:minimal_size) %></p>
        <% unless @campaign.errors[:image].blank? %>
          <span class="error_message"><%= @campaign.errors[:image].to_sentence %></span>
        <% end %>
      </div>
    </div>
    <div class="control-group">
      <%= f.label :intro, t(:intro_of_campaign), :class => 'control-label' %>
      <div class="controls">
      <div class="wmd-panel">
        <div id="wmd-button-bar"></div>
        <%= f.text_area :intro, :class => 'wmd-input', :rows => 6, :class => 'span6', :required => true, :placeholder => t(:intro_of_campaign_help), :maxlength => 500 %>
        <p><%= I18n.t(:intro_limit) %></p>
      </div>
      <a href="#" class="show_markdown_help"><%= I18n.t(:markdown_help_show) %></a>
      <div class="markdown_help" style="display:none;">
        <%= render :partial => 'campaigns/markdown_help' %>
      </div>
      <% unless @campaign.errors[:intro].blank? %>
        <span class="error_message"><%= @campaign.errors[:intro].to_sentence %></span>
      <% end %>
    </div>
  </div>
    <div id="control-group">
      <div class="controls">
        <%= f.submit t('oigame.wizard.next_step'), :class => 'btn btn-inverse' %>
      </div>
    </div>
{'fraction_non_alphanumeric': 0.22636916835699797, 'fraction_numerical': 0.006288032454361055, 'mean_word_length': 3.37145390070922, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 192, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '903490', 'n_tokens_mistral': 1953, 'n_tokens_neox': 1732, 'n_words': 336}