403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/erp/pms/templates/anonymous/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/erp/pms/templates/anonymous/anonymous_feedback_form.html
{% load i18n %}
<script>
  $(document).ready(function () {
    var fields = [
      "#id_employee_field",
      "#id_department_field",
      "#id_job_position_field",
    ];

    function updateFieldsVisibility() {
      var based_on = $("#id_based_on").val();

      fields.forEach(function (field) {
        if (field.includes(based_on)) {
          $(field).show();
        } else {
          $(field).hide();
        }
      });
    }

    updateFieldsVisibility();

    $("#id_based_on").change(function () {
      updateFieldsVisibility();
    });
  });
</script>
<form
  hx-post='{% if create %}{% url "add-anonymous-feedback" %} {% else %} {% url "edit-anonymous-feedback" form.instance.id %}{% endif %}'
  hx-target="#anonymousFeedbackFormModal" class="oh-profile-section"
>
  {% csrf_token %}
  <div class="oh-input__group">
    <label class="oh-input__label" for="feedbackSubject" id="idFeedbackSubject"
      >{% trans "Feedback Subject" %}:</label
    >
    {{form.feedback_subject}} {{form.feedback_subject.errors}}
  </div>
  <div class="oh-input__group">
    <label class="oh-input__label" for="basedOn" id="idBasedOn">{% trans "Based on" %}:</label>
    {{form.based_on}} {{form.based_on.errors}}
  </div>
  <div class="oh-input__group" id="id_employee_field">
    <label class="oh-input__label" for="feedbackEmployee" id="idFeedbackEmployee">{% trans "Employee" %}:</label>
    {{form.employee_id}} {{form.employee_id.errors}}
  </div>
  <div class="oh-input__group" id="id_department_field">
    <label class="oh-input__label" for="feedbackDepartment" id="idFeedbackDepartment"
      >{% trans "Department" %}:</label
    >
    {{form.department_id}} {{form.department_id.errors}}
  </div>
  <div class="oh-input__group" id="id_job_position_field">
    <label class="oh-input__label" for="feedbackJobPosition" id="idFeedbackJobPosition"
      >{% trans "Job Position" %}:</label
    >
    {{form.job_position_id}} {{form.job_position_id.errors}}
  </div>
  <div class="oh-input__group">
    <label class="oh-input__label" for="keyType"
      >{% trans "Feedback Desciption" %}:</label
    >
    {{form.feedback_description}} {{form.feedback_description.errors}}
  </div>
  <div class="w-100 d-flex align-items-center justify-content-end">
    <button
      type="submit"
      class="oh-btn oh-btn--secondary mt-3 oh-btn--w-100-resp"
    >
      {% trans "Save" %}
    </button>
  </div>
</form>

Youez - 2016 - github.com/yon3zu
LinuXploit