Commit 14835486e96a189eb202851c4e16d8916212f082

Authored by nbm
1 parent 1ced8460

Inform the user that the document in question is immutable.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5674 c91229c3-7414-0410-bfa2-8a42b809f60b
templates/kt3/view_document.smarty
@@ -17,7 +17,6 @@ this is incorrect, or you no longer need to make changes to it, please cancel th @@ -17,7 +17,6 @@ this is incorrect, or you no longer need to make changes to it, please cancel th
17 <p>{i18n arg_checkoutuser=$checkout_user}This document is currently checked out by #checkoutuser#, but you 17 <p>{i18n arg_checkoutuser=$checkout_user}This document is currently checked out by #checkoutuser#, but you
18 have sufficient priviledges to cancel their checkout.{/i18n}</p> 18 have sufficient priviledges to cancel their checkout.{/i18n}</p>
19 </div> 19 </div>
20 -  
21 {else} 20 {else}
22 <div class="ktInfo"> 21 <div class="ktInfo">
23 <p>{i18n arg_checkoutuser=$checkout_user}This document is currently checked out by #checkoutuser#. You cannot make 22 <p>{i18n arg_checkoutuser=$checkout_user}This document is currently checked out by #checkoutuser#. You cannot make
@@ -27,6 +26,20 @@ contact your KnowledgeTree Administrator.{/i18n}&lt;/p&gt; @@ -27,6 +26,20 @@ contact your KnowledgeTree Administrator.{/i18n}&lt;/p&gt;
27 {/if} 26 {/if}
28 {/if} 27 {/if}
29 {/if} 28 {/if}
  29 +
  30 +{if ($document->getImmutable() == true)}
  31 +<div class="ktInfo">
  32 +<p>{i18n}This document is immutable. No further content changes can be
  33 +made to this document, and only administrators (in administration mode)
  34 +can make changes to the metadata or can move or delete it.{/i18n}
  35 +{if 1}
  36 + {i18n}If you require assistance from an administrator to perform one of
  37 +these tasks, use the Request Assistance action.{/i18n}
  38 +{/if}
  39 +</p>
  40 +</div>
  41 +{/if}
  42 +
30 {foreach item=oFieldset from=$fieldsets} 43 {foreach item=oFieldset from=$fieldsets}
31 {$oFieldset->render($document_data)} 44 {$oFieldset->render($document_data)}
32 {/foreach} 45 {/foreach}