Sha256: 5ff4c31bd7ed3ba9da5f799044e72b0339696d1fe4577ce0fd020cd2cf36f0fd

Contents?: true

Size: 1.04 KB

Versions: 5

Compression:

Stored size: 1.04 KB

Contents

<div class="row tos-form">
  <div class="col s6">
<%= simple_form_for(@entry, as: :entry, url: @entry.persisted? ? content_entry_path(@entry) : entries_path) do |f| %>
    <%= f.hidden_field :type, value: @entry.type %>

    <%= f.datetime_field :version %>
    <%= f.input :service_type, collection: ['Terms of Use', 'Third Party Terms of Use', 'Privacy Policy', 'GLBA Privacy Policy'], prompt: 'Select Service Type' %>
    <!--
    <%= f.label :published_at %>
    <%= f.text_field :published_at %>
    -->
      <div class="input-field col s12">
        <% @entry.class.content_attributes.each do |attr_name, attr_type| %>
          <%= f.text_area attr_name, as: attr_type, class: 'materialize-textarea', placeholder: 'New Service Agreement' %>
        <% end %>
      </div>

    <%= f.button :submit %>
  <% end %>
</div>
<div class="col s5">
  <p>Preview</p>
<div id="live-preview" data-preview-url="<%= preview_path %>"></div>
</div>
</div>

<script type="text/javascript">
  $('#textarea1').val('New Text');
  $('#textarea1').trigger('autoresize');
</script>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ucpengine-0.1.1 app/views/ucpengine/entries/_form.html.erb
ucpengine-0.1.0 app/views/ucpengine/entries/_form.html.erb
ucpengine-0.0.9 app/views/ucpengine/entries/_form.html.erb
ucpengine-0.0.8 app/views/ucpengine/entries/_form.html.erb
ucpengine-0.0.7 app/views/ucpengine/entries/_form.html.erb