<commit_before>#[def: title = Manage Therapies]
#[def: current-page = therapies]
#[def: crud = yes]

##_header.html
<div class="row">
	<div class="col-lg-12 col-md-12">
		<div class="text-right">
			<button class="btn btn-default create-button"><i class="fa fa-plus-circle"></i>&nbsp;&nbsp;Add Therapy
			</button>
		</div>
		<table class="table table-bordered table-hover" id="therapies-table">
			<thead>
				<tr>
					<th class="text-center">Name</th>
					<th class="text-center">Default Duration</th>
					<th class="text-center">Tracer Required</th>
					<th class="text-center">Tracer Dose</th>
					<th class="text-center">Camera Required</th>
					<th class="text-center">Actions</th>
				</tr>
			</thead>

			<tbody>
				#[collection: therapies]

				#[pre]#[/pre]

				#[each]
				<tr>
					<td>#name</td>
					<td>#default-duration mins</td>
					<td>#tracer-required-name</td>
					<td>#tracer-dose</td>
					<td>#camera-type-label</td>
					<td>
						<button class="btn edit-button" data-id="#id">Edit</button>
						<button class="btn delete-button" data-id="#id">Delete</button>
					</td>
				</tr>
				#[/each]

				#[post]#[/post]

				#[empty]#[/empty]

				#[/collection]
			</tbody>
		</table>

	</div>
</div>


<div class="modal hide fade edit-modal">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<h3 class="edit-mode">Edit Therapy</h3>
				<h3 class="create-mode text-center">Create Therapy</h3>
			</div>
			<div class="modal-body">
				<form class="form-horizontal edit-form">
					<input type="hidden" name="entity-type" value="therapy"/>
					<input type="hidden" name="entity-id" value="0"/>
					<div class="form-group">
						<label for="name" class="col-sm-3 control-label">Name</label>
						<div class="col-sm-9">
							<input class="form-control" type="text" name="name" id="name"/>
							<p class="help-block">Example block-level help text here.</p>
						</div>
					</div>
					<div class="form-group">
						<label for="default-duration" class="col-sm-3 control-label">Default Duration</label>
						<div class="col-sm-9">
							<input class="form-control" type="text" name="default-duration" id="default-duration"/>
							<p class="help-block">This will be measured in minutes.</p>
						</div>
					</div>
					<div class="form-group">
						<label for="tracer-required-id" class="col-sm-3 control-label">Tracer Required</label>
						<div class="col-sm-9">
							<select class="form-control" name="tracer-required-id" id="tracer-required-id">
								#[collection: tracers]

								#[pre]#[/pre]

								#[each]
								<option value="#id">#name</option>
								#[/each]

								#[post]#[/post]

								#[empty]#[/empty]

								#[/collection]
							</select>
							<p class="help-block">Example block-level help text here.</p>
						</div>
					</div>
					<div class="form-group">
						<label for="tracer-dose" class="col-sm-3 control-label">Tracer Dose</label>
						<div class="col-sm-9">
							<input class="form-control" type="text" name="tracer-dose" id="tracer-dose"/>
							<p class="help-block">Example block-level help text here.</p>
						</div>
					</div>
					<div class="form-group">
						<label for="camera-type-id" class="col-sm-3 control-label">Camera Type Used</label>
						<div class="col-sm-9">
							<select class="form-control" name="camera-type-id" id="camera-type-id">
								#[collection: camera-types]

								#[pre]#[/pre]

								#[each]
								<option value="#id">#label</option>
								#[/each]

								#[post]#[/post]

								#[empty]#[/empty]

								#[/collection]
							</select>
							<p class="help-block">Example block-level help text here.</p>
						</div>
					</div>

				</form>

			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-cancel">Cancel</button>
				<button type="button" class="btn btn-primary btn-save">Ok</button>
			</div>
		</div>
	</div>
</div>

<script src="/js/therapies.js"></script>

#[def: entity-name-title = Therapy]
#[def: entity-name-body = therapy]
#[def: entity-type = therapy]

##_delete-modal.html
##_loading-modal.html

#[collectionmap: objectMap: therapies]

##_footer.html
<commit_msg>Therapies help text fields completed.<commit_after>#[def: title = Manage Therapies]
#[def: current-page = therapies]
#[def: crud = yes]

##_header.html
<div class="row">
	<div class="col-lg-12 col-md-12">
		<div class="text-right">
			<button class="btn btn-default create-button"><i class="fa fa-plus-circle"></i>&nbsp;&nbsp;Add Therapy
			</button>
		</div>
		<table class="table table-bordered table-hover" id="therapies-table">
			<thead>
				<tr>
					<th class="text-center">Name</th>
					<th class="text-center">Default Duration</th>
					<th class="text-center">Tracer Required</th>
					<th class="text-center">Tracer Dose</th>
					<th class="text-center">Camera Required</th>
					<th class="text-center">Actions</th>
				</tr>
			</thead>

			<tbody>
				#[collection: therapies]

				#[pre]#[/pre]

				#[each]
				<tr>
					<td>#name</td>
					<td>#default-duration mins</td>
					<td>#tracer-required-name</td>
					<td>#tracer-dose</td>
					<td>#camera-type-label</td>
					<td>
						<button class="btn edit-button" data-id="#id">Edit</button>
						<button class="btn delete-button" data-id="#id">Delete</button>
					</td>
				</tr>
				#[/each]

				#[post]#[/post]

				#[empty]#[/empty]

				#[/collection]
			</tbody>
		</table>

	</div>
</div>


<div class="modal hide fade edit-modal">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<h3 class="edit-mode">Edit Therapy</h3>
				<h3 class="create-mode text-center">Create Therapy</h3>
			</div>
			<div class="modal-body">
				<form class="form-horizontal edit-form">
					<input type="hidden" name="entity-type" value="therapy"/>
					<input type="hidden" name="entity-id" value="0"/>
					<div class="form-group">
						<label for="name" class="col-sm-3 control-label">Name</label>
						<div class="col-sm-9">
							<input class="form-control" type="text" name="name" id="name"/>
							<p class="help-block">Insert the name of the therapy.</p>
						</div>
					</div>
					<div class="form-group">
						<label for="default-duration" class="col-sm-3 control-label">Default Duration</label>
						<div class="col-sm-9">
							<input class="form-control" type="text" name="default-duration" id="default-duration"/>
							<p class="help-block">This will be measured in minutes. Please insert a number.</p>
						</div>
					</div>
					<div class="form-group">
						<label for="tracer-required-id" class="col-sm-3 control-label">Tracer Required</label>
						<div class="col-sm-9">
							<select class="form-control" name="tracer-required-id" id="tracer-required-id">
								#[collection: tracers]

								#[pre]#[/pre]

								#[each]
								<option value="#id">#name</option>
								#[/each]

								#[post]#[/post]

								#[empty]#[/empty]

								#[/collection]
							</select>
							<p class="help-block">Select the tracers required for this therapy.</p>
						</div>
					</div>
					<div class="form-group">
						<label for="tracer-dose" class="col-sm-3 control-label">Tracer Dose</label>
						<div class="col-sm-9">
							<input class="form-control" type="text" name="tracer-dose" id="tracer-dose"/>
							<p class="help-block">Insert the required dose for this therapy.</p>
						</div>
					</div>
					<div class="form-group">
						<label for="camera-type-id" class="col-sm-3 control-label">Camera Type Used</label>
						<div class="col-sm-9">
							<select class="form-control" name="camera-type-id" id="camera-type-id">
								#[collection: camera-types]

								#[pre]#[/pre]

								#[each]
								<option value="#id">#label</option>
								#[/each]

								#[post]#[/post]

								#[empty]#[/empty]

								#[/collection]
							</select>
							<p class="help-block">Select the required camera type for this therapy.</p>
						</div>
					</div>

				</form>

			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-cancel">Cancel</button>
				<button type="button" class="btn btn-primary btn-save">Ok</button>
			</div>
		</div>
	</div>
</div>

<script src="/js/therapies.js"></script>

#[def: entity-name-title = Therapy]
#[def: entity-name-body = therapy]
#[def: entity-type = therapy]

##_delete-modal.html
##_loading-modal.html

#[collectionmap: objectMap: therapies]

##_footer.html

{'fraction_non_alphanumeric': 0.20157776992817614, 'fraction_numerical': 0.0044742729306487695, 'mean_word_length': 2.9088817303267374, 'pattern_counts': {'":': 0, '<': 253, '<?xml version=': 0, '>': 253, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3093157', 'n_tokens_mistral': 3865, 'n_tokens_neox': 2948, 'n_words': 576}