<commit_before>extends ../index/layout

block content
	link(rel="stylesheet", href="folders.min.css")
	link(rel="stylesheet" href="../tasks/tasks.min.css")
	include ../partials/header/header.jade
	
	.row
		button.btn.btn-primary.btn-lg(type="button", data-toggle="modal", data-target="#addFolderModal") +
	.row(ng-controller="FolderCtrl")
		.col-md-6
			ul(ng-repeat="folder in folders")
					li
						div(ng-class="{activeFolder:$first}").folder
							h3 {{folder.folder.name}}
							p #[i {{folder.folder.path}}]					
		.col-md-6(ng-controller="TaskCtrl")
			button.btn.btn-primary.btn-lg(type="button", data-toggle="modal", data-target="#addTaskModal") +
			ul(id="taskList" ng-repeat="task in tasks")
				li
					h4 {{task.name}}
					p #[i {{task.description}}]
					p.id {{task.id}}
		.modal.modal-fade(id="addTaskModal" tabindex="-1" role="dialog" aria-labelledby="addTaskLabel")
			.modal-dialog(role="document")
				.modal-content
					.container-fluid
						.row
							.modal-header
								.button(type="button" class="close" data-dismiss="modal" aria-label="Close")
									span(aria-hidden="true") &times;
								h4.modal-title(id="addTaskLabel") New Task
						form(id="formTask" action="")
							.row
								.modal-body
									.row
										.col-md-10
											input(type="text" id="taskName" name="name" placeholder="Name")
									.row
										.col-md-10
											input(type="text" id="taskDescription" name="description" placeholder="Description").col-md-11
									.row
										.col-md-10
											input(type="text" id="taskInterval" name="interval" placeholder="Interval").col-md-11
									.row
										.col-md-9
											span.col-md-2
												p
													| Match
											select.col-md-4(id="taskMatch")
												option(value="all") All
												option(value="any") Any
											span.col-md-4
												p
													| rule/s
									.row
										.col-md-3
											button(role="button" id="addRule") Add rule
								.row
									ul(id="ruleList")

							.row
								.modal-footer
									button.btn.btn-default(type="button" data-dismiss="modal") Close
									input.btn.btn-primary(type="submit" id="taskSave" value="Save Changest") 
		.modal.modal-fade(id="addFolderModal" tabindex="-1" role="dialog" aria-labelledby="addFolderLabel")
			.modal-dialog(role="document")
				.modal-content
					.container-fluid
						.row
							.modal-header
								.button.close(type="button" data-dismiss="modal" aria-label="Close")
									span(aria-hidden="true") &times;
								h4.modal-title(id="addFolderLabel") New Folder
						.row
							.modal-body
								.row
									.col-md-10
										input(type="text" id="folderName" placeholder="Relative path to folder").col-md-12

						.row
							.modal-footer
								button.btn.btn-default(type="button" data-dismiss="modal") Close
								button.btn.btn-primary(type="button" id="folderSave") Save Changes<commit_msg>add modal for editing task<commit_after>extends ../index/layout

block content
	link(rel="stylesheet", href="folders.min.css")
	link(rel="stylesheet" href="../tasks/tasks.min.css")
	include ../partials/header/header.jade
	
	.row
		button.btn.btn-primary.btn-lg(type="button", data-toggle="modal", data-target="#addFolderModal") +
	.row(ng-controller="FolderCtrl")
		.col-md-6
			ul(ng-repeat="folder in folders")
					li
						div(ng-class="{activeFolder:$first}").folder
							h3 {{folder.folder.name}}
							p #[i {{folder.folder.path}}]					
		.col-md-6(ng-controller="TaskCtrl")
			button.btn.btn-primary.btn-lg(type="button", data-toggle="modal", data-target="#addTaskModal") +
			ul(id="taskList" ng-repeat="task in tasks")
				li
					h4 {{task.name}}
					p #[i {{task.description}}]
					p.id {{task.id}}
		.modal.modal-fade(id="addTaskModal" tabindex="-1" role="dialog" aria-labelledby="addTaskLabel")
			.modal-dialog(role="document")
				.modal-content
					.container-fluid
						.row
							.modal-header
								.button(type="button" class="close" data-dismiss="modal" aria-label="Close")
									span(aria-hidden="true") &times;
								h4.modal-title(id="addTaskLabel") New Task
						form(id="formTask" action="")
							.row
								.modal-body
									.row
										.col-md-10
											input(type="text" id="taskName" name="name" placeholder="Name")
									.row
										.col-md-10
											input(type="text" id="taskDescription" name="description" placeholder="Description").col-md-11
									.row
										.col-md-10
											input(type="text" id="taskInterval" name="interval" placeholder="Interval").col-md-11
									.row
										.col-md-9
											span.col-md-2
												p
													| Match
											select.col-md-4(id="taskMatch")
												option(value="all") All
												option(value="any") Any
											span.col-md-4
												p
													| rule/s
									.row
										.col-md-3
											button(role="button" id="addRule") Add rule
								.row
									ul(id="ruleList")

							.row
								.modal-footer
									button.btn.btn-default(type="button" data-dismiss="modal") Close
									input.btn.btn-primary(type="submit" id="taskSave" value="Save Changes") 
		.modal.modal-fade(id="editTaskModal" tabindex="-1" role="dialog" aria-labelledby="editTaskLabel")
			.modal-dialog(role="document")
				.modal-content
					.container-fluid
						.row
							.modal-header
								.button(type="button" class="close" data-dismiss="modal" aria-label="Close")
									span(aria-hidden="true") &times;
								h4.modal-title(id="editTaskLabel") Edit Task
						form(id="formEditTask" action="")
							.row
								.modal-body
									.row
										.col-md-10
											input(type="text" id="taskName" name="name" placeholder="Name")
									.row
										.col-md-10
											input(type="text" id="taskDescription" name="description" placeholder="Description").col-md-11
									.row
										.col-md-10
											input(type="text" id="taskInterval" name="interval" placeholder="Interval").col-md-11
									.row
										.col-md-9
											span.col-md-2
												p
													| Match
											select.col-md-4(id="editTaskMatch")
												option(value="all") All
												option(value="any") Any
											span.col-md-4
												p
													| rule/s
									.row
										.col-md-3
											button(role="button" id="addRule") Add rule
								.row
									ul(id="editRuleList")

							.row
								.modal-footer
									button.btn.btn-default(type="button" data-dismiss="modal") Close
									input.btn.btn-primary(type="submit" id="editTaskSave" value="Save Changest")
		.modal.modal-fade(id="addFolderModal" tabindex="-1" role="dialog" aria-labelledby="addFolderLabel")
			.modal-dialog(role="document")
				.modal-content
					.container-fluid
						.row
							.modal-header
								.button.close(type="button" data-dismiss="modal" aria-label="Close")
									span(aria-hidden="true") &times;
								h4.modal-title(id="addFolderLabel") New Folder
						.row
							.modal-body
								.row
									.col-md-10
										input(type="text" id="folderName" placeholder="Relative path to folder").col-md-12

						.row
							.modal-footer
								button.btn.btn-default(type="button" data-dismiss="modal") Close
								button.btn.btn-primary(type="button" id="folderSave") Save Changes
{'fraction_non_alphanumeric': 0.16136054421768709, 'fraction_numerical': 0.009659863945578231, 'mean_word_length': 2.2255375164545854, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5381636', 'n_tokens_mistral': 3636, 'n_tokens_neox': 2328, 'n_words': 369}