Commit 63932b55b7a370fe7076dce8e7c7ace842b98ebd

Authored by bshuttle
1 parent af995e2a

improve the flow around conditional md.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5219 c91229c3-7414-0410-bfa2-8a42b809f60b
templates/ktcore/metadata/conditional/manageConditional.smarty
@@ -15,7 +15,7 @@ how the user was allowed to select the specific street (given another field).{/i @@ -15,7 +15,7 @@ how the user was allowed to select the specific street (given another field).{/i
15 {* don't show warnings until the basics are done. *} 15 {* don't show warnings until the basics are done. *}
16 16
17 {if ($oMasterField && empty($free_fields))} 17 {if ($oMasterField && empty($free_fields))}
18 -{if $sIncomplete || !$oFieldset->getIsComplete()} 18 +{if $sIncomplete}
19 <div class="ktInfo"> 19 <div class="ktInfo">
20 <p>{i18n}This conditional fieldset is marked such that it 20 <p>{i18n}This conditional fieldset is marked such that it
21 cannot be used. This happens when the fieldset has been edited and has 21 cannot be used. This happens when the fieldset has been edited and has
@@ -29,16 +29,16 @@ check to see if the fieldset is usable by the user.{/i18n}&lt;/p&gt; @@ -29,16 +29,16 @@ check to see if the fieldset is usable by the user.{/i18n}&lt;/p&gt;
29 <p>{i18n}This error prevents this fieldset from being set 29 <p>{i18n}This error prevents this fieldset from being set
30 to complete{/i18n}: {$sIncomplete|escape}</p> 30 to complete{/i18n}: {$sIncomplete|escape}</p>
31 </div> 31 </div>
32 -{else} 32 +{/if}
  33 +{/if}
33 34
34 -{i18n}Try to set to complete{/i18n}: 35 +<h2>{i18n}View Overview{/i18n}</h2>
35 <form action="{$smarty.server.PHP_SELF}" method="POST"> 36 <form action="{$smarty.server.PHP_SELF}" method="POST">
36 -<input type="hidden" name="action" value="checkComplete" />  
37 -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" />  
38 -<input type="submit" name="submit" value="{i18n}Check completeness{/i18n}" /> 37 +<input type="hidden" name="action" value="viewOverview" />
  38 +<input type="hidden" name="fieldset_id" value="{$oFieldset->getId()}" />
  39 +<input type="submit" name="submit" value="{i18n}View Overview{/i18n}" />
39 </form> 40 </form>
40 -{/if}  
41 -{/if} 41 +
42 42
43 <h2>{i18n}Conditional type{/i18n}</h2> 43 <h2>{i18n}Conditional type{/i18n}</h2>
44 44
@@ -163,3 +163,12 @@ $this-&gt;assign(&quot;oChildField&quot;, DocumentField::get($this-&gt;_tpl_vars[&#39;aRow&#39;][&#39;child_ @@ -163,3 +163,12 @@ $this-&gt;assign(&quot;oChildField&quot;, DocumentField::get($this-&gt;_tpl_vars[&#39;aRow&#39;][&#39;child_
163 {/if} 163 {/if}
164 164
165 {/if} 165 {/if}
  166 +
  167 +
  168 +
  169 +<h2>{i18n}Rename Behaviours{/i18n}</h2>
  170 +<form action="{$smarty.server.PHP_SELF}" method="POST">
  171 +<input type="hidden" name="action" value="renameBehaviours" />
  172 +<input type="hidden" name="fieldset_id" value="{$oFieldset->getId()}" />
  173 +<input type="submit" name="submit" value="{i18n}Rename Behaviours{/i18n}" />
  174 +</form>
166 \ No newline at end of file 175 \ No newline at end of file