Commit 07b52da9 authored by KR Moorhouse's avatar KR Moorhouse

Added secondary template that will show in place of the original if dev mode is disabled.

parent 3ccd259d
Pipeline #2763 passed with stages
in 6 minutes and 42 seconds
......@@ -92,7 +92,7 @@ define( ['views/app/drawer/optionRepeaterOption', 'views/app/drawer/optionRepeat
var importLink = jQuery( this.el ).find( '.nf-open-import-tooltip' );
var jBox = jQuery( importLink ).jBox( 'Tooltip', {
title: '<h3>Please enter your options below:</h3>',
content: jQuery( this.el ).find( '.nf-import-options' ),
content: ( "1" == nfAdmin.devMode ? jQuery( this.el ).find( '.nf-dev-import-options' ) : jQuery( this.el ).find( '.nf-import-options' ) ),
trigger: 'click',
closeOnClick: 'body',
closeButton: 'box',
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -475,7 +475,7 @@
<div class="{{{ data.renderClasses() }}}" {{{ data.renderVisible() }}}>
{{{ data.renderSetting() }}}
<span class="nf-setting-error"></span>
<span class="nf-import-options" style="display:none">
<span class="nf-dev-import-options" style="display:none">
<?php _e( 'Please use the following format', 'ninja-forms' ); ?>:
<br>
<br>
......@@ -493,6 +493,21 @@ Label Three, value-three, 3
<textarea></textarea>
<a href="#" class="nf-button primary nf-import extra"><?php _e( 'Import', 'ninja-forms' ); ?></a>
</span>
<span class="nf-import-options" style="display:none">
<?php _e( 'Please place one label on each line, separated by commas.', 'ninja-forms' ); ?>
<br>
<br>
<em>
Example:
</em>
<pre>
Label One,
Label Two,
Label Three
</pre>
<textarea></textarea>
<a href="#" class="nf-button primary nf-import extra"><?php _e( 'Import', 'ninja-forms' ); ?></a>
</span>
</div>
</script>
......
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