snipe-it/resources/views/partials/forms/edit
Till Deeke 07a92d20d7 Fixing #5773: Refactoring the "clearing" of select2 lists (#5839)
* adds select2 placeholders to select lists

To allow us to clear the selection on „select2“ selects, we need a placeholder attribute

See: https://select2.org/placeholders

* Removes empty option from multiple select

select2 requires an empty option value on singular selects, but not on multiple selects.

When selecting multiple options, this empty option would be shown as selectable otherwise, not clearing the selection.

* Adds the option to clear select2 instances

Sets the correct options to allow clearing of out select2 instances. The empty placeholder is required, since clearing only works when a placeholder ist set (event an empty one).

See: https://select2.org/placeholders

* Removes the „Clear selection“ option from select lists

Since we can clear the select2 lists with their native clearing method, we can remove this hack

* Updates generated assets (css/js)
2018-07-16 14:10:54 -07:00
..
address.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
asset-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
category-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
category.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
company-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
company.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
department-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
depreciation.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
email.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
image-upload.blade.php Added image preview for uploads 2018-02-17 00:51:22 -08:00
item_number.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
location-profile-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
location-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
location.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
maintenance_type.blade.php Fix error in partializing with creating an asset maintenance. (#2987) 2016-11-29 05:02:48 -08:00
manufacturer-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
manufacturer.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
minimum_quantity.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
model-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
model_number.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
name.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
notes.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
order_number.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
phone.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
purchase_cost.blade.php Nicer styling for purchase cost in edit form 2017-11-08 18:06:51 -08:00
purchase_date.blade.php Only format purchase date if one exists 2017-11-09 11:06:37 -08:00
quantity.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
requestable.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
serial.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
status.blade.php Fixes incorrect gate for “new” button for status labels on asset create/edit form 2018-04-26 16:35:08 -07:00
submit.blade.php Fixed #5033 - use PHP’s max filesize for image uploads 2018-02-16 21:17:41 -08:00
supplier-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
supplier.blade.php Refactor and improve Modal support for Assets (#3884) 2017-08-24 22:24:02 -07:00
user-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
warranty.blade.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00