]> git.agnieray.net Git - galette.git/blobdiff - galette/templates/default/editer_champ.tpl
Add information to display on dynamic fields; closes #1190
[galette.git] / galette / templates / default / editer_champ.tpl
index 41fbeb54b0d00b7991d5d4a1fba1c0eb87b6272c..65b2a6c70057893699ec8f0652fb255c599f727b 100644 (file)
                 <br/><span class="exemple">{_T string="Choice list (one entry per line)."}</span>
             </p>
 {/if}
+            <p>
+                <label for="field_information" class="bline tooltip">{_T string="Information:"}</label>
+                <span class="tip">{_T string="Extra information displayed along with dynamic field."}</span>
+                <textarea name="field_information" id="field_information" cols="20" rows="6">{$df->getInformation()}</textarea>
+            </p>
         </fieldset>
             <div class="button-container">
                 <button type="submit" class="action">
     </form>
 {/if}
 {/block}
+
+{block name="javascripts"}
+    <script>
+        $('#field_information').summernote({
+            lang: '{$i18n->getID()|replace:'_':'-'}',
+            height: 240,
+            toolbar: [
+                ['style', ['style']],
+                ['font', ['bold', 'italic', 'strikethrough', 'clear']],
+                ['para', ['ul', 'ol', 'paragraph']],
+                ['insert', ['link', 'picture']],
+                ['view', ['codeview', 'help']]
+            ],
+            styleTags: [
+                'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'
+            ]
+        });
+        $('#field_information').summernote('focus');
+
+    </script>
+{/block}