Sha256: 9ab3935cee669555186d36a06bec8006d677e6c4b565f8306b33896ee1bfa2fc

Contents?: true

Size: 939 Bytes

Versions: 2

Compression:

Stored size: 939 Bytes

Contents

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

    <%= f.label :version %>
    <%= f.text_field :version %>

    <!--
    <%= f.label :published_at %>
    <%= f.text_field :published_at %>
    -->

    <p>Terms of Service</p>

      <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' %>
        <% end %>
      </div>

    <%= f.submit "Create and Save", class: 'btn' %>
  <% 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

2 entries across 2 versions & 1 rubygems

Version Path
ucpengine-0.0.4 app/views/ucpengine/entries/_form.html.erb
ucpengine-0.0.3 app/views/ucpengine/entries/_form.html.erb