Edit Sortable Item
This page uses a Hashtag Form to edit records for Sortable Items.
The table is styled using Bootstrap 3 default theme classes.
Methods are provided to Edit or Delete any Sortable Item.
Processed this Hashtag Markup:
<# start form for sortable_items <#[url.edit]#>;
set form.class to "form-horizontal";
when done redirect to "/lists/sort/<#[url.land as url]#>?index=<# form.id #>";
#>
<div class="form-group">
<label for="name" class="col-sm-2 control-label">Name</label>
<div class="col-sm-5">
<input type="text" <# name #> required class="form-control" id="name">
</div>
</div>
<div class="form-group">
<label for="sort" class="col-sm-2 control-label">Sort Order</label>
<div class="col-sm-5">
<input type="number" <# sort_order #> required class="form-control" id="sort">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-5">
<input type="button" <# Create button #> class="btn btn-primary">
<input type="button" <# Update button #> class="btn btn-primary">
<input type="button" <# Delete button #> class="btn btn-primary">
</div>
</div>
<# end form #>