-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #226 from Evarisk/7.7.5
7.7.5
- Loading branch information
Showing
12 changed files
with
4,289 additions
and
4,007 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
/** | ||
* Vue permettant d'exporter un modèle DigiRisk. | ||
* | ||
* @author Evarisk <[email protected]> | ||
* @since 6.1.9 | ||
* @version 6.5.0 | ||
* @copyright 2015-2018 Evarisk | ||
* @package DigiRisk | ||
*/ | ||
|
||
namespace digi; | ||
|
||
if ( ! defined( 'ABSPATH' ) ) { | ||
exit; | ||
} ?> | ||
|
||
<form action="<?php echo esc_attr( admin_url( 'admin-ajax.php' ) ); ?>" method="POST" id="digi-export-global" > | ||
<h3><?php esc_html_e( 'Exporter l\'arborescence, les risques et les signalisations', 'digirisk' ); ?></h3> | ||
|
||
<div class="content"> | ||
<input type="hidden" name="action" value="digi_export_global_data" /> | ||
<?php wp_nonce_field( 'digi_export_global_data' ); ?> | ||
<input type="hidden" name="element_id" value="<?php echo esc_attr( $element_id ); ?>" /> | ||
|
||
<span class="digi-export-explanation" ><?php esc_html_e( 'Réalisez une exportation de votre arborescence, de vos risques et de vos signalisations DigiRisk. Vous pouvez par la suite les importer dans DigiriskDolibarr.', 'digirisk' ); ?></span> | ||
|
||
<ul class="hidden"> | ||
<li> | ||
<label><input type="checkbox" name="type_to_export[]" value="<?php echo esc_attr( Group_Class::g()->get_type() ); ?>" checked="true" /><?php esc_html_e( 'Groupements', 'digirisk' ); ?></label> | ||
</li> | ||
<li> | ||
<label><input type="checkbox" name="type_to_export[]" value="<?php echo esc_attr( Workunit_Class::g()->get_type() ); ?>" checked="true" /><?php esc_html_e( 'Unités de travail', 'digirisk' ); ?></label> | ||
</li> | ||
<li> | ||
<label><input type="checkbox" name="type_to_export[]" value="<?php echo esc_attr( Risk_Class::g()->get_type() ); ?>" checked="true" /><?php esc_html_e( 'Risques', 'digirisk' ); ?></label> | ||
</li> | ||
<li> | ||
<label><input type="checkbox" name="type_to_export[]" value="<?php echo esc_attr( Recommendation::g()->get_type() ); ?>" checked="true" /><?php esc_html_e( 'Signalisations', 'digirisk' ); ?></label> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<button class="button blue" id="digi-export-button" ><?php esc_html_e( 'Exporter mes données', 'digirisk' ); ?></button> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
/** | ||
* Vue permettant d'exporter un modèle DigiRisk. | ||
* | ||
* @author Evarisk <[email protected]> | ||
* @since 6.1.9 | ||
* @version 6.5.0 | ||
* @copyright 2015-2018 Evarisk | ||
* @package DigiRisk | ||
*/ | ||
|
||
namespace digi; | ||
|
||
if ( ! defined( 'ABSPATH' ) ) { | ||
exit; | ||
} ?> | ||
|
||
<form action="<?php echo esc_attr( admin_url( 'admin-ajax.php' ) ); ?>" method="POST" id="digi-export-risksigns" > | ||
<h3><?php esc_html_e( 'Exporter les signalisations', 'digirisk' ); ?></h3> | ||
|
||
<div class="content"> | ||
<input type="hidden" name="action" value="digi_export_risksigns_data" /> | ||
<?php wp_nonce_field( 'digi_export_risksigns_data' ); ?> | ||
<input type="hidden" name="element_id" value="<?php echo esc_attr( $element_id ); ?>" /> | ||
|
||
<span class="digi-export-explanation" ><?php esc_html_e( 'Réalisez une exportation de vos signalisations DigiRisk. Vous pouvez par la suite les importer dans DigiriskDolibarr.', 'digirisk' ); ?></span> | ||
|
||
<ul class="hidden"> | ||
<li> | ||
<label><input type="checkbox" name="type_to_export[]" value="<?php echo esc_attr( Recommendation::g()->get_type() ); ?>" checked="true" /><?php esc_html_e( 'Signalisations', 'digirisk' ); ?></label> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<button class="button blue" id="digi-export-button" ><?php esc_html_e( 'Exporter mes données', 'digirisk' ); ?></button> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters