Browse Source

adding maxlengths to relevant form fields

master
jk 3 years ago
parent
commit
51c9d365cf
  1. 4
      resources/views/adjunctadditions/create.blade.php
  2. 6
      resources/views/beers/create.blade.php
  3. 6
      resources/views/beers/edit.blade.php
  4. 2
      resources/views/fermentations/create.blade.php
  5. 2
      resources/views/fermentations/edit.blade.php
  6. 4
      resources/views/grainbills/create.blade.php
  7. 4
      resources/views/grainbills/edit.blade.php
  8. 8
      resources/views/grains/create.blade.php
  9. 8
      resources/views/grains/edit.blade.php
  10. 4
      resources/views/hopadditions/create.blade.php
  11. 4
      resources/views/hopadditions/edit.blade.php
  12. 16
      resources/views/hops/create.blade.php
  13. 16
      resources/views/hops/edit.blade.php
  14. 2
      resources/views/mashes/create.blade.php
  15. 2
      resources/views/mashes/edit.blade.php
  16. 8
      resources/views/yeasts/create.blade.php
  17. 8
      resources/views/yeasts/edit.blade.php

4
resources/views/adjunctadditions/create.blade.php

@ -26,11 +26,11 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="amount">Amount</label> <label for="amount">Amount</label>
<input type="text" size="10" class="form-control" name="amount">
<input type="text" maxlength="10" class="form-control" name="amount">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="timing">Timing</label> <label for="timing">Timing</label>
<input type="text" size="10" class="form-control" name="timing">
<input type="text" maxlength="10" class="form-control" name="timing">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="alternative">Alternative (ID)</label> <label for="alternative">Alternative (ID)</label>

6
resources/views/beers/create.blade.php

@ -34,15 +34,15 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="abv">ABV %</label> <label for="abv">ABV %</label>
<input type="text" class="form-control" name="abv">
<input type="text" maxlength="5" class="form-control" name="abv">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="og">Original Gravity (OG)</label> <label for="og">Original Gravity (OG)</label>
<input type="text" class="form-control" name="og">
<input type="text" maxlength="8" class="form-control" name="og">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="fg">Final Gravity (FG)</label> <label for="fg">Final Gravity (FG)</label>
<input type="text" class="form-control" name="fg">
<input type="text" maxlength="8" class="form-control" name="fg">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="source">Source</label> <label for="source">Source</label>

6
resources/views/beers/edit.blade.php

@ -31,15 +31,15 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="abv">ABV %</label> <label for="abv">ABV %</label>
<input type="text" class="form-control" name="abv" value="{{ $beer->abv }}" />
<input type="text" maxlength="5" class="form-control" name="abv" value="{{ $beer->abv }}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="og">Original Gravity (OG)</label> <label for="og">Original Gravity (OG)</label>
<input type="text" class="form-control" name="og" value="{{ $beer->og }}" />
<input type="text" maxlength="8" class="form-control" name="og" value="{{ $beer->og }}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="fg">Final Gravity (FG)</label> <label for="fg">Final Gravity (FG)</label>
<input type="text" class="form-control" name="fg" value="{{ $beer->fg }}" />
<input type="text" maxlength="8" class="form-control" name="fg" value="{{ $beer->fg }}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="source">Source</label> <label for="source">Source</label>

2
resources/views/fermentations/create.blade.php

@ -26,7 +26,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="temperature">Temperature</label> <label for="temperature">Temperature</label>
<input type="text" class="form-control" name="temperature">
<input type="text" maxlength="20" class="form-control" name="temperature">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="duration">Duration</label> <label for="duration">Duration</label>

2
resources/views/fermentations/edit.blade.php

@ -26,7 +26,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="temperature">Temperature</label> <label for="temperature">Temperature</label>
<input type="text" class="form-control" name="temperature" value="{{$fermentation->temperature}}" />
<input type="text" maxlength="20" class="form-control" name="temperature" value="{{$fermentation->temperature}}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="duration">Duration</label> <label for="duration">Duration</label>

4
resources/views/grainbills/create.blade.php

@ -26,11 +26,11 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="amount">Amount</label> <label for="amount">Amount</label>
<input type="text" class="form-control" name="amount">
<input type="text" maxlength="7" class="form-control" name="amount">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="grain_bill">% of Total Grain Bill</label> <label for="grain_bill">% of Total Grain Bill</label>
<input type="text" class="form-control" name="grain_bill">
<input type="text" maxlength="4"class="form-control" name="grain_bill">
</div> </div>
<button type="submit" class="btn btn-primary">Add Grain</button> <button type="submit" class="btn btn-primary">Add Grain</button>
</form> </form>

4
resources/views/grainbills/edit.blade.php

@ -26,11 +26,11 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="amount">Amount</label> <label for="amount">Amount</label>
<input type="text" class="form-control" name="amount" value="{{$grainbill->amount}}" />
<input type="text" maxlength="7" class="form-control" name="amount" value="{{$grainbill->amount}}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="grain_bill">% of Total Grain Bill</label> <label for="grain_bill">% of Total Grain Bill</label>
<input type="text" class="form-control" name="grain_bill" value="{{$grainbill->grain_bill}}" />
<input type="text" maxlength="4" class="form-control" name="grain_bill" value="{{$grainbill->grain_bill}}" />
</div> </div>
<button type="submit" class="btn btn-primary">Update</button> <button type="submit" class="btn btn-primary">Update</button>
</form> </form>

8
resources/views/grains/create.blade.php

@ -30,19 +30,19 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="lintner">Lintner</label> <label for="lintner">Lintner</label>
<input type="text" class="form-control" name="lintner">
<input type="text" maxlength="10" class="form-control" name="lintner">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="winkol">Windisch-Kolbach</label> <label for="winkol">Windisch-Kolbach</label>
<input type="text" class="form-control" name="winkol">
<input type="text" maxlength="10" class="form-control" name="winkol">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="lovibond">Lovibond</label> <label for="lovibond">Lovibond</label>
<input type="text" class="form-control" name="lovibond">
<input type="text" maxlength="10" class="form-control" name="lovibond">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="ebc">EBC</label> <label for="ebc">EBC</label>
<input type="text" class="form-control" name="ebc">
<input type="text" maxlength="10" class="form-control" name="ebc">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="alternative">Alternative(s)</label> <label for="alternative">Alternative(s)</label>

8
resources/views/grains/edit.blade.php

@ -30,19 +30,19 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="lintner">Lintner</label> <label for="lintner">Lintner</label>
<input type="text" class="form-control" name="lintner" value="{{$grain->lintner}}"/>
<input type="text" maxlength="10" class="form-control" name="lintner" value="{{$grain->lintner}}"/>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="winkol">Windisch-Kolbach</label> <label for="winkol">Windisch-Kolbach</label>
<input type="text" class="form-control" name="winkol" value="{{$grain->winkol}}"/>
<input type="text" maxlength="10" class="form-control" name="winkol" value="{{$grain->winkol}}"/>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="lovibond">Lovibond</label> <label for="lovibond">Lovibond</label>
<input type="text" class="form-control" name="lovibond" value="{{$grain->lovibond}}"/>
<input type="text" maxlength="10" class="form-control" name="lovibond" value="{{$grain->lovibond}}"/>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="ebc">EBC</label> <label for="ebc">EBC</label>
<input type="text" class="form-control" name="ebc" value="{{$grain->ebc}}"/>
<input type="text" maxlength="10" class="form-control" name="ebc" value="{{$grain->ebc}}"/>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="alternative">Alternative(s)</label> <label for="alternative">Alternative(s)</label>

4
resources/views/hopadditions/create.blade.php

@ -26,11 +26,11 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="amount">Amount</label> <label for="amount">Amount</label>
<input type="text" class="form-control" name="amount">
<input type="text" maxlength="10" class="form-control" name="amount">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="timing">Timing</label> <label for="timing">Timing</label>
<input type="text" class="form-control" name="timing">
<input type="text" maxlength="10" class="form-control" name="timing">
</div> </div>
<button type="submit" class="btn btn-primary">Add Hop Addition</button> <button type="submit" class="btn btn-primary">Add Hop Addition</button>
</form> </form>

4
resources/views/hopadditions/edit.blade.php

@ -26,11 +26,11 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="amount">Amount</label> <label for="amount">Amount</label>
<input type="text" class="form-control" name="amount" value="{{$hopaddition->amount}}" />
<input type="text" maxlength="10" class="form-control" name="amount" value="{{$hopaddition->amount}}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="timing">Timing</label> <label for="timing">Timing</label>
<input type="text" class="form-control" name="timing" value="{{$hopaddition->timing}}" />
<input type="text" maxlength="10" class="form-control" name="timing" value="{{$hopaddition->timing}}" />
</div> </div>
<button type="submit" class="btn btn-primary">Update</button> <button type="submit" class="btn btn-primary">Update</button>
</form> </form>

16
resources/views/hops/create.blade.php

@ -34,35 +34,35 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="">Alpha-Acid %</label> <label for="">Alpha-Acid %</label>
<input type="text" class="form-control" name="alpha_acid">
<input type="text" maxlength="9" class="form-control" name="alpha_acid">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="">Beta-Acid %</label> <label for="">Beta-Acid %</label>
<input type="text" class="form-control" name="beta_acid">
<input type="text" maxlength="9" class="form-control" name="beta_acid">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="">Total Oil %</label> <label for="">Total Oil %</label>
<input type="text" class="form-control" name="total_oil">
<input type="text" maxlength="9" class="form-control" name="total_oil">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="">Cohumulone %</label> <label for="">Cohumulone %</label>
<input type="text" class="form-control" name="cohumulone">
<input type="text" maxlength="9" class="form-control" name="cohumulone">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="">Myrcene %</label> <label for="">Myrcene %</label>
<input type="text" class="form-control" name="myrcene">
<input type="text" maxlength="9" class="form-control" name="myrcene">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="">Humulene %</label> <label for="">Humulene %</label>
<input type="text" class="form-control" name="humulene">
<input type="text" maxlength="9" class="form-control" name="humulene">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="">Farnesene %</label> <label for="">Farnesene %</label>
<input type="text" class="form-control" name="farnesene">
<input type="text" maxlength="9" class="form-control" name="farnesene">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="">Caryophyllene</label> <label for="">Caryophyllene</label>
<input type="text" class="form-control" name="caryophyllene">
<input type="text" maxlength="9" class="form-control" name="caryophyllene">
</div> </div>
<button type="submit" class="btn btn-primary">Add Hop</button> <button type="submit" class="btn btn-primary">Add Hop</button>
</form> </form>

16
resources/views/hops/edit.blade.php

@ -34,35 +34,35 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="alpha_acid">Alpha-Acid %</label> <label for="alpha_acid">Alpha-Acid %</label>
<input type="text" class="form-control" name="alpha_acid" value="{{$hop->alpha_acid}}" />
<input type="text" maxlength="9" class="form-control" name="alpha_acid" value="{{$hop->alpha_acid}}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="beta_acid">Beta-Acid %</label> <label for="beta_acid">Beta-Acid %</label>
<input type="text" class="form-control" name="beta_acid" value="{{$hop->beta_acid}}" />
<input type="text" maxlength="9" class="form-control" name="beta_acid" value="{{$hop->beta_acid}}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="total_oil">Total Oil %</label> <label for="total_oil">Total Oil %</label>
<input type="text" class="form-control" name="total_oil" value="{{$hop->total_oil}}" />
<input type="text" maxlength="9" class="form-control" name="total_oil" value="{{$hop->total_oil}}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="cohumulone">Cohumulone %</label> <label for="cohumulone">Cohumulone %</label>
<input type="text" class="form-control" name="cohumulone" value="{{$hop->cohumulone}}" />
<input type="text" maxlength="9" class="form-control" name="cohumulone" value="{{$hop->cohumulone}}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="myrcene">Myrcene %</label> <label for="myrcene">Myrcene %</label>
<input type="text" class="form-control" name="myrcene" value="{{$hop->myrcene}}" />
<input type="text" maxlength="9" class="form-control" name="myrcene" value="{{$hop->myrcene}}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="humulene">Humulene %</label> <label for="humulene">Humulene %</label>
<input type="text" class="form-control" name="humulene" value="{{$hop->humulene}}" />
<input type="text" maxlength="9" class="form-control" name="humulene" value="{{$hop->humulene}}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="farnesene">Farnesene %</label> <label for="farnesene">Farnesene %</label>
<input type="text" class="form-control" name="farnesene" value="{{$hop->farnesene}}" />
<input type="text" maxlength="9" class="form-control" name="farnesene" value="{{$hop->farnesene}}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="caryophyllene">Caryophyllene</label> <label for="caryophyllene">Caryophyllene</label>
<input type="text" class="form-control" name="caryophyllene" value="{{$hop->caryophyllene}}" />
<input type="text" maxlength="9" class="form-control" name="caryophyllene" value="{{$hop->caryophyllene}}" />
</div> </div>
<button type="submit" class="btn btn-primary">Update</button> <button type="submit" class="btn btn-primary">Update</button>
</form> </form>

2
resources/views/mashes/create.blade.php

@ -30,7 +30,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="stage">Stage</label> <label for="stage">Stage</label>
<input type="text" class="form-control" name="stage">
<input type="text" maxlength="5" class="form-control" name="stage">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="boil">Length of Boil</label> <label for="boil">Length of Boil</label>

2
resources/views/mashes/edit.blade.php

@ -30,7 +30,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="stage">Stage</label> <label for="stage">Stage</label>
<input type="text" class="form-control" name="stage" value="{{$mash->stage}}" />
<input type="text" maxlength="5" class="form-control" name="stage" value="{{$mash->stage}}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="boil">Length of Boil</label> <label for="boil">Length of Boil</label>

8
resources/views/yeasts/create.blade.php

@ -26,19 +26,19 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="attenuation">Attenuation</label> <label for="attenuation">Attenuation</label>
<input type="text" class="form-control" name="attenuation">
<input type="text" maxlength="9" class="form-control" name="attenuation">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="flocculation">Flocculation</label> <label for="flocculation">Flocculation</label>
<input type="text" class="form-control" name="flocculation">
<input type="text" maxlength="15" class="form-control" name="flocculation">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="tolerance">Alcohol Tolerance</label> <label for="tolerance">Alcohol Tolerance</label>
<input type="text" class="form-control" name="tolerance">
<input type="text" maxlength="25" class="form-control" name="tolerance">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="temp_range">Temperature Range °C</label> <label for="temp_range">Temperature Range °C</label>
<input type="text" class="form-control" name="temp_range">
<input type="text" maxlength="7" class="form-control" name="temp_range">
</div> </div>
<button type="submit" class="btn btn-primary">Add Yeast</button> <button type="submit" class="btn btn-primary">Add Yeast</button>
</form> </form>

8
resources/views/yeasts/edit.blade.php

@ -26,19 +26,19 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="attenuation">Attenuation</label> <label for="attenuation">Attenuation</label>
<input type="text" class="form-control" name="attenuation" value="{{$yeast->attenuation}}" />
<input type="text" maxlength="9" class="form-control" name="attenuation" value="{{$yeast->attenuation}}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="flocculation">Flocculation</label> <label for="flocculation">Flocculation</label>
<input type="text" class="form-control" name="flocculation" value="{{$yeast->flocculation}}" />
<input type="text" maxlength="15" class="form-control" name="flocculation" value="{{$yeast->flocculation}}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="tolerance">Alcohol Tolerance</label> <label for="tolerance">Alcohol Tolerance</label>
<input type="text" class="form-control" name="tolerance" value="{{$yeast->tolerance}}" />
<input type="text" maxlength="25" class="form-control" name="tolerance" value="{{$yeast->tolerance}}" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="temp_range">Temperature Range °C</label> <label for="temp_range">Temperature Range °C</label>
<input type="text" class="form-control" name="temp_range" value="{{$yeast->temp_range}}" />
<input type="text" maxlength="7" class="form-control" name="temp_range" value="{{$yeast->temp_range}}" />
</div> </div>
<button type="submit" class="btn btn-primary">Update</button> <button type="submit" class="btn btn-primary">Update</button>
</form> </form>

Loading…
Cancel
Save