|
18 | 18 | <div class="modal-body modal-roles"> |
19 | 19 | <div class="form-group"> |
20 | 20 | <label> |
21 | | - <input type="checkbox" name="name" data-ng-model="slugOption" ng-true-value="true" ng-false-value="false" /> |
| 21 | + <input type="checkbox" data-ng-model="slugOption" ng-true-value="true" ng-false-value="false" /> |
22 | 22 | Slug Field |
23 | 23 | </label> |
24 | 24 | <p class="small text-muted">Slug is optional and will auto generat from title post.</p> |
|
52 | 52 | <div class="modal-body"> |
53 | 53 | <div class="form-group"> |
54 | 54 | <label for="txtCatTitle">{{lbl.title}}</label> |
55 | | - <input type="text" class="form-control" id="txtCatTitle" name="txtCatTitle" data-ng-model="category.Title" focus-me="focusInput" /> |
| 55 | + <input type="text" class="form-control" id="txtCatTitle" name="txtCatTitle" data-ng-model="category.Title" focus-me="focusInput" /> |
56 | 56 | </div> |
57 | 57 | <div class="form-group"> |
58 | 58 | <label for="txtExcerpt">{{lbl.description}}</label> |
59 | | - <textarea class="form-control" id="txtExcerpt" name="txtExcerpt" data-ng-model="category.Description"> </textarea> |
| 59 | + <textarea class="form-control" id="txtExcerpt" name="txtExcerpt" data-ng-model="category.Description"> </textarea> |
60 | 60 | </div> |
61 | 61 | <div class="form-group"> |
62 | 62 | <label for="selAuthors">{{lbl.parent}}</label> |
63 | | - <select id="selAuthors" class="form-control" data-ng-options="o.OptionValue as o.OptionName for o in lookups.CategoryList" data-ng-model="category.Parent.OptionValue"> |
64 | | - <option value="">-- {{lbl.select.toLowerCase()}} --</option> |
65 | | - </select> |
| 63 | + <select id="selAuthors" class="form-control" data-ng-options="o.OptionValue as o.OptionName for o in lookups.CategoryList" data-ng-model="category.Parent.OptionValue"> |
| 64 | + <option value="">-- {{lbl.select.toLowerCase()}} --</option> |
| 65 | + </select> |
66 | 66 | </div> |
67 | 67 | </div> |
68 | 68 | <div class="modal-footer"> |
|
73 | 73 | </div> |
74 | 74 | </div> |
75 | 75 | </form> |
| 76 | + <div id="modal-custom-fields" class="modal fade"> |
| 77 | + <div class="modal-dialog"> |
| 78 | + <div class="modal-content"> |
| 79 | + <div class="modal-header"> |
| 80 | + <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="focusInput=false"><i class="fa fa-times"></i></button> |
| 81 | + <h4 class="modal-title">{{lbl.add}} {{lbl.customFields}}</h4> |
| 82 | + </div> |
| 83 | + <div class="modal-body modal-roles"> |
| 84 | + <div class="form-group"> |
| 85 | + <label class="control-label" for="txtKey">Key</label> |
| 86 | + <input type="text" id="txtKey" name="txtKey" class="form-control" data-ng-model="editItem.Key" focus-me="focusInput" /> |
| 87 | + </div> |
| 88 | + <div class="form-group"> |
| 89 | + <label class="control-label" for="txtValue">Value</label> |
| 90 | + <input type="text" id="txtValue" name="txtValue" class="form-control" data-ng-model="editItem.Value" /> |
| 91 | + </div> |
| 92 | + </div> |
| 93 | + <div class="modal-footer"> |
| 94 | + <button type="button" class="btn btn-hasicon btn-default" tabindex="-1" data-dismiss="modal" ng-click="focusInput=false"><i class="fa fa-ban"></i>{{lbl.cancel}}</button> |
| 95 | + <button type="button" data-ng-click="addCustom()" class="btn btn-success btn-hasicon"><i class="fa fa-plus"></i>{{lbl.add}}</button> |
| 96 | + </div> |
| 97 | + </div> |
| 98 | + </div> |
| 99 | + </div> |
76 | 100 | <div class="page-header clearfix"> |
77 | 101 | <span ng-if="post.Id"><a href="{{post.RelativeLink}}" class="btn btn-sm btn-hasicon btn-success pull-left" target="_blank"><i class="fa fa-eye"></i> {{lbl.goToPost}}</a></span> |
78 | 102 | <span ng-if="post.Id && post.IsPublished"><a href="#" class="btn btn-sm btn-hasicon btn-warning pull-left" ng-click="publish(false)"><i class="fa fa-undo"></i> {{lbl.unpublish}}</a></span> |
|
85 | 109 | </div> |
86 | 110 | <div class="content-inner newpost"> |
87 | 111 | <form id="form" action=""> |
88 | | - <div id="modal-custom-fields" class="modal fade"> |
89 | | - <div class="modal-dialog"> |
90 | | - <div class="modal-content"> |
91 | | - <div class="modal-header"> |
92 | | - <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="focusInput=false"><i class="fa fa-times"></i></button> |
93 | | - <h4 class="modal-title">{{lbl.add}}</h4> |
94 | | - </div> |
95 | | - <div class="modal-body modal-roles"> |
96 | | - <div class="form-group"> |
97 | | - <label class="control-label" for="txtKey">Key</label> |
98 | | - <input type="text" id="txtKey" name="txtKey" class="form-control" data-ng-model="editItem.Key" focus-me="focusInput" /> |
99 | | - <label class="control-label" for="txtValue">Value</label> |
100 | | - <input type="text" id="txtValue" name="txtValue" class="form-control" data-ng-model="editItem.Value" /> |
101 | | - </div> |
102 | | - </div> |
103 | | - <div class="modal-footer"> |
104 | | - <button type="button" data-ng-click="addCustom()" class="btn btn-success btn-tabkey pull-right"><i class="fa fa-save"></i>{{lbl.save}}</button> |
105 | | - <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="focusInput=false"><i class="fa fa-ban"></i>{{lbl.cancel}}</button> |
106 | | - </div> |
107 | | - </div> |
108 | | - </div> |
109 | | - </div> |
110 | 112 | <div class="row"> |
111 | 113 | <div class="col-sm-8 col-md-9"> |
112 | 114 | <input type="text" id="txtTitle" name="txtTitle" autocomplete="off" placeholder="{{lbl.titleOfPost}}..." class="form-control newpost-title" data-ng-model="post.Title" /> |
|
157 | 159 | <select id="selAuthors" ng-disabled="usageScenario != 'multiusers'" class="form-control" data-ng-options="o.OptionName for o in lookups.AuthorList" data-ng-model="selectedAuthor"></select> |
158 | 160 | </div> |
159 | 161 | </div> |
160 | | - |
161 | 162 | <div class="newpost-widget" data-ng-show="customFieldOption"> |
162 | 163 | <label class="newpost-widget-title"> |
163 | 164 | {{lbl.customFields}} |
164 | 165 | </label> |
165 | 166 | <a class="btn btn-default btn-sm btn-block" id="btnCustomFields" ng-click="showCustom()" data-toggle="modal">{{lbl.add}}</a> |
166 | | - <div id="frm-custom-edit" ng-if="customFields && customFields.length > 0" class="form-horizontal clearfix" style="padding: 5px 0"> |
167 | | - <div data-ng-repeat="item in customFields"> |
| 167 | + <div id="frm-custom-edit" ng-if="customFields && customFields.length > 0"> |
| 168 | + <div class="form-group" data-ng-repeat="item in customFields"> |
168 | 169 | <label class="control-label">{{item.Key}}</label> |
169 | 170 | <a href="" ng-click="deleteCustom(item.Key, item.ObjectId)" title="{{lbl.doDelete}}" class="pull-right" style="position: relative; top: 10px; color: red"><i class="fa fa-times"></i></a> |
170 | 171 | <input type="text" class="form-control" data-ng-model="item.Value" /> |
|
0 commit comments