Skip to content

Commit

Permalink
chore(stock): do not require description
Browse files Browse the repository at this point in the history
Removes the requirement that a user type a description on entry/exit
since we automagically template in that description.

Closes #4082.
  • Loading branch information
jniles committed Jan 24, 2020
1 parent b181bbb commit 6ea9602
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions client/src/modules/stock/entry/entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
<span translate>FORM.LABELS.DESCRIPTION</span>
</label>
<textarea class="form-control" name="description" ng-model="StockCtrl.movement.description" placeholder="{{ 'FORM.PLACEHOLDERS.DESCRIPTION' | translate }}"
ng-maxlength="StockCtrl.maxLength" required>
</textarea>
<div class="help-block" ng-messages="StockEntryForm.description.$error" ng-show="StockEntryForm.$submitted">
<div ng-messages-include="modules/templates/messages.tmpl.html"></div>
</div>
ng-maxlength="StockCtrl.maxLength">
</textarea>
<div class="help-block" ng-messages="StockEntryForm.description.$error" ng-show="StockEntryForm.$submitted">
<div ng-messages-include="modules/templates/messages.tmpl.html"></div>
</div>
</div>
</div>
</div>
Expand Down
3 changes: 1 addition & 2 deletions client/src/modules/stock/exit/exit.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@
name="description"
ng-model="StockCtrl.movement.description"
placeholder="{{ 'FORM.PLACEHOLDERS.DESCRIPTION' | translate }}"
ng-maxlength="StockCtrl.maxLength"
required>
ng-maxlength="StockCtrl.maxLength">
</textarea>
<div class="help-block" ng-messages="StockExitForm.description.$error" ng-show="StockExitForm.$submitted">
<div ng-messages-include="modules/templates/messages.tmpl.html"></div>
Expand Down

0 comments on commit 6ea9602

Please sign in to comment.