Skip to content

Commit

Permalink
fix(accounts): standardize button sizes
Browse files Browse the repository at this point in the history
This commit increases the button size on the accounts edit modal.  They
are now all btn instead of a mix of btn and btn-sm.
  • Loading branch information
jniles committed Nov 5, 2017
1 parent d0787b9 commit 8415bfb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions client/src/modules/accounts/edit/accounts.edit.modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@
<!-- @TODO Re-disable account type editing after accounts are stable -->
<!-- Account type read only -->
<div ng-if="!AccountEditCtrl.isCreateState" class="form-group">
<label class="control-label">{{ "FORM.LABELS.ACCOUNT_TYPE" | translate }}</label>
<p class="form-control-static" ng-if="AccountEditCtrl.account" id="type-static" translate>{{::AccountEditCtrl.getTypeTitle(AccountEditCtrl.account.type_id)}}</p>
</div>
<label class="control-label">{{ "FORM.LABELS.ACCOUNT_TYPE" | translate }}</label>
<p class="form-control-static" ng-if="AccountEditCtrl.account" id="type-static" translate>{{::AccountEditCtrl.getTypeTitle(AccountEditCtrl.account.type_id)}}</p>
</div>

<!-- TODO(@jniles): can this just use ng-options? -->
<div
<div
class="form-group"
ng-if="AccountEditCtrl.isCreateState"
ng-class="{'has-error' : (AccountForm.type_id.$invalid && AccountForm.$submitted) || AccountEditCtrl.invalidTitleAccount}">
ng-class="{'has-error' : (AccountForm.type_id.$invalid && AccountForm.$submitted) || AccountEditCtrl.invalidTitleAccount}">
<label class="control-label" translate>FORM.LABELS.ACCOUNT_TYPE</label>
<select
class="form-control"
ng-model="AccountEditCtrl.account.type_id"
ng-change="AccountEditCtrl.titleChangedValidation(AccountEditCtrl.account.type_id)"
name="type_id"
name="type_id"
required>
<option value="" disabled translate>FORM.SELECT.ACCOUNT_TYPE</option>
<option ng-repeat="entry in AccountEditCtrl.types" value="{{entry.id}}" data-key="{{entry.translation_key}}" translate>{{entry.translation_key}}</option>
Expand Down Expand Up @@ -130,7 +130,7 @@
<button
type="button"
ng-if="!AccountEditCtrl.isCreateState"
class="btn btn-danger btn-sm"
class="btn btn-danger"
data-method="delete"
ng-click="AccountEditCtrl.deleteAccount(AccountEditCtrl.account)">
<span translate>ACCOUNT.SUBMIT_DELETE</span>
Expand Down

0 comments on commit 8415bfb

Please sign in to comment.