Style order cycle fees

This commit is contained in:
Rohan Mitchell
2013-08-16 10:36:41 +10:00
parent 290607b5bf
commit 19e7537b64
2 changed files with 12 additions and 4 deletions

View File

@@ -32,6 +32,12 @@ form.order_cycle {
float: left;
margin-right: 3em;
}
ol {
list-style-type: none;
li {
margin-bottom: 0.5em;
}
}
table.exchanges {
tr td.active {
width: 20px;
@@ -68,6 +74,7 @@ form.order_cycle {
.coordinator-fees {
margin-top: 1em;
}
.actions {
margin-top: 3em;
}

View File

@@ -1,5 +1,6 @@
%table.coordinator-fees
%tr{'ng-repeat' => 'enterprise_fee in order_cycle.coordinator_fees'}
%td= select_tag 'order_cycle_coordinator_fee_{{ $index }}_id', nil, {'ng-model' => 'enterprise_fee.id', 'ng-options' => 'enterprise_fee.id as enterprise_fee.name for enterprise_fee in enterpriseFeesForEnterprise(order_cycle.coordinator_id)'}
%td= link_to 'Remove', '#', {'id' => 'order_cycle_coordinator_fee_{{ $index }}_remove', 'ng-click' => 'removeCoordinatorFee($event, $index)'}
%ol.coordinator-fees
%li{'ng-repeat' => 'enterprise_fee in order_cycle.coordinator_fees'}
= select_tag 'order_cycle_coordinator_fee_{{ $index }}_id', nil, {'ng-model' => 'enterprise_fee.id', 'ng-options' => 'enterprise_fee.id as enterprise_fee.name for enterprise_fee in enterpriseFeesForEnterprise(order_cycle.coordinator_id)'}
= link_to 'Remove', '#', {'id' => 'order_cycle_coordinator_fee_{{ $index }}_remove', 'ng-click' => 'removeCoordinatorFee($event, $index)'}
= f.submit 'Add coordinator fee', 'ng-click' => 'addCoordinatorFee($event)'