LSimport : also display error on other attributes
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 30 Jul 2015 16:08:45 +0000 (18:08 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 30 Jul 2015 16:08:45 +0000 (18:08 +0200)
public_html/templates/default/import.tpl

index bcf2ee9..6369144 100644 (file)
     {/if}
   </li>
 {/foreach}
+{foreach $error.errors.attrs as $a => $es}
+  {if !in_array($a,$error.data)}
+  <li>
+    <strong>{$a} :</strong>
+    <ul class='LSimport_attr_errors'>
+      {foreach $es as $e}
+        <li>{$e}</li>
+      {/foreach}
+    </ul>
+  </li>
+  {/if}
+{/foreach}
 </ul>
 </div>
 {/foreach}