Skip to content

Commit ed6fa31

Browse files
author
Dushyant Bhalgami
committed
restrict the length for group name
1 parent 8a15d9e commit ed6fa31

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/app/groups/group-edit-dialog.html

+9-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<div class="inmodal">
22
<div class="modal-header">
3-
<button type="button" class="close" aria-label="Close" ng-click="close()"><span aria-hidden="true">&times;</span></button>
3+
<button type="button" class="close" aria-label="Close" ng-click="close()">
4+
<span aria-hidden="true">&times;</span>
5+
</button>
46
<h4 class="modal-title" id="reg-dialog-label">Add Group</h4>
57
</div>
68
<div class="modal-body">
@@ -9,24 +11,20 @@ <h4 class="modal-title" id="reg-dialog-label">Add Group</h4>
911
<div class="col-md-12" ng-include src="'components/alert/alert.html'"></div>
1012
<div class="form-group" ng-class="{'has-error': groupForm.name.$touched && groupForm.name.$invalid}">
1113
<label>Name</label>
12-
<input ng-model="group.name" name="name" type="text" class="form-control" required>
14+
<input ng-model="group.name" maxlength="150" name="name" type="text" class="form-control" required />
1315
</div>
1416
<div class="form-group">
1517
<label>Description</label>
16-
<textarea ng-model="group.description" class="form-control"></textarea>
18+
<textarea ng-model="group.description" maxlength="2048" class="form-control"></textarea>
1719
</div>
1820
<div class="form-group">
1921
<div class="checkbox">
20-
<label>
21-
<input type="checkbox" ng-model="group.privateGroup">Private Group
22-
</label>
22+
<label> <input type="checkbox" ng-model="group.privateGroup" />Private Group </label>
2323
</div>
2424
</div>
2525
<div class="form-group">
2626
<div class="checkbox">
27-
<label>
28-
<input type="checkbox" ng-model="group.selfRegister">Self Register
29-
</label>
27+
<label> <input type="checkbox" ng-model="group.selfRegister" />Self Register </label>
3028
</div>
3129
</div>
3230
</form>
@@ -40,8 +38,7 @@ <h4 class="modal-title" id="reg-dialog-label">Add Group</h4>
4038
Save
4139
</button>
4240
</div>
43-
<div style="text-align:center;position:absolute;top:65px;left:0;width:100%;height:100%;zIndex:1;"
44-
ng-show="isLoading">
45-
<img src="assets/images/loading.gif"/>
41+
<div style="text-align:center;position:absolute;top:65px;left:0;width:100%;height:100%;zIndex:1;" ng-show="isLoading">
42+
<img src="assets/images/loading.gif" />
4643
</div>
4744
</div>

0 commit comments

Comments
 (0)