Daniel Meltzer
0c912bcf49
Fix more number_format madness.
...
This does two main things:
1) The importer now imports as numbers, not parsed strings. This allows
is to format values on output instead of input, which is what was
happening in most places.
2) Add a Helper::parseCurrencyString method and port everything to use
this. This checks to see if the value is numeric or empty, and returns
the appropriate value in all cases. Should fix all known occurances of
number_format expections.
2016-08-16 20:41:28 -05:00
snipe
17d5e40e02
Fixes #2383
2016-08-02 09:54:31 -07:00
snipe
3e5d2b5385
Ability to remove field from fieldset
2016-07-28 08:10:15 -07:00
snipe
78fda31379
Helper method to introspect into the model level validation to see if the field is required
...
(This does not yet handle form request validation)
2016-07-22 00:29:23 -07:00
Daniel Meltzer
f683c78a69
Fix adding an image to an asset when public/uploads/assets does not exist ( #2240 )
...
* Fix adding an image to an asset when public/uploads/assets does not exist.
First check to see if we can create directory and do so. If any errors occur, display the error string as an error on the page.
* Add the public/uploads/assets directory to new installs.
* Add some comments explaining this code so I remember what it does next time.
2016-07-10 18:43:00 -07:00
snipe
6bdc88cfea
Removed extra space
2016-07-09 18:20:14 -07:00
snipe
6165d804f9
Merge pull request #2145 from dmeltzer/disable-select2-on-ios
...
Disable select2 on ios.
2016-06-17 17:15:47 -07:00
snipe
2daed3c271
Fix for custom fields not saving
2016-06-10 16:36:46 -07:00
Daniel Meltzer
2159d77fc2
No longer necessary.
2016-06-10 07:46:38 -05:00
Daniel Meltzer
9c4c91063f
Merge branch 'v3' into Fix-Asset-Creation-with-old-data
2016-06-10 07:35:30 -05:00
Daniel Meltzer
4e74c553bd
Fix editing of assets. This also uses the asset form request for validation.
2016-06-10 07:33:33 -05:00
snipe
4e1472f66d
Merge remote-tracking branch 'origin/v3' into v3-master
2016-06-10 00:48:33 -07:00
Daniel Meltzer
25c10c43dd
Disable select2 on ios. It's terribly slow, doesn't register click events, and has forces focus to the search bar by default (which makes the keyboard popup and take over the screen. The latter issue might justify disabling it for all mobile devices, but the performance issues certainly justify it on iOS.
2016-06-09 20:31:23 -05:00
Daniel Meltzer
044695cb02
Fix hardware creation error making old input disappear. This should be redone to dynamically update on the client side based on a JSON response instead of flashing and reloading, but that's a lot of change for v3 at this point.
2016-06-09 20:28:49 -05:00
snipe
66adffe6d9
Moved include
2016-06-09 14:41:58 -07:00
snipe
2b5fb04ba9
Allow admin to add user on checkout screen
2016-06-09 00:36:52 -07:00
Daniel Meltzer
b3454b1c24
Fix bug in image process logic that wouldn't resize the height. Also make it possible to choose files from android as well as pictures directly.
2016-05-31 19:50:58 -05:00
Daniel Meltzer
fcc79456fd
Play with a mobile friendly capture-image-from device when adding an asset. This also involved rewriting the upload to be all ajaxy and stuff
2016-05-31 19:50:58 -05:00
snipe
1b5ef695f2
Add custom fields to modals in create asset
2016-04-23 03:12:31 -07:00
snipe
b72429a303
Suppress console log
2016-04-19 07:17:57 -07:00
snipe
0e6b8a8358
Switch to use trans from Lang::get for laravel 5.2
2016-04-07 02:51:57 -07:00
snipe
fe00b0e401
Version 3 - hold onto your butts
2016-03-25 01:18:05 -07:00