Skip to content

Commit

Permalink
updated server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniespratley committed Jan 1, 2015
1 parent a59d0da commit 54c0bbe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 73 deletions.
65 changes: 6 additions & 59 deletions app/views/pages.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,65 +53,12 @@
</div>
</div>
</section>
<div class="row ">




<!-- Create normal bootstrap form element -->
<div class="row">
<form class="form-horizontal" ng-submit="save(page)">


<div class="col-sm-7 col-xs-7">

<!-- Embed the schema editor on the form -->
<div
fg-form
fg-form-data="page"
fg-schema="pageSchema"></div>


</div>
<div class="col-sm-5 col-xs-5">
<span class="help-block">
<strong>Permlink:</strong> http://{{App.baseurl}}/?page_id={{page.slug}}
</span>
<ul class="list-unstyled form-list">
<li class="form-group">
<label class="col-sm-2 control-label">Published:</label>
<input type="checkbox" ng-model="page.status" value="true">
</li>
<li class="form-group">
<label class="col-sm-2 control-label">Order:</label>
<input type="number">
</li>
<li class="form-group">
<label class="col-sm-2 control-label">Parent:</label>
<select>
<option>Page 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</li>
<li class="form-group">
<label class="col-sm-2 control-label">Template:</label>
<select>
<option>Template 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</li>
<li class="form-actions">
<button href="#" class="btn btn-danger btn-block" ng-click="remove(page)">Move to trash</button>
<button class="btn pull-right btn-primary btn-block">Save</button>
</li>
</ul>

<div class="col-sm-12">
<div fg-form fg-form-data="page" fg-schema="pageSchema"></div>
<button href="#" class="btn btn-danger btn-block" ng-click="remove(page)">Move to trash</button>
<button class="btn pull-right btn-primary btn-block">Save</button>
</div>
</form>
</div>

</form>

</div>
<!--/span-->
<!--/row-->
18 changes: 4 additions & 14 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,8 @@
*/
var express = require('express');
var fs = require('fs');
//var cmsRouter = require('./routes/cms-router.js');
var cmsRouter = require('./routes/cms-router.js');
var app = express();
//var config = JSON.parse(fs.readFileSync('./config/config.json'));
//var server = new cmsRouter.mount(config, app);
//console.log(server);


var Resource = require('./routes/generic.js');




var r = Resource.init();

console.log(r.findAll('users'));
var config = JSON.parse(fs.readFileSync('./config/config.json'));
var server = new cmsRouter.mount(config, app);
console.log(server);

0 comments on commit 54c0bbe

Please sign in to comment.