<commit_before>{{define "index"}}
{{template "header" .}}
<div class="container">
	<div class="row">
		<div class="col-xs-12">
			<h2 class="text-center">{{.Model.DateDisplay}}</h2>
			{{range .Model.DayItems}}
				{{if eq .Status "NOTE"}}
    				<div class='col-md-offset-3 col-md-6'>
      					<div class='well well-sm'>
        					<span><i>{{.Text}}</i></span>
      					</div>
    				</div>
    			{{else}}
    				<div class='col-md-offset-3 col-md-6'>
    					{{if eq .Status "OPEN"}}
    						<a href="/day/date/id/done" class="btn"><span class="glyphicon glyphicon-unchecked"></span></a>
    					{{else if eq .Status "DONE"}}
    						<a href="/day/date/id/disguard" class="btn"><span class="glyphicon glyphicon-checked"></span></a>
    					{{else if eq .Status "CANCELLED"}}
    						<a href="/day/date/id/disguard" class="btn"><span class="glyphicon glyphicon-ban-circle"></span></a>
    					{{end}}
      					<span>
        					&nbsp;{{.Text}}
      					</span>
    				</div>
    				{{end}}
			{{end}}
		</div>
	</div>
</div>
{{template "footer" .}}
{{end}}<commit_msg>index add form<commit_after>{{define "index"}}
{{template "header" .}}
<div class="container">
	<div class="row">
		<div class="col-xs-12">
			<h2 class="text-center">{{.Model.DateDisplay}}</h2>
			{{range .Model.DayItems}}
				{{if eq .Status "NOTE"}}
    				<div class='col-md-offset-3 col-md-6'>
      					<div class='well well-sm'>
        					<span><i>{{.Text}}</i></span>
      					</div>
    				</div>
    			{{else}}
    				<div class='col-md-offset-3 col-md-6'>
    					{{if eq .Status "OPEN"}}
    						<a href="/day/date/id/done" class="btn"><span class="glyphicon glyphicon-unchecked"></span></a>
    					{{else if eq .Status "DONE"}}
    						<a href="/day/date/id/disguard" class="btn"><span class="glyphicon glyphicon-checked"></span></a>
    					{{else if eq .Status "CANCELLED"}}
    						<a href="/day/date/id/disguard" class="btn"><span class="glyphicon glyphicon-ban-circle"></span></a>
    					{{end}}
      					<span>
        					&nbsp;{{.Text}}
      					</span>
    				</div>
    				{{end}}
			{{end}}
		</div>
	</div>
  <hr />
  <form method="POST">
    <div class='row'>
      <div class='col-md-offset-3 col-md-6'>
        <div class="input-group">
          <span class="input-group-btn">
            <button class="btn btn-primary">
              <span class="glyphicon glyphicon-unchecked"></span>
              <span class="glyphicon glyphicon-pencil" style="display:none;"></span>
            </button> 
            <input type="hidden" id="newType" name="newType" value="OPEN" />
        </span>      
        <input 
            placeholder='start with / for note and . for item'  
            name='newItemText' id='newItemText'
            class='form-control'>
        </div>
      </div>
    </div>
  </form>
  <hr />
  <div class='row'>
    <div class='well'>
      <h4>To Do</h4>
      <ol>
        <li>Progressive Enhancement: Click to update type, check on change of text</li>
      </ol>
  </div>
</div>
{{template "footer" .}}
{{end}}
{'fraction_non_alphanumeric': 0.21137685843568196, 'fraction_numerical': 0.006464124111182934, 'mean_word_length': 2.1453252032520327, 'pattern_counts': {'":': 0, '<': 96, '<?xml version=': 0, '>': 96, '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': '2194098', 'n_tokens_mistral': 1263, 'n_tokens_neox': 1102, 'n_words': 212}