Sha256: 27dafa280905cd283da641499d000085b023dd5fee1c6309beda289c0868d6a7

Contents?: true

Size: 1.87 KB

Versions: 8

Compression:

Stored size: 1.87 KB

Contents

<%= kithe_form_for([:admin, document], :html=> { novalidate: true, class: 'edit-document edit', id: dom_id(document), data: { persisted: document.persisted? }}) do |f| %>

  <div class="row">
    <div class="col-md-12">
      <div class="admin-header sticky-top d-flex justify-content-between p-2 mb-4 mt-1 bg-light border">

        <div class="mr-2">
          <h1 class="h5">
            <% if @document.persisted? %>
              <span id="<%=@document.friendlier_id %>">
              <%= render 'document_bookmark', document: @document %>
              <%= truncate(@document.title, length: 80) %>
              <%= publication_state_badge(@document) %>
              <p class='mb-0'>
                <small>Last updated <%= time_ago_in_words(@document.updated_at) %> ago. <%= link_to 'Versions', admin_document_versions_path(@document) %></small></p>
            <% else %>
              New document
            <% end %>
          </h1>
        </div>

        <div class="form-actions">
          <%= link_to 'Cancel', admin_documents_url, class: "btn btn-outline-primary" %>
          <%= f.button :submit, class: "btn btn-primary" %>
        </div>
      </div>

      <% if @document.errors.any? %>
        <div class="kithe-form-errors-top alert alert-danger mb-4" role="alert"">
          <h2 class="h4" class="alert-heading"><%= pluralize(document.errors.count, "error") %> prohibited this document from being saved</h2>
          <ol class="mb-0">
            <% @document.errors.full_messages.each do |msg| %>
              <li><%= msg %></li>
            <% end %>
          </ol>
        </div>
      <% end %>

      <div class="row">
        <div id="form-fields" class="col-md-8">
          <%= render "document_fields", f: f %>
        </div>
        <div id="form-navigation" class="col-md-4">
          <%= render "form_nav" %>
        </div>
      </div>
    </div>
  </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
geoblacklight_admin-0.4.1 app/views/admin/documents/_form.html.erb
geoblacklight_admin-0.4.0 app/views/admin/documents/_form.html.erb
geoblacklight_admin-0.3.2 app/views/admin/documents/_form.html.erb
geoblacklight_admin-0.3.1 app/views/admin/documents/_form.html.erb
geoblacklight_admin-0.3.0 app/views/admin/documents/_form.html.erb
geoblacklight_admin-0.2.1 app/views/admin/documents/_form.html.erb
geoblacklight_admin-0.1.0 app/views/admin/documents/_form.html.erb
geoblacklight_admin-0.0.1 app/views/admin/documents/_form.html.erb