Sha256: 4b2bd84b4f738f8f1c9d1050ceb17b31cae0ab06a79e9fe7f454b2f4180a0fde
Contents?: true
Size: 1.67 KB
Versions: 1
Compression:
Stored size: 1.67 KB
Contents
<%= form_for([:admin, document], data: { style_form_errors: true }) do |form| %> <% if document.errors.any? %> <div class="alert alert-danger" role="alert"> <h4><%= pluralize(document.errors.count, 'error') %> prohibited this document from being saved:</h4> <ul> <% document.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> <% end %> <div class="form-group row"> <div class="col-2 "> <%= form.label :slug, class: 'col-form-label' %> </div> <div class="col-10"> <%= form.text_field :slug, class: 'form-control', placeholder: 'terms-and-conditions' %> <small class="form-text text-muted"><%= "Slugs are used to create your documents url. For example: https://www.website.com#{attorney_mounted_path}/terms-and-conditions" %></small> </div> </div> <br> <div class="form-group row"> <div class="col-2 "> <%= form.label :published, 'Publish', class: 'col-form-label' %> </div> <div class="col-10"> <%= form.check_box :published %> <small class="form-text text-muted"><%= "The document won't be visible until you publish it" %></small> </div> </div> <br> <div class="form-group row"> <%= form.label :content, class: 'col-2 col-form-label' %> <div class="col-10"> <%= form.text_area :content, class: 'form-control', data: { 'rich-editor' => true } %> </div> </div> <div class="actions"> <%= form.submit class: 'btn btn-primary' %> <%= link_to 'Cancel', admin_documents_path, class: 'btn btn-secondary' %> </div> <% end %> <%= javascript_include_tag 'https://cdn.ckeditor.com/4.8.0/standard/ckeditor.js' %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
attorney-1.0.0 | app/views/attorney/admin/documents/_form.html.erb |