Commit 6d9f57f2 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_credential: make credential recovery dialog also work with erp5_web_renderjs_ui_minimal_theme

parent 9f1b0df3
...@@ -186,7 +186,9 @@ ...@@ -186,7 +186,9 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>unicode</string> </key> <key> <string>unicode</string> </key>
...@@ -220,24 +222,18 @@ ...@@ -220,24 +222,18 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<script>\n <script>\n
$(function(){\n function toggleRecoveryField () {\n
function toggleRecoveryField() {\n if (document.querySelector("input[name=\'field_your_choice\']:checked").value == \'username\') {\n
if ($("input[name=\'field_your_choice\']:checked").val() == \'username\') {\n document.querySelector("div.field input[name=\'field_your_reference\']").parentElement.parentElement.classList.add("hidden", "ui-screen-hidden");\n
$("input[name=\'field_your_reference\']").parent().parent().addClass("hidden");\n document.querySelector("div.field input[name=\'field_your_default_email_text\']").parentElement.parentElement.classList.remove("hidden", "ui-screen-hidden");\n
$("input[name=\'field_your_reference\']").addClass("hidden");\n
$("input[name=\'field_your_default_email_text\']").removeClass("hidden");\n
$("input[name=\'field_your_default_email_text\']").parent().parent().removeClass("hidden");\n
}\n }\n
else{\n else {\n
$("input[name=\'field_your_reference\']").removeClass("hidden");\n document.querySelector("div.field input[name=\'field_your_reference\']").parentElement.parentElement.classList.remove("hidden", "ui-screen-hidden");\n
$("input[name=\'field_your_reference\']").parent().parent().removeClass("hidden");\n document.querySelector("div.field input[name=\'field_your_default_email_text\']").parentElement.parentElement.classList.add("hidden", "ui-screen-hidden");\n
$("input[name=\'field_your_default_email_text\']").addClass("hidden");\n
$("input[name=\'field_your_default_email_text\']").parent().parent().addClass("hidden");\n
}\n }\n
}\n }\n
$("input[name=\'field_your_choice\']").change(function(){toggleRecoveryField()});\n document.querySelectorAll("input[name=\'field_your_choice\']").forEach(function (element) {element.addEventListener("change", toggleRecoveryField)});\n
toggleRecoveryField();\n toggleRecoveryField();\n
});\n
</script> </script>
]]></string> </value> ]]></string> </value>
...@@ -312,4 +308,17 @@ toggleRecoveryField();\n ...@@ -312,4 +308,17 @@ toggleRecoveryField();\n
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: ""</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>css_class</string>
<string>required</string> <string>required</string>
</list> </list>
</value> </value>
...@@ -53,10 +52,6 @@ ...@@ -53,10 +52,6 @@
<key> <string>tales</string> </key> <key> <string>tales</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -82,10 +77,6 @@ ...@@ -82,10 +77,6 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>css_class</string> </key>
<value> <string>hidden</string> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_dialog_mode_required_default_email_text</string> </value> <value> <string>my_dialog_mode_required_default_email_text</string> </value>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment