Daniel O'Connor
58780ec199
Swap harvest to html5 date field ( #3894 )
...
* Update gardens to have a non 0 area
* Spec no longer possible through frontend
* Fix spec
* Swap harvest to html5 date field
* Fix spec
2024-10-14 00:09:30 +10:30
Daniel O'Connor
7acef18bc5
Merge pull request #3888 from Growstuff/required-help
...
Remove required text UI element
2024-10-13 22:47:21 +10:30
Daniel O'Connor
a7a5b6ef17
Remove required text UI element
2024-10-13 11:56:56 +00:00
Daniel O'Connor
c05ea9e651
Update _form.html.haml
2024-10-13 22:15:52 +10:30
Daniel O'Connor
dae4cacb53
to_s
2022-11-07 23:20:49 +10:30
Brenda
5c7b8254b0
plant_part is on harvest not planting
2020-03-01 08:32:53 +13:00
Brenda
cc83cb23bc
fix plant part selection bug on editing harvests
2020-03-01 07:57:04 +13:00
Brenda Wallace
3d11dac718
Fixing harvest specs
2019-06-08 18:21:15 +12:00
Brenda Wallace
51133359fb
tidy
2019-06-08 10:29:52 +12:00
Brenda Wallace
357b70f068
harvest form tidy for small screens
2019-06-04 15:44:45 +12:00
Brenda Wallace
20fbec96d4
Tidying up forms
2019-05-24 20:14:24 +12:00
Brenda Wallace
a43b2858d4
harvest form tidy up
2019-05-23 22:44:18 +12:00
Brenda Wallace
9ecf210ffb
More form tidy up
2019-04-27 19:19:42 +12:00
Brenda Wallace
eabf1fc659
Tidy up (most) forms
2019-04-27 19:11:30 +12:00
Brenda Wallace
ac7d44cb72
Cleaned up most of harvest's haml
2017-02-08 07:25:59 +13:00
Brenda Wallace
283bb76a9e
Link a harvest to a planting, and display
2017-01-04 22:45:49 +13:00
Mackenzie Morgan
13dc87f368
Optional field improvements
...
* Added custom matcher `have_optional(field id name goes here)`
* Fix partial
* Add tests
2016-05-27 11:26:36 -04:00
Mackenzie Morgan
079cecc529
Swap over to having "(Optional)" (or translation) after optional form elements rather than using placeholder text
...
Fixes #848
2016-05-26 16:53:46 -04:00
Cesy
23e2b756fd
Merge pull request #886 from pozorvlak/fix_duplicated_class_warning
...
Fix "duplicated key: :class" warning in HAML code
2016-05-22 17:21:47 +01:00
Miles Gould
79db3c4c1d
Fix "duplicated key: :class" warning in HAML code
...
The warning was
app/views/harvests/_form.html.haml:32: warning: duplicated key at line 32 ignored: :class
We were specifying two `:class` attributes on an HTML tag; I've combined
them into one.
2016-05-19 14:40:24 +01:00
Miles Gould
bcb74c7ed8
Merge branch 'dev' into bump_ruby_22x
2016-05-19 14:15:33 +01:00
Daniel O'Connor
d9f04d1fa9
Fixes #853
2016-04-03 00:08:12 +10:30
Daniel O'Connor
668f6d3a2b
Fix 'app/views/harvests/_form.html.haml:39: warning: duplicated key at line 39 ignored: :class'
2016-03-29 00:43:14 +10:30
Anthony Atkinson
96a007ef3b
Marking required and optional fields on Harvest form.
2015-07-22 11:02:46 -04:00
Maccath
3a9077050e
Add placeholder to harvest screen's plant part select box.
2015-07-03 08:30:04 +08:00
Cjay Billones
bb88041fef
[Refactoring] Replace .count and .length with .size for collections
...
Improved program efficiency (in querying in particular) by replacing .count and .length with .size for collections.
Fix error in refactoring
Reverted some .size into .count
2015-06-25 12:09:03 +08:00
Taylor Griffin
102763f2ab
link to new crop request form
2015-02-10 22:12:22 +11:00
Taylor Griffin
138904bd82
write regression test for creating plantings, harvests and seeds form crop page
2014-09-09 21:52:50 +10:00
Taylor Griffin
d8c7aba725
pass options hash into auto_suggest helper to allow setting class
2014-08-29 07:31:32 +10:00
Taylor Griffin
2c50c3b703
merge in a bunch of (mostly bootstrap 3) changes
2014-08-29 07:14:44 +10:00
Skud
a684efcf2a
b3ified some of the forms
2014-08-11 13:02:08 +10:00
Taylor Griffin
e0d81f5693
improve and abstract auto_suggest api
2014-08-02 22:14:10 +10:00
Taylor Griffin
69162cf228
write feature specs for harvesting a crop
2014-08-01 19:38:47 +10:00
Taylor Griffin
a49880d4da
make crop_suggest.js more abstract so it works for other resources, not just planting
2014-08-01 19:19:27 +10:00
Amy Hendrix
b7fbe60b83
Bootstrap3: form control groups
2014-07-13 18:45:56 -04:00
Miles Gould
deb706607e
Explain step="any" in harvest _form view.
2014-01-05 12:27:10 +00:00
Miles Gould
96675e2eca
Allow harvesting non-integer quantities.
...
Some browsers (grrr Firefox for Android grrrr) assume "number" means
"integer" unless you specify `step="any"`. Perhaps the developers were
inspired by Kronecker?
http://mathoverflow.net/questions/34445/meaning-of-kroneckers-comment-to-lindemann
This was reported as a bug for non-integer weights; I've allowed
non-integer quantities in the other field, because some allowable units
(eg litres) are obviously divisible.
2014-01-03 21:03:01 +00:00
Miles Gould
e9a3c0f4ee
rails g scaffold PlantPart...
...
Also migration to remove the string plant_part.
2013-10-30 23:32:20 +00:00
Skud
40eac92013
Moved help text so it flows more nicely
2013-10-29 17:33:02 +11:00
Skud
f90da16cb1
Added plant part to harvest form
2013-10-29 17:29:01 +11:00
Miles Gould
9c5b6f6192
Rename Crop.system_name to Crop.name
2013-10-18 11:52:05 +01:00
Skud
c5e8e4298f
Separated informal/human units from measured weights
2013-09-25 15:39:17 +10:00
Skud
40ce4ab77b
Validate units (must be one of individual/bunches/kg/lb)
...
Also changed "units" attribute to "unit". Oops, we weren't following the
Rails naming convention.
2013-09-17 17:26:18 +10:00
Skud
ccb0e42c95
Prettified harvest form
...
Also renamed "notes" to "description" in database
2013-09-17 16:08:41 +10:00
Skud
37383ba451
rails g scaffold Harvest...
2013-09-17 15:39:25 +10:00