blob: 30fa00defd173cf1bc82d19401925fa17092c94f [file] [log] [blame]
@(content: String, emptySection: Boolean)
<script type="text/template" id="engineItemTypeList_template">
<td><%= data.itemtype_id %> <input type="hidden" name="engineItemType[<%= data.index %>]" value="<%= data.itemtype_id %>" /></td>
<td><a class="removeItemTypeBtn" href="#">[ x ]</a></td>
</script>
<script type="text/template" id="engineTemplate">
<form>
<div class="row-fluid">
<div class="span9">
<!-- Prediction Settings -->
<div class="boxContainer">
<div class="boxBlock">
<div class="boxtitle">Item Types Settings</div>
<div class="boxContent">
<p>In your app, you may have more than one type of items,
e.g. photos, news and jobs. For better prediction accuracy, one
engine should handle only: One item type (e.g. News), or A set
of related item types (e.g. World News, Sport News,
Entertainment News) Please name the item type(s) to be
recommended by this engine. You will use these names in
API/SDKs.</p>
<div class="bottomMargin">
<label class="checkbox">
<input id="engineAllItemTypes" <% if (data.allitemtypes == true){ %> checked <%} %> name="engineAllItemTypes" type="checkbox" /> Include ALL item types
</label>
</div>
<div class="row-fluid">
<div class="span5">
<table class="table table-condensed">
<thead>
<tr>
<th>Selected Item Types</th>
<th></th>
</tr>
</thead>
<tbody id="engineItemTypeList_ContentHolder">
<!-- engineItemTypeList_template here -->
</tbody>
</table>
</div>
<div class="span5 offset1">
<div class="input-append">
<input class="span8" id="engineAddItemTypeInput" type="text" placeholder="item type name"/>
<a href="#" id="engineAddItemTypeBtn" class="btn btn-primary">Add</a>
</div>
</div>
</div>
</div>
</div>
<div class="boxBlock">
<div class="boxtitle">Training Schedule</div>
<div class="boxContent">
<p>
You may configure this engine's training schedule in this section.
The schedule can be specified by a valid "Cron-Expression", which is slightly different from the standard crontab.
A description of "Cron-Expression" can be found <a href="http://quartz-scheduler.org/api/2.1.7/org/quartz/CronExpression.html">here</a>.
</p>
<div class="bottomMargin">
<label class="checkbox">
<input id="trainingdisabled" <% if (data.trainingdisabled == true) { %> checked <% } %> name="trainingdisabled" type="checkbox" /> Disable scheduled training
</label>
</div>
<div class="control-group">
<label for="trainingschedule" class="control-label">Training Schedule</label>
<div class="controls">
<input id="trainingschedule" name="trainingschedule" class="span2" type="text" value="<%= data.trainingschedule %>" />
<span class="help-inline">If empty or invalid, "0 0 * * * ?" (train hourly at 0-minute and 0-second) is assumed.</span>
</div>
</div>
</div>
</div>
@Html(content)
</div>
<!-- End of Prediction Settings -->
</div>
</div>
</form>
</script>
<div id="engineContentHolder"></div>