Nabeel Shahzad
0ce86e9e44
Rewrite add/remove bids code w additional tests
2018-07-24 14:50:50 -05:00
Nabeel Shahzad
0af85a3fff
Only show flights if they're also marked as visible
2018-07-12 22:29:50 -05:00
Nabeel Shahzad
4ca58ed754
Extra logging for cron and add flight visible field
2018-07-12 22:23:45 -05:00
Nabeel Shahzad
9cc640b866
Fix PIREP field and non-existant airport errors when editing PIREPs
2018-07-12 21:20:10 -05:00
Nabeel Shahzad
81ecb5673f
Merge branch 'dev' of https://github.com/nabeelio/phpvms into dev
2018-07-05 14:07:56 -05:00
Nabeel Shahzad
7c414e5419
(API) Delete the PIREP route before it's posted again
2018-07-05 14:07:54 -05:00
Nabeel Shahzad
a083f9c671
Fix PIREP submission and field slug problems on PIREP edit
2018-05-30 14:00:20 -05:00
Nabeel Shahzad
d76b264238
Fix saving PIREPs as draft
2018-05-29 11:04:28 -05:00
Nabeel Shahzad
59b99497a7
Route sorting
2018-05-28 18:15:51 -05:00
Nabeel Shahzad
17cece598b
Fix typos and missing lang
2018-05-21 12:05:22 -05:00
lordwilbur
ba8a819c7d
- fixed an error on finance in admin panel
...
- flight ident now use this format: VA IATA(if empty ICAO) + Flight Number + - + Flight Code (without C) + - + Flight Leg (without L)
- added function __trans_choice in helpers.php for translation
- fixed error in flight edit/insert panel not showing/inserting Tuesday in days
- fixed an error occurring when metar retrieved is empty
- edited now-ui-kit.css to align login fields correctly
- added /public/assets/frontend/js/core/jquery-3.3.1.min.js to fix a missed resource error in authentication pages
- added translations file for en and it locales
- translated all the frontend templates
2018-05-21 09:53:08 -05:00
lordwilbur
1c0c7e0012
removed $flights variable
2018-05-19 09:05:24 +02:00
lordwilbur
e026a8d333
corrected code and replicated in Api/FlightController.php
2018-05-19 02:37:11 +02:00
lordwilbur
650d9884b0
removed tabs
...
added setting
corrected code
2018-05-19 02:03:06 +02:00
lordwilbur
993513c22b
flights filtered per va
2018-05-19 00:28:34 +02:00
Nabeel Shahzad
3e96b195a6
Add short timeout to HTTP calls by default; cache METAR lookups
2018-05-14 11:22:20 -05:00
Nabeel Shahzad
c8a9ebd26d
Data cleanup; set flight ident in response
2018-05-13 16:59:35 -05:00
Nabeel Shahzad
3f1bb26ee5
Fix PIREPs not showing in admin
2018-05-11 13:43:33 -05:00
Nabeel Shahzad
bc7fccfb95
Cleanup the cancelled PIREP logic
2018-05-11 12:08:55 -05:00
Nabeel Shahzad
605bf477ad
More date casting on API
2018-05-10 15:28:42 -05:00
Nabeel Shahzad
df88cb141a
Allow draft for PIREPs, separate out the save/submit and delete functionality
2018-05-10 10:35:10 -05:00
Nabeel Shahzad
42c6a11780
Don't show in progress PIREPs in admin and order the map data
2018-05-09 17:58:51 -05:00
Nabeel Shahzad
4fa024045d
refactorings of pirep/acars api calls; separate field calls
2018-05-09 12:45:24 -05:00
Nabeel Shahzad
bd7bd7e802
Cleanup of sample data and date/time parsing
2018-05-08 20:59:19 -05:00
Nabeel Shahzad
0cd7b3b71f
live map updates
2018-05-04 13:59:47 -05:00
Nabeel Shahzad
23f1a8225a
update livemap to use rivets.js bindings for data updates
2018-05-03 15:07:16 -05:00
José Bustos
d768b9cc0e
Avatar field on database
...
corrected the path to user avatar based on get avatar attribute on user model
2018-05-02 18:59:57 -05:00
Jose Miguel Bustos Espinoza
b1209712d1
Added isset verification on avatar index at array, to put nullable validator.
2018-05-02 18:59:57 -05:00
Jose Miguel Bustos Espinoza
31d0683592
Added avatar upload method into resource controller
2018-05-02 18:59:57 -05:00
Nabeel Shahzad
5dff563c75
Fixes for API and live map
2018-05-02 15:14:18 -05:00
Nabeel Shahzad
3a81e2ec27
Fix block_off/on_time and fix the metar date parsing
2018-05-01 22:52:31 -05:00
Nabeel Shahzad
b96f1cd7c4
api fixes/updates
2018-05-01 20:58:05 -05:00
Nabeel Shahzad
73ffc9cf44
Fix flight type parameter
2018-04-30 17:29:50 -05:00
Nabeel Shahzad
5cd9c608a7
Add score to model and fields
2018-04-25 11:56:05 -05:00
Nabeel Shahzad
531e86f5e7
Fix flight duplicate detection in add/edit/import; fix active checkbox
2018-04-25 11:53:32 -05:00
Nabeel Shahzad
2c2b569c6c
Fix setting the subfleet pay
2018-04-23 10:36:11 -05:00
Nabeel Shahzad
0965465601
add whereNotInOrder() to repository
2018-04-16 16:33:41 -05:00
Nabeel Shahzad
775900bb14
Filter out draft PIREPs
2018-04-15 12:37:04 -05:00
Nabeel Shahzad
395642f69c
Add /api/news route
2018-04-11 20:01:41 -05:00
Nabeel Shahzad
f54f19100c
Add a PIREP flag for ready_only; some more METAR cleanup
2018-04-09 22:04:59 -05:00
Nabeel Shahzad
c102a0d858
Refactor all of the unit conversion code
2018-04-07 20:52:12 -05:00
Nabeel Shahzad
e27f6f1b14
Add addtl fields to pirep - block_off and block_on times, calculate block_off time if not there
2018-04-04 13:03:10 -05:00
Nabeel Shahzad
9ff3c1ab10
remove single entry for pagination testing
2018-04-03 22:45:45 -05:00
Nabeel Shahzad
6fb66a1d80
Fixing some styling on the frontend
2018-04-03 19:21:42 -05:00
Nabeel Shahzad
99555539a7
Fix timezone/country not being saved on register #223
2018-04-03 09:43:32 -05:00
Nabeel Shahzad
3dba586f83
Add downloads page
2018-04-02 18:37:41 -05:00
Nabeel Shahzad
36a7886668
Add laravel-medialibrary for avatars
2018-04-02 17:49:04 -05:00
Nabeel Shahzad
0f98e729ce
Save file asset
2018-04-02 17:34:58 -05:00
Nabeel Shahzad
ccfa904300
change file controller name
2018-04-02 13:42:24 -05:00
Nabeel Shahzad
9e1e0142e9
Route downloads through controller; file IDs as hash to prevent guessing; download count; download list on airport page
2018-04-02 12:55:37 -05:00
Nabeel Shahzad
3ddee56359
Add description field for files
2018-04-02 11:46:33 -05:00
Nabeel Shahzad
026a83591d
Fixes to file uploading; include disk name, remove clunky redirect code
2018-04-02 11:04:32 -05:00
Nabeel Shahzad
bb73af3806
Add weather to the dashboard for the current airport
2018-04-02 06:47:05 -05:00
Nabeel Shahzad
eb06c07fdb
Update PIREP statuses
2018-04-01 20:37:10 -05:00
Nabeel Shahzad
0f521c3af9
Change PIREP states to follow AIDX guidelines
2018-04-01 20:18:12 -05:00
Nabeel Shahzad
e358b8706f
Backend for file uploads attached to any generic model, initially on aircraft and airports #226
2018-04-01 18:02:12 -05:00
Nabeel Shahzad
793b3e7134
change ref_class to ref_model
2018-04-01 14:32:01 -05:00
Nabeel Shahzad
2c726f6c52
Fix error with days input missing from flight create/edit
2018-03-30 18:25:27 -05:00
Nabeel Shahzad
bd30b1f900
Check for departure airport restrictions #221
2018-03-30 11:08:53 -05:00
Nabeel Shahzad
7fbcfa391b
block on/off times in FormRequest check
2018-03-29 14:12:25 -05:00
Nabeel Shahzad
cf43685740
Add/implement subfleet cost_block_hour and block_time for PIREP API
2018-03-29 13:42:16 -05:00
Nabeel Shahzad
504b33ba2a
Add AirspaceMap widget; airport overview page
2018-03-27 11:40:37 -05:00
Nabeel Shahzad
99142f9fec
Fixed merge
2018-03-26 09:35:01 -05:00
Nabeel Shahzad
46e956475a
Fix comments
2018-03-26 09:33:45 -05:00
Nabeel Shahzad
0671742703
Load subfleet page first, can add aircraft from there #217
2018-03-23 20:30:31 -05:00
Nabeel Shahzad
1eb7e5d59a
Fix issue with flight fields not adding correctly
2018-03-23 20:29:37 -05:00
Nabeel Shahzad
f5c492bb7e
Sort aircraft by registration
2018-03-23 16:41:09 -05:00
Nabeel Shahzad
eb64f268d3
Fix flight field bugs
2018-03-23 15:02:26 -05:00
Nabeel Shahzad
f8f5a71564
Move subfleet add/remove to fleet service for a flight
2018-03-23 14:10:18 -05:00
Nabeel Shahzad
c6f423087d
fix failed to error
2018-03-23 10:37:34 -05:00
Nabeel Shahzad
49dfa7fc17
Sort flights by flight_number
2018-03-22 22:50:41 -05:00
Nabeel Shahzad
28a44631fc
add field values to flight api
2018-03-22 22:48:54 -05:00
Nabeel Shahzad
7105e82922
Add days of week to flights table; add to import/export for flights
2018-03-22 21:21:35 -05:00
Nabeel Shahzad
112a72ac6f
Subfleet exporter #194
2018-03-22 17:59:10 -05:00
Nabeel Shahzad
46d8fb125a
Add fare import/exporter #194
2018-03-22 17:48:57 -05:00
Nabeel Shahzad
a44204b185
Import/export expenses #194
2018-03-22 17:17:37 -05:00
Nabeel Shahzad
4e3a9fd9ea
Export airports
2018-03-22 13:04:13 -05:00
Nabeel Shahzad
d4f79b1331
Add aircraft export
2018-03-22 12:55:56 -05:00
Nabeel Shahzad
fbfd71adcf
Cleanup Exporter; use firstOrCreate for any missing data we can infer/setup defaults for
2018-03-22 12:43:58 -05:00
Nabeel Shahzad
9657e8bd40
Rename import/export, fix tests with parser
2018-03-21 19:12:36 -05:00
Nabeel Shahzad
276b93fc57
Export flights to CSV in admin #194
2018-03-21 17:07:30 -05:00
Nabeel Shahzad
95a7365fee
remove unique on update #214
2018-03-21 12:35:06 -05:00
Nabeel Shahzad
b9beb6c804
Add importers in console and admin for flights/aircraft/subfleets and airport #194
2018-03-20 19:17:11 -05:00
Nabeel Shahzad
25a299fb74
Add flight fields for templated fields on edit flight #213
2018-03-20 13:47:47 -05:00
Nabeel Shahzad
485c6e86bb
add separate flight_fields table and move over to flight_field_values
2018-03-20 13:06:06 -05:00
Nabeel Shahzad
4e59bd0442
view flight bids in flights screen #203
2018-03-20 11:28:06 -05:00
Nabeel Shahzad
ccf56ddec1
Fix formatting and interfaces in nearly every file
2018-03-19 20:50:40 -05:00
Nabeel Shahzad
6b002f24a8
Store full datetime in post_date; recalculate finances on every pirep
2018-03-17 22:20:08 -05:00
Nabeel Shahzad
e9baf4acb5
Add/edit the award class in Admin #155
2018-03-17 12:17:38 -05:00
Nabeel Shahzad
a21e2dd412
Clean up Award controller in admin #155
2018-03-17 11:39:51 -05:00
Nabeel Shahzad
45a22e26be
Merge #154 Awards into dev
2018-03-17 00:03:17 -05:00
Nabeel Shahzad
d34de098e5
Add separate redirect config after registration
2018-03-16 11:42:01 -05:00
Nabeel Shahzad
428d016e26
Customize redirect after login
2018-03-16 11:41:18 -05:00
Nabeel Shahzad
15d483b332
Add config to change redirect after login
2018-03-16 11:40:09 -05:00
Nabeel Shahzad
92bb56e344
Add recaptcha implementation #212
2018-03-16 11:38:06 -05:00
Nabeel Shahzad
afd7aebe20
Allow the fares to be submitted via API for ACARS #125
2018-03-14 10:34:41 -05:00
Nabeel Shahzad
bff80c2dc7
Change user bid to POST
2018-03-13 01:26:27 -05:00
Nabeel Shahzad
a3264c1cd1
re-enable csrf token for forms
2018-03-12 10:33:46 -05:00
Nabeel Shahzad
98ebd5e358
Remove the skin_view() call from base Controller class
2018-03-11 18:03:15 -05:00
Nabeel Shahzad
f05e37767f
Update skinning with more flexible theme module
2018-03-11 18:00:42 -05:00
Nabeel Shahzad
03c15473b9
remove with()
2018-03-11 17:22:25 -05:00
Nabeel Shahzad
4f8f82f69f
find proper rank when assigning subfleet
2018-03-09 13:03:43 -06:00
Nabeel Shahzad
dc2570a408
Rename the PirepService class
2018-03-06 17:36:06 -06:00
Nabeel Shahzad
a325470b8f
Aircraft can have its own expenses #130
2018-03-06 17:32:56 -06:00
Nabeel Shahzad
453ca5b180
Cleanup the transaction memos
2018-03-06 06:17:45 -06:00
Nabeel Shahzad
9d3953f3ac
Refactor expenses; move finance service classes; add daily/monthly skeletons #130 #136
2018-03-05 22:49:42 -06:00
Nabeel Shahzad
db10ebf807
Add expenses on airports as well #130 #136
2018-03-05 22:10:00 -06:00
Nabeel Shahzad
88a8fd2bbd
Remove subfleet_expenses and combine into main expenses table; select expense type on subfleet #130 #136
2018-03-05 21:24:49 -06:00
Nabeel Shahzad
505931736c
Finance overview page added to admin with monthly breakdown #130
2018-03-05 19:55:48 -06:00
Nabeel Shahzad
8b163348a2
Cleanup comments
2018-03-05 14:19:14 -06:00
Nabeel Shahzad
53e4bf533f
Add finance controller; morphable expense type so they can be applied to any model #130
2018-03-05 14:18:54 -06:00
Nabeel Shahzad
a7a70ce423
Added refresh finances button to transactions list #130
2018-03-05 13:07:10 -06:00
Nabeel Shahzad
96e8fbfa78
Add subfleet specific expenses, fixed bug for pirep fares #130 #136
2018-03-05 12:21:38 -06:00
Nabeel Shahzad
2df09c533b
show transactions in pirep
2018-03-02 16:09:48 -06:00
Nabeel Shahzad
2c52a2f7e6
Post fares/expenses on PIREP to Airline journal #130
2018-03-01 16:20:13 -06:00
Nabeel Shahzad
448a9846c9
Implement airport hub restriction closes #104
2018-02-28 15:37:24 -06:00
Nabeel Shahzad
208b6e73dc
Don't overwrite pagination counts, let it default to the config #162
2018-02-28 15:06:57 -06:00
Nabeel Shahzad
3aa4b8a410
Cleanup and move subfleet/rank settings to FleetService class
2018-02-27 14:12:03 -06:00
Nabeel Shahzad
f0977b48e5
alt_airports missing in flight create
2018-02-27 13:38:11 -06:00
Nabeel Shahzad
97764866f2
Rename user_bids table to bids
2018-02-27 13:25:32 -06:00
Nabeel Shahzad
c89926399b
Delete a bid by either the bid_id or the flight_id
2018-02-27 13:14:58 -06:00
Nabeel Shahzad
a38b4e063b
Return the flight object with the bid
2018-02-27 13:11:48 -06:00
Nabeel Shahzad
cdd5fc749c
Add the acars and manual payrates in the rank/subfleet forms
2018-02-26 19:14:10 -06:00
Nabeel Shahzad
4a73a5a6b3
Add table/models and admin for expenses #136
2018-02-26 15:16:12 -06:00
Nabeel Shahzad
d0b3b27975
Remove the flight_id column from the pireps table
2018-02-24 15:51:04 -06:00
Nabeel Shahzad
58e0f50c48
specify fares, js to dynamically change fare form; get applicable fares for the flight/pirep #125
2018-02-24 15:38:25 -06:00
Nabeel Shahzad
910c0e0eab
Convert aircraft active to more detailed status #134
2018-02-23 16:37:10 -06:00
Nabeel Shahzad
b8b4fe7a8a
Add percentages as part of sample data #125
2018-02-23 15:34:14 -06:00
Nabeel Shahzad
53b0bbd936
Convert errors into HttpException calls
2018-02-22 15:15:00 -06:00
Nabeel Shahzad
3748ab77d2
Fix aircraft active/inactive states
2018-02-22 14:59:09 -06:00
Nabeel Shahzad
ad5f36f85e
Cleanup frontend user bid add/remove to use the API, script and html cleanup #172
2018-02-22 11:34:57 -06:00
Nabeel Shahzad
6dfab75f08
Add api routes to get/add/remove bids for a user #172
2018-02-22 10:44:15 -06:00
Nabeel Shahzad
5d2ef3a9d3
Fix wrong Exception being thrown
2018-02-22 09:41:23 -06:00
Nabeel Shahzad
9dfdc8195d
Add flight log to both frontend and admin pirep edit view
2018-02-21 15:24:46 -06:00
Nabeel Shahzad
ea09a18956
Fixed formatting of almost every file
2018-02-20 22:33:09 -06:00
Nabeel Shahzad
c5b6ca53fa
Redirect subfleet create to edit page
2018-02-20 21:55:01 -06:00
Nabeel Shahzad
14d04604cb
Add ranks from the subfleet edit page closes #160
2018-02-20 21:53:50 -06:00
Nabeel Shahzad
aeacd80bcb
Check aircraft permissions in PIREP update/file
2018-02-20 14:14:20 -06:00
Nabeel Shahzad
653711fa96
Change volume units to be in lbs/kg closes #193
2018-02-20 14:07:33 -06:00
Nabeel Shahzad
4e43223f3a
Refuse pirep prefile is user not allowed to use aircraft #170
2018-02-20 12:59:49 -06:00
Nabeel Shahzad
8393ae2851
Add /flight/:id/route resource, returns all route info that's in the navaid database closes #183
2018-02-20 12:06:52 -06:00
Nabeel Shahzad
5ee8c1e779
level not required in prefile; distance required in file
2018-02-20 11:12:50 -06:00
Nabeel Shahzad
ad4259625c
Add flight time to flight create/edit form
2018-02-19 13:33:26 -06:00
Nabeel Shahzad
3d9d17d9b9
Add call to get user's PIREPs #192
2018-02-19 10:35:49 -06:00
Nabeel Shahzad
2678514077
API: Only show active airlines
2018-02-12 12:05:10 -06:00
Nabeel Shahzad
62506a26a1
set country on the airline, in admin and installer #191
2018-02-12 10:51:04 -06:00
Nabeel Shahzad
61dc0a046d
Fix rank image field
2018-02-12 10:26:27 -06:00
Nabeel Shahzad
c817d1ae4b
Installer fixes
2018-02-12 09:47:12 -06:00
Nabeel Shahzad
61af5fe226
Cleanup column types and assign Time class to fields #189
2018-02-11 20:38:56 -06:00
Nabeel Shahzad
d5c2d25c74
finally fixed serialization of conversions #189
2018-02-10 22:49:08 -06:00