-
Notifications
You must be signed in to change notification settings - Fork 0
/
presentationForm.html
93 lines (78 loc) · 3.94 KB
/
presentationForm.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<div class="panel panel-default">
<div class="panel-heading" style> Presentation Form </div>
<form novalidate role="form" class="simple-form" name="myPresForm">
<div class="form-group" data-ng-hide="fromTemplate || showNewPresForm">
<label>Presentation ID : </label> {{myPres.id}}
<input type="hidden" data-ng-model="myPres.id" data-ng-value="myPres.id">
</div>
<div class="form-group">
<label for="name">Presentation Name : </label> {{myPres.name}}
<input type="hidden" data-ng-model="myPres.name" data-ng-value="myPres.name">
<!--span class="label label-danger" data-ng-show="submitted && myPresForm.name.$error.required">Required!</span>
<input type="text" data-ng-model="myPres.name" name="name" class="form-control" required/-->
</div>
<!--
<label class="text"><u>List of Images</u></label>
<div class="form-group" data-ng-repeat="img in myPres.imageItems" data-ng-show="myPres.imageItems">
<label class="text" for="{{img.phId}}">placeholder({{img.phId}}) image({{img.itemIndex+1}})</label>
<input type="text" data-ng-model="img.data" name="imgData" id="{{img.phId}}_{{img.itemIndex}}" style="width:50%" />
<span class="error" data-ng-show="myPresForm.imgData.$error.required">Required!</span>
<span class="error" data-ng-show="myPresForm.imgData.$error.url">Not valid url!</span>
</div>
<div class="form-group" data-ng-show="!myPres.imageItems">
No Images Found!
</div> -->
<!-- IMAGE ITEMS -->
<table class="table table-bordered">
<thead>
<tr>
<th colspan="2" style="text-align:center">LIST OF IMAGE ITEMS</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="img in myPres.imageItems" data-ng-show="myPres.imageItems">
<th style="width:30%">placeholder({{img.phId}}) image({{img.itemIndex+1}})</th>
<td>
<input type="text" data-ng-model="img.data" name="imgData" id="{{img.phId}}_{{img.itemIndex}}" style="width:80%" />
<span class="error" data-ng-show="myPresForm.imgData.$error.required">Required!</span>
<span class="error" data-ng-show="myPresForm.imgData.$error.url">Not valid url!</span>
</td>
</tr>
<tr data-ng-show="!myPres.imageItems">
<td colspan="2" style="text-align:center">No Images Found</td>
</tr>
</tbody>
</table>
<!-- TEX ITEMS -->
<table class="table table-bordered">
<thead>
<tr>
<th colspan="2" style="text-align:center">LIST OF TEXT ITEMS</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="txt in myPres.textItems" data-ng-show="myPres.textItems">
<th style="width:30%">placeholder({{txt.phId}}) text({{txt.txtSpanId}})</th>
<td>
<input type="text" data-ng-model="txt.data" name="txtData" id="{{txt.txtSpanId}}" style="width:80%" />
<span class="error" data-ng-show="myPresForm.txtData.$error.required">Required!</span>
</td>
</tr>
<tr data-ng-show="!myPres.textItems">
<td colspan="2" style="text-align:center">No Text Items Found</td>
</tr>
</tbody>
</table>
<div class="form-group">
<label for="publishType">Publish To</label>
<input type="radio" value="0" data-ng-model="myPres.publish" name="publishType"/> Only Signed In Users
<input type="radio" value="1" data-ng-model="myPres.publish" name="publishType" /> Everyone
</div>
<div class="form-group">
<label for="presIsTemplate">Is Template? </label>
<input type="checkbox" data-ng-model="myPres.isTemplate" name="presIsTemplate" data-ng-init="pres.isTemplate=false"/>
</div>
<button class="btn btn-primary" data-ng-hide="fromTemplate || showNewPresForm" data-ng-click="updatePresentation(myPres,myPresForm)">Save</button>
<button class="btn btn-primary" data-ng-show="fromTemplate || showNewPresForm" data-ng-click="createPresentation(myPres,myPresForm)">Create</button>
<button class="btn btn-primary" data-ng-click="publishPresentation(myPres)">Publish</button>
<button class="btn btn-primary" data-ng-click="deletePresentation(myPres)">Delete</button>