forked from flyve-mdm/glpi-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add twig in method showValueInput policybase add twig in method showValueInput policyboolean add twig in method showValueInput policydeployapp add twig in method showValueInput policydeployfile add twig in method showValueInput policydropdown maquetation in render template Signed-off-by: Luis F. Gonzalez <[email protected]>
- Loading branch information
Showing
9 changed files
with
156 additions
and
50 deletions.
There are no files selected for viewing
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
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,75 @@ | ||
<script type="text/javascript"> | ||
var editorId = "#policy_editor"; | ||
</script> | ||
{% if data.typeTmpl is same as("PluginFlyvemdmFile") %} | ||
<!-- Template Deploy file --> | ||
<div class="plugin_flyvemdm_policy_value"> | ||
<table> | ||
<tbody> | ||
<tr> | ||
<td> | ||
{{ data.dropdown[0]|raw }} | ||
</td> | ||
<td> | ||
{{ __('copy to', 'flyvemdm') }} | ||
</td> | ||
<td> | ||
{{ data.dropdown[1]|raw }} | ||
</td> | ||
<td> | ||
<input type="text" name="value[destination]" value="{{ data.destination }}"> | ||
</td> | ||
<td> | ||
{{ __('Remove when the policy is removed', 'flyvemdm') }} | ||
</td> | ||
<td> | ||
{{ data.dropdown[2]|raw }} | ||
<input type="hidden" name="itemtype" value="{{ data.itemtype }}"> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<script type="text/javascript"> | ||
$(document).find(editorId).dialog("option", "width", 1000); | ||
</script> | ||
{% elseif data.typeTmpl is same as("PluginFlyvemdmPackage") %} | ||
<!-- Template Package --> | ||
<div class="plugin_flyvemdm_policy_value"> | ||
<table> | ||
<tbody> | ||
<tr> | ||
<td> | ||
{{ data.dropdown[0]|raw }} | ||
</td> | ||
<td style="text-align: center;"> | ||
{{ __('copy to', 'flyvemdm') }} | ||
</td> | ||
<td> | ||
{{ data.dropdown[1]|raw }} | ||
<input type="hidden" name="itemtype" value="{{ data.itemtype }}"> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<script type="text/javascript"> | ||
$(document).find(editorId).dialog("option", "width", 500); | ||
</script> | ||
{% elseif data.typeTmpl is same as("PluginFlyvemdmPolicyBoolean") or data.typeTmpl is same as("PluginFlyvemdmPolicyDropdown") %} | ||
<!-- Template Boolean || Dropdown --> | ||
<div class="plugin_flyvemdm_policy_value"> | ||
{{ data.dropdown[0]|raw }} | ||
</div> | ||
<script type="text/javascript"> | ||
$(document).find(editorId).dialog("option", "width", 200); | ||
</script> | ||
{% elseif data.typeTmpl is same as("PluginFlyvemdmPolicyBase") %} | ||
<!-- Template Base --> | ||
<div class="plugin_flyvemdm_policy_value"> | ||
<input name="value" value="{{ data.value }}" > | ||
</div> | ||
<script type="text/javascript"> | ||
$(document).find(editorId).dialog("option", "width", 200); | ||
</script> | ||
{% endif %} |