<commit_before>{% extends 'base.html' %}

{% block styles %}
<link href="/static/css/dataTables/demo_table.css" rel="stylesheet"
      type="text/css"/>
<link href="/static/css/srp.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" 
      href="/static/css/pepper-grinder/jquery-ui-1.8.21.custom.css">
{% end block %}

{% block scripts %}
<script src="/static/js/libs/jquery-ui-1.8.21.custom.min.js"></script>
<script>
$(function() {
$.datepicker.regional['en-GB'] = {
  closeText: 'Done',
  prevText: 'Prev',
  nextText: 'Next',
  currentText: 'Today',
  monthNames: ['January','February','March','April','May','June',
  'July','August','September','October','November','December'],
  monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
  'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
  dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 
             'Friday', 'Saturday'],
  dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
  dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
  weekHeader: 'Wk',
  dateFormat: 'dd/mm/yy',
  firstDay: 1,
  isRTL: false,
  showMonthAfterYear: false,
  yearSuffix: ''};
  $.datepicker.setDefaults($.datepicker.regional['en-GB']);
  $("#newv_date").datepicker();
});
</script>
{% end block %}

{% block content %}
<h1>New Visit Form for: {{ patname }}</h1>
<p/>

<form id="new_visit_form" method="POST">
  <div id="new_visit_control" class="col_parent">
    <div class="threecols">
	 <label>Department</label><br/>
	 <select id="newv_dept_list" name="newv_dept_list">
	   {% for dname in depts %}
	   <option> {{ dname }} </option>
	   {% end %}
	 </select>
    </div>

    <div class="threecols">
      <label>Date</label><br/>
      <input type="text" class="date" id="newv_date" name="newv_date"
	     value={{ date }} />
    </div>

    <!-- <div class="threecols"> -->
    <!--   <label>Date</label><br/> -->
    <!--   <select id="newv_day_list" name="newv_day_list"> -->
    <!-- 	{% for day in days %} -->
    <!-- 	<option> {{ day }} </option> -->
    <!-- 	{% end %} -->
    <!--   </select> -->
    <!-- </div> -->
 
    <div class="threecols">
      <label> Charge: </label><br/>
      <input type="text" class="date" id="newv_charge" name="newv_charge"
	     value="0"/>
   </div>

    <!-- the jquery table click handler will populate this input element with the
	 docid that the user selects, and the server will get value through the
	 POST request. Don't know of a cleaner way to do this... :) -->
    <input name="newv_docid_hack" id="newv_docid_hack" 
	   style="display:none" type="text"/>
  </div> <!-- #new_visit_control -->

  <p/>
  <input type="submit" id="newv_submit" 
	 value="Save Visit Details &rarr;"/>
</form>

<br/>
<h2>Select Doctor for Visit:</h2>
<hr/>
<p/>
<table id="new_visit_doc_table" class="display">
  <thead>
    <tr>
      <th> ID             </th>
      <th> Doctor Name    </th>
      <th> Qualifications </th>
      <th> Morning        </th>
      <th> Afternoon      </th>
   </tr>
  </thead>
  <tbody>
  </tbody>    
</table>
{% end block %}<commit_msg>Change some messaging in visit_new.html<commit_after>{% extends 'base.html' %}

{% block styles %}
<link href="/static/css/dataTables/demo_table.css" rel="stylesheet"
      type="text/css"/>
<link href="/static/css/srp.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" 
      href="/static/css/pepper-grinder/jquery-ui-1.8.21.custom.css">
{% end block %}

{% block scripts %}
<script src="/static/js/libs/jquery-ui-1.8.21.custom.min.js"></script>
<script>
$(function() {
$.datepicker.regional['en-GB'] = {
  closeText: 'Done',
  prevText: 'Prev',
  nextText: 'Next',
  currentText: 'Today',
  monthNames: ['January','February','March','April','May','June',
  'July','August','September','October','November','December'],
  monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
  'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
  dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 
             'Friday', 'Saturday'],
  dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
  dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
  weekHeader: 'Wk',
  dateFormat: 'dd/mm/yy',
  firstDay: 1,
  isRTL: false,
  showMonthAfterYear: false,
  yearSuffix: ''};
  $.datepicker.setDefaults($.datepicker.regional['en-GB']);
  $("#newv_date").datepicker();
});
</script>
{% end block %}

{% block content %}
<h1>New Visit Form for: {{ patname }}</h1>
<p/>

<form id="new_visit_form" method="POST">
  <div id="new_visit_control" class="col_parent">
    <div class="threecols">
	 <label>Department</label><br/>
	 <select id="newv_dept_list" name="newv_dept_list">
	   {% for dname in depts %}
	   <option> {{ dname }} </option>
	   {% end %}
	 </select>
    </div>

    <div class="threecols">
      <label>Date</label><br/>
      <input type="text" class="date" id="newv_date" name="newv_date"
	     value={{ date }} />
    </div>

    <!-- <div class="threecols"> -->
    <!--   <label>Date</label><br/> -->
    <!--   <select id="newv_day_list" name="newv_day_list"> -->
    <!-- 	{% for day in days %} -->
    <!-- 	<option> {{ day }} </option> -->
    <!-- 	{% end %} -->
    <!--   </select> -->
    <!-- </div> -->
 
    <div class="threecols">
      <label> Charge: </label><br/>
      <input type="text" class="date" id="newv_charge" name="newv_charge"
	     value="0"/>
   </div>

    <!-- the jquery table click handler will populate this input element with the
	 docid that the user selects, and the server will get value through the
	 POST request. Don't know of a cleaner way to do this... :) -->
    <input name="newv_docid_hack" id="newv_docid_hack" 
	   style="display:none" type="text"/>
  </div> <!-- #new_visit_control -->

<br/>
<p/>
<hr/>
<h2>Doctors Available for Consultation: (Click on One):</h2>
<table id="new_visit_doc_table" class="display">
  <thead>
    <tr>
      <th> ID             </th>
      <th> Doctor Name    </th>
      <th> Qualifications </th>
      <th> Morning        </th>
      <th> Afternoon      </th>
   </tr>
  </thead>
  <tbody>
  </tbody>    
</table>

  <input type="submit" id="newv_submit" 
	 value="Save Visit Details &rarr;"/>
  <p/> <p/><p/><p/>  

</form>

{% end block %}
{'fraction_non_alphanumeric': 0.2303874479666987, 'fraction_numerical': 0.004482869036183158, 'mean_word_length': 3.269993164730007, 'pattern_counts': {'":': 0, '<': 166, '<?xml version=': 0, '>': 166, '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': '3710241', 'n_tokens_mistral': 2376, 'n_tokens_neox': 2186, 'n_words': 488}