Skip to content

Commit

Permalink
Better order of fields
Browse files Browse the repository at this point in the history
  • Loading branch information
philschonholzer committed Oct 8, 2021
1 parent eee5cc3 commit 4ecafce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Web/View/Co2Producers/Edit.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ renderForm co2Producer categories =
<legend>Single common consumption</legend>
<div style="display: flex; gap: 1em;">
{(textField #singleConsumptionFrom) { required = True, fieldLabel = "From", helpText = commonHelpText }}
{(textField #singleConsumptionTo) { required = True, fieldLabel = "To", helpText = commonHelpText }}
{(textField #singleConsumptionAverage) { required = True, fieldLabel = "Average", helpText = commonHelpText }}
{(textField #singleConsumptionTo) { required = True, fieldLabel = "To", helpText = commonHelpText }}
</div>
<p><small>What is a common single unit that is consumed of this producer.</small></p>
</fieldset>
<fieldset>
<legend>Times per year consumed</legend>
<div style="display: flex; gap: 1em;">
{(textField #timesPerYearFrom) { required = True, fieldLabel = "From", helpText = commonHelpText }}
{(textField #timesPerYearTo) { required = True, fieldLabel = "To", helpText = commonHelpText }}
{(textField #timesPerYearAverage) { required = True, fieldLabel = "Average", helpText = commonHelpText }}
{(textField #timesPerYearFrom) { required = True, fieldLabel = "From" }}
{(textField #timesPerYearAverage) { required = True, fieldLabel = "Average" }}
{(textField #timesPerYearTo) { required = True, fieldLabel = "To" }}
</div>
<p><small>How many times is a single unit consumed per year.</small></p>
</fieldset>
Expand Down
8 changes: 4 additions & 4 deletions Web/View/Co2Producers/New.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ renderForm co2Producer categories =
<legend>Single common consumption</legend>
<div style="display: flex; gap: 1em;">
{(textField #singleConsumptionFrom) { required = True, fieldLabel = "From", helpText = commonHelpText }}
{(textField #singleConsumptionTo) { required = True, fieldLabel = "To", helpText = commonHelpText }}
{(textField #singleConsumptionAverage) { required = True, fieldLabel = "Average", helpText = commonHelpText }}
{(textField #singleConsumptionTo) { required = True, fieldLabel = "To", helpText = commonHelpText }}
</div>
<p><small>What is a common single unit that is consumed of this producer.</small></p>
</fieldset>
<fieldset>
<legend>Times per year consumed</legend>
<div style="display: flex; gap: 1em;">
{(textField #timesPerYearFrom) { required = True, fieldLabel = "From", helpText = commonHelpText }}
{(textField #timesPerYearTo) { required = True, fieldLabel = "To", helpText = commonHelpText }}
{(textField #timesPerYearAverage) { required = True, fieldLabel = "Average", helpText = commonHelpText }}
{(textField #timesPerYearFrom) { required = True, fieldLabel = "From" }}
{(textField #timesPerYearAverage) { required = True, fieldLabel = "Average" }}
{(textField #timesPerYearTo) { required = True, fieldLabel = "To" }}
</div>
<p><small>How many times is a single unit consumed per year.</small></p>
</fieldset>
Expand Down

0 comments on commit 4ecafce

Please sign in to comment.