ad3d538b27791bba0c7ac2a9ca8de12ac06a7834
[portal/sdk.git] /
1 <div class = "ng-scope" style= "height: 710px"" >
2         <div class="b2b-modal-header ng-scope in">
3                 <h2 id="myModalLabel" modal-title="">Role Function Create</h2>
4                 <div class="corner-button in">
5                         <button type="button" class="close" aria-label="Close"
6                                 ng-click="$dismiss('cancel')"></button>
7                 </div>
8         </div>
9
10         <div class="b2b-modal-body ng-scope ng-isolate-scope in" tabindex="0"
11                 role="region" aria-label="Modal header text content"
12                 style="height: 280px;">
13
14                 <div class="field-group">
15                         <span ID="required" style="color: Red;" visible="false"> *</span>Name
16                         <input id="textinputID-2a" ddh-reset ng-model="roleFun['name']"
17                                 placeholder="Name" class="span12" type="text">
18                 </div>
19                 <div class="error-container"
20                         ng-show="!roleFun['name']||roleFun['name']==0">
21                         <small id="name-required" class="err-message">Name is Required</small>
22                 </div>
23                 <br>
24                 <div class="field-group">
25                         <span ID="required" style="color: Red;" visible="false"> *</span>Code
26                         <input id="textinputID-2a" ddh-reset ng-model="roleFun['code']"
27                                 placeholder="Code" class="span12" type="text">
28
29                 </div>
30                 <div class="error-container"
31                         ng-show="!roleFun['code']||roleFun['code']==0">
32                         <small id="code-required" class="err-message">Code is
33                                 Required</small>
34                 </div>
35                 <br>
36                 <div class="field-group">
37                         <span ID="required" style="color: Red;" visible="false"> *</span>
38                         Type
39                         <div ng-repeat="radioObj in ngRepeatDemo" class="form-row"
40                                 role="radio">
41
42                                 <label for="{{radioObj.id}}" class="radio"> <input
43                                         type="radio" ng-model="selectedvalueradioButtonGroup.type"
44                                         ng-disabled="disableCd" name="nameradioButton"
45                                         value="{{radioObj.value}}" id="{{radioObj.id}}"
46                                         name="nameradioButton" ddh-reset> <i class="skin"></i> <span>{{radioObj.labelvalue}}</span>
47                                 </label> <br>
48                         </div>
49                         <br> <input
50                                 ng-show="selectedvalueradioButtonGroup.type === 'other'"
51                                 id="type-property-input" class="adminForm-name-property-input"
52                                 ng-model= "selectedvalueradioButtonOther.type" ng-disabled="disableCd" type="text"
53                                 maxlength="30" />
54                 </div>
55                 <div class="error-container"
56                         ng-show="selectedvalueradioButtonGroup.type === 'other'">
57                         <small id="microservices-details-input-url-required"
58                                 class="err-message">Type is Required</small>
59                 </div>
60                 <br>
61                 <div class="field-group">
62                         <span ID="required" style="color: Red;" visible="false"> *</span>Action
63                         <input id="textinputID-2c" ddh-reset ng-model="roleFun['action']"
64                                 placeholder="Action" class="span12" type="text">
65                 </div>
66                 <div class="error-container"
67                         ng-show="!roleFun['action']||roleFun['action']==0">
68                         <small id="action-required" class="err-message">Action is Required</small>
69                 </div>
70         </div>
71         <br>
72
73         <div class="b2b-modal-footer ng-scope ng-isolate-scope in" style = "top: 200px">
74                 <div class="cta-button-group in">
75                         <button class="btn btn-alt btn-medium" type="button" ng-disabled= "(!roleFun['name']||roleFun['name']==0)|| (!roleFun['code']||roleFun['code']==0) || (!selectedvalueradioButtonGroup.type||selectedvalueradioButtonGroup.type.length==0)||(selectedvalueradioButtonGroup.type ==='other'&&(!selectedvalueradioButtonOther.type||selectedvalueradioButtonOther.type.length==0)) || (!roleFun['action']||roleFun['action']==0)"
76                                 ng-click="save(roleFun,selectedvalueradioButtonGroup.type)">Create</button>
77                         <button class="btn btn-medium" type="button"
78                                 ng-click="$dismiss('cancel')">Cancel</button>
79                 </div>
80         </div>
81 </div>