Version 4.5.0

This commit is contained in:
Neo committed 2025-12-19 05:51:58 -08:00
1 parent 1a0c7fd3c2
commit f79dcf067a
3791 files changed
+248032 -76372

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
<ul class='ipsField_fieldList'>
{{foreach $apps as $key => $data}}
<li>
<input type="checkbox" id='app_{$key}' name="apps[{$key}]" {{if $data['force'] or in_array( $key, $selected )}}checked{{endif}} {{if $data['force'] or $data['disabled']}}disabled{{endif}} value='1'>
<input type="checkbox" id='app_{$key}' name="apps[{$key}]" {{if $data['force'] or \in_array( $key, $selected )}}checked{{endif}} {{if $data['force'] or $data['disabled']}}disabled{{endif}} value='1'>
<div class='ipsField_fieldList_content'>
<label for='app_{$key}' class='ipsFieldRow_label'>{$data['name']}</label>
<dl class='ipsVersions{{if $data['disabled']}} disabled{{endif}}'>
@@ -0,0 +1,52 @@
<ips:template parameters="$name, $value, $required, $options, $multiple=FALSE, $class='', $disabled=FALSE, $toggles=array(), $id=NULL, $unlimited=NULL, $unlimitedLang='all', $unlimitedToggles=array(), $toggleOn=TRUE, $descriptions=array()" />
{{if $multiple}}
<input type="hidden" name="{$name}[__EMPTY]" value="__EMPTY">
{{endif}}
{{if $unlimited !== NULL}}
<div data-control="granularCheckboxset">
<div data-role="checkboxsetUnlimited" class="{{if !\is_array( $value )}}ipsJS_show{{else}}ipsHide{{endif}}">
<input
type='checkbox'
name="{expression="trim( $name, '[]' )"}_unlimited"
value='{$unlimited}'
id="{expression="trim( $id ?: $name, '[]' )"}_unlimited"
{{if $unlimited === $value}}checked aria-checked='true'{{else}}aria-checked='false'{{endif}}
{{if $disabled}}disabled aria-disabled='true'{{endif}}
data-ipsToggle
data-role="checkboxsetUnlimitedToggle"
>
&nbsp;
{lang="or"}
&nbsp;
<a class="ipsCursor_pointer" data-action="checkboxsetCustomize">{lang="customize"}</a>
</div>
{{endif}}
<div data-role="checkboxsetGranular" class="{{if $unlimited !== NULL and !\is_array( $value )}}ipsJS_hide{{endif}}">
<ul class="ipsField_fieldList">
{{foreach $options as $k => $v}}
<li>
<span class='ipsCustomInput'>
<input type="checkbox" {{if $class}}class="{$class}"{{endif}} name="{$name}[{$k}]" value="1" {{if ( $unlimited !== NULL AND $unlimited === $value ) or ( \is_array( $value ) AND \in_array( $k, $value ) )}}checked{{endif}} {{if $disabled === TRUE or ( \is_array( $disabled ) and \in_array( $k, $disabled ) )}}disabled{{endif}} {{if isset( $toggles[ $k ] ) and !empty( $toggles[ $k ] )}}data-control="toggle" {{if $toggleOn === FALSE}}data-togglesOff{{else}}data-togglesOn{{endif}}="{expression="implode( ',', $toggles[ $k ] )"}"{{endif}} id="elCheckbox_{$name}_{$k}">
<span></span>
</span>
<div class='ipsField_fieldList_content'>
<label for='elCheckbox_{$name}_{$k}' id='elField_{$name}_label'>{$v|raw}</label>
{{if isset( $descriptions[ $k ] )}}
<br>
<span class='ipsFieldRow_desc'>
{$descriptions[ $k ]|raw}
</span>
{{endif}}
</div>
</li>
{{endforeach}}
</ul>
{{if $unlimited !== NULL}}
<div class="ipsSpacer_top ipsSpacer_half">
{lang="or"}
&nbsp;
<a class="ipsCursor_pointer" data-action="checkboxsetAll">{lang="all"}</a> / <a class="ipsCursor_pointer" data-action="checkboxsetNone">{lang="none"}</a>
</div>
</div>
{{endif}}
</div>
+1 -1
View File
@@ -7,7 +7,7 @@
{{endif}}
<form method="post">
<input type="hidden" name="{$id}_submitted" value="1">
<input type="hidden" name="login_submitted" value="1">
<ul class='ipsForm ipsForm_vertical'>
<li class="ipsFieldRow ipsClearfix">
<label class="ipsFieldRow_label" for="auth">
+4 -10
View File
@@ -14,23 +14,17 @@
<ul class="ipsField_fieldList" role="radiogroup" id="elRadio_{$name}">
{{foreach $options as $k => $v}}
<li>
<input type="radio" name="{$name}" value="{$k}" {{if (string) $value == (string) $k or ( isset( $userSuppliedInput ) and !in_array( $value, array_keys( $options ) ) and $k == $userSuppliedInput )}}checked{{endif}} {{if $required === TRUE}}required{{endif}} {{if $disabled === TRUE or ( is_array( $disabled ) and in_array( $k, $disabled ) )}}disabled{{endif}} {{if isset( $toggles[ $k ] ) and !empty( $toggles[ $k ] )}}data-control="toggle" data-toggles="{expression="implode( ',', $toggles[ $k ] )"}"{{endif}} id="elRadio_{$name}_{$k}" />
<input type="radio" name="{$name}" value="{$k}" {{if (string) $value == (string) $k or ( isset( $userSuppliedInput ) and !\in_array( $value, array_keys( $options ) ) and $k == $userSuppliedInput )}}checked{{endif}} {{if $required === TRUE}}required{{endif}} {{if $disabled === TRUE or ( \is_array( $disabled ) and \in_array( $k, $disabled ) )}}disabled{{endif}} {{if isset( $toggles[ $k ] ) and !empty( $toggles[ $k ] )}}data-control="toggle" data-toggles="{expression="implode( ',', $toggles[ $k ] )"}"{{endif}} id="elRadio_{$name}_{$k}" />
<div class='ipsField_fieldList_content'>
<label for='elRadio_{$name}_{$k}' id='elField_{$name}_label'>{$v|raw}</label>
{{if !empty( $userSuppliedInput ) AND $userSuppliedInput == $k}}
<input type='text' name='{$userSuppliedInput}_{$name}' value="{{if !in_array( $value, array_keys( $options ) )}}{$value}{{endif}}" id='{$userSuppliedInput}_{expression="preg_replace('/[^a-zA-Z0-9\-_]/', '_', $name)"}'>
<input type='text' name='{$userSuppliedInput}_{$name}' value="{{if !\in_array( $value, array_keys( $options ) )}}{$value}{{endif}}" id='{$userSuppliedInput}_{expression="preg_replace('/[^a-zA-Z0-9\-_]/', '_', $name)"}'>
{{endif}}
{{if isset( $descriptions[ $k ] )}}
<br>
<span class='ipsFieldRow_desc'>
{$descriptions[ $k ]|raw}
</span>
{$descriptions[ $k ]|raw}
{{endif}}
{{if isset( $warnings[ $k ] )}}
<div id="{$name}_{$k}_warning">
<br>
<p class='ipsMessage ipsMessage_warning'>{$warnings[ $k ]|raw}</p>
</div>
{$warnings[ $k ]|raw}
{{endif}}
</div>
</li>
+1 -1
View File
@@ -2,7 +2,7 @@
<form action="{$action}" method="post" {{if $uploadField}}enctype="multipart/form-data"{{endif}}>
<input type="hidden" name="{$id}_submitted" value="1">
{{foreach $hiddenValues as $k => $v}}
{{if is_array( $v )}}
{{if \is_array( $v )}}
{{foreach $v as $_k => $_v}}
<input type="hidden" name="{$k}[{$_k}]" value="{$_v}">
{{endforeach}}
+2 -2
View File
@@ -16,7 +16,7 @@
{{if $autoComplete['unique']}}
data-ipsAutocomplete-unique
{{endif}}
{{if is_array( $autoComplete['source'] )}}
{{if \is_array( $autoComplete['source'] )}}
list='{$name}_datalist'
{{elseif $autoComplete['source']}}
data-ipsAutocomplete-dataSource="{url="{$autoComplete['source']}"}"
@@ -28,7 +28,7 @@
{{endif}}
{{if $placeholder !== NULL}}placeholder='{$placeholder}'{{endif}}
/>
{{if is_array( $autoComplete )}}
{{if \is_array( $autoComplete )}}
<datalist id="{$name}_datalist">
{{foreach $autoComplete as $v}}
<option value="$v">{$v}</option>