| Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
tech2018:edit_account_view [2018/05/14 07:11] Adharsh G |
— (current) |
| ===== Edit_account_data FORM VIEW ===== | |
| |
| <code> | |
| <div class="clearfix"></div> | |
| <div class="row-fluid"> | |
| <div class="col-md-12"> | |
| <div class="form-group"> | |
| <label>First Name</label> | |
| <input ng-readonly="activity.status=='DONE'" class="form-control" | |
| ng-model="forms[$index].first_name" placeholder="Enter first name"> | |
| </div> | |
| <div class="form-group"> | |
| <label>Last Name</label> | |
| <input ng-readonly="activity.status=='DONE'" class="form-control" | |
| ng-model="forms[$index].last_name" placeholder="Enter last name"> | |
| </div> | |
| | |
| <div class="form-group"> | |
| <input ng-readonly="activity.status=='DONE'" type="hidden" class="form-control" | |
| ng-init="forms[$index].account_id = activities[0].account.id" ng-model="forms[$index].account_id" placeholder="Enter last name"> | |
| </div> | |
| <div class="form-group"> | |
| <label>Description</label> | |
| <textarea ng-readonly="activity.status=='DONE'" class="form-control" | |
| ng-model="forms[$index].description"></textarea> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- ACTIVITY FORM --> | |
| |
| <hr ng-if="activity.status!='DONE'"> | |
| |
| <!-- ACTIVITY STATUS --> | |
| <div class="row-fluid" ng-if="activity.status!='DONE'"> | |
| <div class="col-md-12"> | |
| <tabset> <tab heading="Final Status"> | |
| <div class="row-fluid"> | |
| <div class="col-md-12"> | |
| <label class="radio" | |
| ng-repeat="status in activity.statuses | filter: { final: 't' }"> <input | |
| type="radio" name="{{$parent.$index}}_status[]" | |
| ng-model="variables[$parent.$index].status" value="{{status.key}}">{{status.label}} | |
| </label> | |
| </div> | |
| </div> | |
| </tab> <tab heading="In Progress Status"> | |
| <div class="row-fluid"> | |
| <div class="col-md-12"> | |
| <label class="radio" | |
| ng-repeat="status in activity.statuses | filter: { final: 'f' }"> <input | |
| type="radio" name="{{$parent.$index}}_status[]" | |
| ng-model="variables[$parent.$index].status" value="{{status.key}}">{{status.label}} | |
| </label> | |
| </div> | |
| </div> | |
| </tab> </tabset> | |
| </div> | |
| </div> | |
| <!-- ACTIVITY STATUS --> | |
| |
| |
| <!-- ACTION BUTTONS --> | |
| <div class="row-fluid" ng-if="activity.status!='DONE'"> | |
| <div class="col-md-12"> | |
| <button type="button" class="btn btn-success" | |
| ng-click="saveForm($index,'/actions/account_change',activity.id)">Save</button> | |
| <button type="button" class="btn btn-default" | |
| ng-click="resetForm($index)">Cancel</button> | |
| </div> | |
| </div> | |
| <!-- ACTION BUTTONS --> | |
| |
| |
| |
| </code> | |