Article Form

This page uses a Hashtag Form to edit Articles.   The Form is styled using Bootstrap 3 default theme classes.   When Articles are initially created, a Status variable is set to "new".   The Status value can not be changed with this form, but the Pages linked below allow Articles to be marked as Reviewed or Rejected.  


Processed this Hashtag Markup:
<# start form for articles <#[url.edit]#>;
	when creating set status to "new";
	when deleting call confirm('Confirm Article Delete?');
	when creating redirect to "/articles/new?index=<# form.id #>";
	when done redirect to "/articles/list?index=<# form.id #>";
#>

<div class="form-group">
	<label for="headline">Headline</label>
	<input type="text" <# headline #> required class="form-control" id="headline">
</div>
<div class="form-group">
	<label for="body">Body</label>
	<textarea <# body #> rows="10" class="form-control" id="body"></textarea>
</div>
<div class="form-group">
	<label for="type">Type</label>
	<select <# type #> id="type" class="form-control">
		<option value="blog" selected>blog</option>
		<option value="announce">announcement</option>
	</select>
</div>
<div class="form-group">
	<div class="checkbox">
		<label>
			<input type="checkbox" <# is_released #> value="released">
			For Immediate Release?
		</label>
	</div>
</div>
<div class="form-group">
	<div class="radio">
		<label>
			<input type="radio" <# sharing #> value="public" id="sharing" checked>
			Public
		</label>
	</div>
	<div class="radio">
		<label>
			<input type="radio" <# sharing #> value="members">
			Members Only
		</label>
	</div>
</div>
<input type="submit" <# create button #> class="btn btn-primary" value="Save New Article">
<input type="submit" <# update button #> class="btn btn-primary" value="Update Article">
<input type="submit" <# delete button #> class="btn btn-primary" value="Delete Article">

<# end form #>


The Articles Mini-App uses the Hashtag Markup Language to provide a review process for Article Headlines.

Articles are stored in an SQL database.   Methods are provided to mark articles as reviewed, or update or delete any existing articles.