-
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.
Changes from Hornstra project including the ability to pass data back…
… from success or error callback functions, compatibility with outside CSS grid systems, numerous bug fixes, significant refactoring and optimizations to RepeaterFieldUi, ability to use AutocompleteFieldUi without ProcessWire Pages, ensuring that all field types have values populated through hidden fields even when they are set to read only, Field::siblings() method added to easily select sibling fields in callback functions (especially useful in repeaters), new MarkupFieldUi for adding arbitrary html markup between fields.
- Loading branch information
1 parent
e14f417
commit 6e298bb
Showing
52 changed files
with
764 additions
and
269 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,5 @@ | |
top: .5rem; | ||
color: #888; | ||
font-size: .9rem; | ||
display: none; | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.buttonField { | ||
padding-top: 1rem; | ||
/*padding-top: 1rem;*/ | ||
} | ||
.buttonField_fullWidth .btn { | ||
width: 100%; | ||
|
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 |
---|---|---|
@@ -1,19 +1,37 @@ | ||
<?php include('../Field/header.php') ?> | ||
|
||
<?php if($bulkSelectOptions): ?> | ||
<div class="checkboxesField-bulkSelect"> | ||
<button type="button" class="checkboxesField-all"><i class="fa fa-check-square-o"></i> All</button><button type="button" class="checkboxesField-none"> None</button> | ||
<input <?= $formAttribute ?> type="hidden" class="field-fallback" name="<?= $sanitizer->entities1($name) ?>" value="[#]" <?= $disabled ? 'disabled' : '' ?> /> | ||
|
||
<?php if($readOnly): ?> | ||
|
||
<div class="field-readOnly"> | ||
<?php foreach($value as $val): ?> | ||
<input <?= $formAttribute ?> type="hidden" name="<?= $sanitizer->entities1($name) ?>[]" value="<?= $sanitizer->entities1($val) ?>" <?= $disabled ? 'disabled' : '' ?> /> | ||
<?php endforeach ?> | ||
|
||
<?php if($selectedLabel): ?> | ||
<?= $sanitizer->entities1($selectedLabel) ?> | ||
<?php else: ?> | ||
<div class="field-noValue"><i class="fa fa-minus-circle"></i> Not Selected</div> | ||
<?php endif ?> | ||
</div> | ||
<?php endif ?> | ||
|
||
<input <?= $formAttribute ?> type="hidden" class="field-fallback" name="<?= $sanitizer->entities1($name) ?>" value="[#]" <?= $disabled ? 'disabled' : '' ?> /> | ||
<?php else: ?> | ||
|
||
<?php if($bulkSelectOptions): ?> | ||
<div class="checkboxesField-bulkSelect"> | ||
<button type="button" class="checkboxesField-all"><i class="fa fa-check-square-o"></i> All</button><button type="button" class="checkboxesField-none"> None</button> | ||
</div> | ||
<?php endif ?> | ||
|
||
<ul class="checkboxesField-list <?= $columnize ? 'checkboxesField-columnize' : '' ?>"> | ||
<?php foreach($options as $option): ?> | ||
<li class="<?= $columnize ? 'dontsplit' : '' ?>"> | ||
<label class="checkboxesField-label"><input <?= $formAttribute ?> type="checkbox" name="<?= $sanitizer->entities1($name) ?>[]" value="<?= $sanitizer->entities1($option['value']) ?>" <?= $value && in_array($option['value'], $value) ? 'checked="checked"' : '' ?> <?= $disabled ? 'disabled' : '' ?> /> <?= $sanitizer->entities1($option['label']) ?></label> | ||
</li> | ||
<?php endforeach ?> | ||
</ul> | ||
<ul class="checkboxesField-list <?= $columnize ? 'checkboxesField-columnize' : '' ?>"> | ||
<?php foreach($options as $option): ?> | ||
<li class="<?= $columnize ? 'dontsplit' : '' ?>"> | ||
<label class="checkboxesField-label"><input <?= $formAttribute ?> type="checkbox" name="<?= $sanitizer->entities1($name) ?>[]" value="<?= $sanitizer->entities1($option['value']) ?>" <?= $value && in_array($option['value'], $value) ? 'checked="checked"' : '' ?> <?= $disabled ? 'disabled' : '' ?> /> <?= $sanitizer->entities1($option['label']) ?></label> | ||
</li> | ||
<?php endforeach ?> | ||
</ul> | ||
|
||
<?php endif ?> | ||
|
||
<?php include('../Field/footer.php') ?> |
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 |
---|---|---|
@@ -1,13 +1,30 @@ | ||
<?php include('../Field/header.php') ?> | ||
|
||
<?php if($readOnly): ?> | ||
<?php if($value): ?> | ||
<?= $sanitizer->entities1($value) ?> | ||
<?php else: ?> | ||
<span class="field-noValue"><i class="fa fa-minus-circle"></i> No Value</span> | ||
<?php endif ?> | ||
<div class="field-readOnly"> | ||
<input <?= $formAttribute ?> type="hidden" name="<?= $sanitizer->entities1($name) ?>" value="<?= $sanitizer->entities1($value) ?>" <?= $disabled ? 'disabled' : '' ?> /> | ||
|
||
<?php if($value): ?> | ||
<?= $sanitizer->entities1($value) ?> | ||
<?php else: ?> | ||
<span class="field-noValue"><i class="fa fa-minus-circle"></i> No Value</span> | ||
<?php endif ?> | ||
</div> | ||
<?php else: ?> | ||
<input <?= $formAttribute ?> maxlength="<?= $sanitizer->entities1($maxLength) ?>" name="<?= $sanitizer->entities1($name) ?>" <?php if($id): ?>id="input_<?= $sanitizer->entities1($id) ?>"<?php endif ?> class="field-input txtBox <?= $error ? 'txtBox_error' : '' ?>" type="text" placeholder="<?= $sanitizer->entities1($placeholder) ?>" value="<?= $sanitizer->entities1($value) ?>" data-date-format="<?= $sanitizer->entities1($jsDateFormat) ?>" data-min-date="<?= $sanitizer->entities1($minDate) ?>" <?= $disabled ? 'disabled' : '' ?> <?= !$autocomplete ? 'autocomplete="off"' : '' ?> /> | ||
<input | ||
<?= $formAttribute ?> | ||
type="text" | ||
maxlength="<?= $sanitizer->entities1($maxLength) ?>" | ||
name="<?= $sanitizer->entities1($name) ?>" | ||
<?= $id ? 'id="input_' . $sanitizer->entities1($id).'"' : '' ?> | ||
class="field-input txtBox <?= $error ? 'txtBox_error' : '' ?> <?= $sanitizer->entities1($inputClasses) ?>" | ||
placeholder="<?= $sanitizer->entities1($placeholder) ?>" | ||
value="<?= $sanitizer->entities1($value) ?>" | ||
data-date-format="<?= $sanitizer->entities1($jsDateFormat) ?>" | ||
data-min-date="<?= $sanitizer->entities1($minDate) ?>" | ||
<?= $disabled ? 'disabled' : '' ?> | ||
<?= !$autocomplete ? 'autocomplete="off"' : '' ?> | ||
/> | ||
<?php endif ?> | ||
|
||
<?php include('../Field/footer.php') ?> |
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
Oops, something went wrong.