User Tools

Site Tools


tech2018:edit_account_view

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tech2018:edit_account_view [2018/05/24 09:13]
Gianluca Pelliccioli
— (current)
Line 1: Line 1:
-===== Edit_account_data FORM VIEW ===== 
  
-<code> 
-<div class="clearfix"></div> 
-<div class="row-fluid"> 
-        <!-- Your Form Template --> 
- <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> 
- 
-[[tech2018:develop_custom_form| Back to: dev forms/develop custom forms]] 
tech2018/edit_account_view.1527153233.txt.gz ยท Last modified: 2018/05/24 09:13 by Gianluca Pelliccioli