2015-02-07 02:24:10 +00:00
|
|
|
<!-- New Template Modal -->
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" ng-click="cancel()">×</button>
|
|
|
|
<h4 class="modal-title" ng-hide="newPage" id="pageModalLabel">Edit Page: {{page.name}}</h4>
|
|
|
|
<h4 class="modal-title" ng-show="newPage" id="pageModalLabel">New Page</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2015-02-09 00:37:07 +00:00
|
|
|
<form action="/html/preview" method="post" target="_blank">
|
2015-02-07 02:24:10 +00:00
|
|
|
<label class="control-label" for="name">Name:</label>
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="text" class="form-control" ng-model="page.name" placeholder="Page name" id="name" autofocus/>
|
|
|
|
</div>
|
|
|
|
<!-- Nav tabs -->
|
|
|
|
<fieldset disabled>
|
|
|
|
<div class="form-group">
|
|
|
|
<button class="btn btn-danger btn-disabled"><i class="fa fa-download"></i> Clone Site (Coming Soon!)</button>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
<tabset>
|
|
|
|
<tab heading="HTML">
|
2015-02-09 00:37:07 +00:00
|
|
|
<textarea rows="10" class="form-control" ng-model="page.html" name="html" placeholder="HTML"></textarea>
|
2015-02-07 02:24:10 +00:00
|
|
|
</tab>
|
|
|
|
<tab heading="Preview">
|
|
|
|
<div ng-model="page.html" contenteditable></div>
|
|
|
|
</tab>
|
|
|
|
</tabset>
|
|
|
|
<br />
|
|
|
|
<div class="form-group">
|
2015-02-09 00:37:07 +00:00
|
|
|
<button type="submit" class="btn btn-danger btn-disabled"><i class="fa fa-external-link-square"></i> Preview in New Window</button>
|
|
|
|
<input type="hidden" name="csrf_token" value="{{csrf_token}}"/>
|
2015-02-07 02:24:10 +00:00
|
|
|
</div>
|
2015-02-09 00:37:07 +00:00
|
|
|
</form>
|
2015-02-07 02:24:10 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" ng-click="cancel()">Cancel</button>
|
2015-02-07 16:41:53 +00:00
|
|
|
<button type="button" class="btn btn-primary" ng-click="ok(page)" data-dismiss="modal">Save Page</button>
|
2015-02-07 02:24:10 +00:00
|
|
|
</div>
|