/** File which renders the edit form for the posts and processes * the post data generated by edit forms. * * @type {Promise|*} */ const Promise = require('promise'); const qs = require('querystring'); const sql = require('../utils/sql'); /** * Displays a single row in the posts view * * @param post */ const renderPostRow = function(post) { return "
Category # | Name | Header Picture | Date | Edit | " + "