Author: benj
Date: Thu Oct 13 14:43:03 2016
New Revision: 1749

URL: http://svn.gna.org/viewcvs/gdtc?rev=1749&view=rev
Log:
Add utility buttons


Modified:
    trunk/gdtc/templates/smarty/admin/list_mail_template.tpl

Modified: trunk/gdtc/templates/smarty/admin/list_mail_template.tpl
URL: 
http://svn.gna.org/viewcvs/gdtc/trunk/gdtc/templates/smarty/admin/list_mail_template.tpl?rev=1749&r1=1748&r2=1749&view=diff
==============================================================================
--- trunk/gdtc/templates/smarty/admin/list_mail_template.tpl    (original)
+++ trunk/gdtc/templates/smarty/admin/list_mail_template.tpl    Thu Oct 13 
14:43:03 2016
@@ -3,6 +3,20 @@
 <p/>
 
 <div style="overflow: auto; height: 200px; border: 1px solid #c4a000; padding: 
2px;">
+
+
+<fieldset>
+  <legend>Afficher: </legend>
+  <span class="button">
+    <input checked="true" type="checkbox" name="check-1" id="check-1">
+    <label for="check-1">Mails système</label>
+  </span>
+  <span class="button">
+    <input checked="true" type="checkbox" name="check-2" id="check-2">
+    <label for="check-2">Mails users</label>
+  </span>
+</fieldset>
+
 <table width="100%" cellspacing="0" border="0">
 {section name=i loop=$data}
 <tr id="list_{$data[i].mail_template_id}" 
onmouseover="change_color('list_{$data[i].mail_template_id}');" 
style="background: {cycle values="white,palegoldenrod"};">
@@ -132,7 +146,12 @@
 <script>
 {literal}
 $(document).tooltip();
+$(".button").button();
+$("#check-1").change(function(){$("tr td 
img[class='disabled']").parent().parent().parent().toggle($(this).prop('checked'))});
+$("#check-2").change(function(){$("tr td[width=24] div 
a[onclick]").parent().parent().parent().toggle($(this).prop('checked'))});
 {/literal}
 </script>
 
+
+
 {include file="admin/footer.tpl" template="$template"}


_______________________________________________
Gdtc-commits mailing list
Gdtc-commits@gna.org
https://mail.gna.org/listinfo/gdtc-commits

Reply via email to