mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
e4bc553521
* Add 2.0.0 changelog * Update DMSInterface and DMSDocumentInterface removing *page and adding getDocumentSetsByPage to DMSInterface * Update use documentation and update unit tests This commit changes the relationship from Pages has_many Documents to Pages has_many DocumentSets which are many_many to Documents. The upload field has been upated to attach documents to a set instead of a page, the tests updated and the DMSInterface and DMSDocumentInterface updated to be less relevant to pages and more relevant to document sets.
44 lines
1.9 KiB
Scheme
44 lines
1.9 KiB
Scheme
<div id="document" class="ss-add field treedropdown searchable">
|
|
<div class="document-add-existing <% if $useFieldContext %>field<% else %>link-editor-context<% end_if %>">
|
|
<% if $useFieldContext %><h3><% else %><div><% end_if %>
|
|
<span class="step-label">
|
|
<% if $useFieldContext %>
|
|
<span class="flyout">1</span><span class="arrow"></span>
|
|
<strong class="title"><%t DMSDocumentAddExistingField.LINKADOCUMENT "Link a Document" %></strong>
|
|
<% end_if %>
|
|
</span>
|
|
<% if $useFieldContext %></h3><% else %></div><% end_if %>
|
|
|
|
<% if not $useFieldContext %>
|
|
<label><%t DMSDocumentAddExistingField.LINKADOCUMENT "Link a Document" %></label>
|
|
<div class="middleColumn">
|
|
<% end_if %>
|
|
<input class="document-autocomplete text" type="text" placeholder="<%t DMSDocumentAddExistingField.AUTOCOMPLETE "Search by ID or filename" %>" />
|
|
$fieldByName(PageSelector)
|
|
<div class="document-list"></div>
|
|
<% if not $useFieldContext %>
|
|
</div>
|
|
<% end_if %>
|
|
</div>
|
|
|
|
<div class="ss-assetuploadfield <% if useFieldContext %>field<% else %>link-editor-context<% end_if %>">
|
|
<div class="step4">
|
|
<span class="step-label">
|
|
<% if useFieldContext %>
|
|
<span class="flyout">2</span><span class="arrow"></span>
|
|
<strong class="title"><%t DMSDocumentAddExistingField.EDITDOCUMENTDETAILS "Edit Document Details" %></strong>
|
|
<% else %>
|
|
<label><%t DMSDocumentAddExistingField.SELECTED "Selected Document" %></label>
|
|
<% end_if %>
|
|
</span>
|
|
</div>
|
|
<% if not $useFieldContext %>
|
|
<div class="middleColumn">
|
|
<% end_if %>
|
|
<ul class="files ss-uploadfield-files ss-add-files"></ul>
|
|
<% if not $useFieldContext %>
|
|
</div>
|
|
<% end_if %>
|
|
</div>
|
|
</div>
|