< 062021-03-07⋎08 >

farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Feature requests and bug reports: github.com/farmOS/farmOS/issuesSet by ChanServ on 2018-08-16 at 14:32
17:20*jgaehring[m] has quit (Ping timeout: 240 seconds)
17:20*frakman1[m] has quit (Ping timeout: 240 seconds)
17:20*braught[m] has quit (Ping timeout: 240 seconds)
17:20*generalredneck[m has quit (Ping timeout: 240 seconds)
17:20*skipper_is[m] has quit (Ping timeout: 246 seconds)
17:20*rationaljohn[m] has quit (Ping timeout: 265 seconds)
17:21*botlfarm[m] has quit (Ping timeout: 240 seconds)
17:21*arvidsjaur[m] has quit (Ping timeout: 240 seconds)
17:21*stevemwai[m] has quit (Ping timeout: 244 seconds)
17:21*wombat83[m] has quit (Ping timeout: 268 seconds)
17:21*naveenls[m] has quit (Ping timeout: 268 seconds)
17:21*farmtech[m] has quit (Ping timeout: 268 seconds)
17:21*mstenta[m] has quit (Ping timeout: 240 seconds)
17:22*zedrckr[m] has quit (Ping timeout: 265 seconds)
17:22*julianorman[m] has quit (Ping timeout: 268 seconds)
17:22*paul121[m] has quit (Ping timeout: 268 seconds)
17:22*symbioquine[m] has quit (Ping timeout: 268 seconds)
17:23*linus0[m] has quit (Ping timeout: 246 seconds)
17:23*dge[m] has quit (Ping timeout: 268 seconds)
17:23*kunigunde[m] has quit (Ping timeout: 268 seconds)
17:24*localisticepicur has quit (Ping timeout: 246 seconds)
17:24*calbasi_matrix has quit (Ping timeout: 240 seconds)
17:24*rocoroc[m] has quit (Ping timeout: 265 seconds)
17:24*dazinism has quit (Ping timeout: 258 seconds)
17:25*JulianF has quit (Ping timeout: 265 seconds)
17:33*skipper_is[m] has joined
17:33*jgaehring[m] has joined
17:33*frakman1[m] has joined
17:33*braught[m] has joined
17:34*rationaljohn[m] has joined
17:35*generalredneck[m has joined
17:50*wombat83[m] has joined
17:50*naveenls[m] has joined
17:52*farmtech[m] has joined
17:52*botlfarm[m] has joined
17:57*kunigunde[m] has joined
18:01*dge[m] has joined
18:06*linus0[m] has joined
18:06*rocoroc[m] has joined
18:11*arvidsjaur[m] has joined
18:17*localisticepicur has joined
18:19*stevemwai[m] has joined
18:25*calbasi_matrix has joined
18:25*zedrckr[m] has joined
18:25*mstenta[m] has joined
18:26*paul121[m] has joined
18:26*julianorman[m] has joined
18:26*symbioquine[m] has joined
18:31*dazinism has joined
18:38*JulianF has joined
20:28skipper_is[m]Is there a function to load a log entity by id? Like farm_asset_load?
20:29mstenta[m]Yes! log_load($id)
20:32skipper_is[m]ah perfect :) I was just trying to make a little function out of entity_load
20:32skipper_is[m]but log_load is much easier :)
20:49skipper_is[m]And for flags, the formatting? How can I get the same style of presentation on the flags, eg monitor?
20:51mstenta[m]The way those styles are added now is by adding a Bootstrap class to their div
20:51skipper_is[m]Ah, so if I do it in a form, it'd be as markup
20:52mstenta[m]Yes so in a form might require something clever
20:52mstenta[m]I don't think we do that anywhere in farmOS yet
20:53skipper_is[m]Any idea what the class is?
20:54mstenta[m]Not off the top of my head (on my phone)
20:54skipper_is[m]I can maybe pull it off of page inspector
20:54mstenta[m]Inspect element
20:54mstenta[m]Yea :-)
20:55mstenta[m]The bootstrap docs too
20:55mstenta[m]Bootstrap 3 FYI
20:55skipper_is[m]Ah nice
20:57skipper_is[m]My markup part is getting very messy....
20:58skipper_is[m]:sigh:
20:58mstenta[m]Yea tricky
20:59mstenta[m]There are definitely ways to keep things clean... But you gotta weigh the cost benefit :-)
20:59mstenta[m]If it works it works!
20:59skipper_is[m]Put things in arrays an iterate through them may be my next strategy..
21:03skipper_is[m].....With php, if you use ' around a string, can you not use $variables?
21:03mstenta[m]Correct, use double quotes instead
21:04skipper_is[m]...Learn something new everyday
21:04mstenta[m](I think? Although to be honest I generally concatenate)
21:04skipper_is[m]Yea, so I tried '$flags' and it just printed $flags
21:04skipper_is[m]"$flags" printed the variale
21:04mstenta[m](or use t() to make it translatable) :-)
21:05skipper_is[m]Oooh, will t() hate markup?
21:06mstenta[m]www.drupal.org/docs/7/api/localization-a
21:08skipper_is[m]Sorted
21:13skipper_is[m]Thereis a farm_flags_wrap() function!
21:18*uploaded an image: image.png (4KiB) < matrix.org/_matrix/media/r0/download/mat >
21:18skipper_is[m]Ay! Look at that!
21:18mstenta[m]Nice :-)
21:21skipper_is[m]Now for a checkbox to add those flags to new logs...
21:28skipper_is[m]There is a function under farm_flags, looks like it adds the relative parts to a form, but requires context?
21:30skipper_is[m]Oh, maybe i's for views..

< 062021-03-07⋏08 >