Sha256: 235de4df43a422e0902caf0fc25c8ca12b7d79c8cc1c2b030205b49985ce94fe

Contents?: true

Size: 819 Bytes

Versions: 2

Compression:

Stored size: 819 Bytes

Contents

<!-- HACK: empty line must be here for split_form_for to work properly -->
<fieldset>
  <div class="col">
    <%= hidden_field_tag 'cl', Article.locale %>

    <%= f.text_field :title, class: 'big', label: true %>

      
    <label for="link_body">Enter the link address</label>
    <%= f.text_field :body, class: 'big' %>

    <%= f.label :draft, "Save as Draft?" %>
    <%= f.check_box :draft?, id: 'toggle_draft', label: "Yes, save this link as a draft" %>

    <p class="show-if-previous-unchecked">
      <%= f.label :published_at, "Publish on this date" %>
      <%= f.datetime_select :published_at,
        start_year: (@link.published_at || Time.zone.now).year-1,
        end_year: (Time.zone.now.year + 5),
        order: [:month, :day, :year] %>
    </p>
  </div>
</fieldset>

<%= render 'options', f: f %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adva-0.2.1 app/views/admin/page/links/_form.html.erb
adva-0.2.0 app/views/admin/page/links/_form.html.erb