Beispiel #1
0
">
        <input type="button" value="Edit Application" />
      </a>
    </left>
  </div>
</panel>

<panel class="tabs">
  <content class="nopadding">
    <tab for="unclaimed" class="focus">
      New (<unclaimedcount><?php 
View::echof('unclaimedcount');
?>
</unclaimedcount>)
    </tab><tab for="claimed">
      Applicants (<claimedcount><?php 
View::echof('claimedcount');
?>
</claimedcount>)
    </tab><tab for="credits">
      Credits (<creditcount><?php 
View::echof('creditcount');
?>
</creditcount>)
    </tab>
  </content>
</panel>

<panel class="tabframe" name="unclaimed"><content></content></panel>
<panel class="tabframe" name="claimed"><content></content></panel>
<panel class="tabframe" name="credits"><content></content></panel>
      <section name="awards" class="hide">
        <heading>Awards</heading>
        <hr />
        <items></items>
      </section>
      <section name="projects" class="hide">
        <heading>Projects</heading>
        <hr />
        <items></items>
      </section>
    </left>
  </div>
</panel>

<textarea id="profileData" class="hide"><?php 
View::echof('profile');
?>
</textarea>

<script>
  $(function () {
    var profileData = JSON.parse($('#profileData').html());

    (function setupProfile(profile) {
      function addField(sectionName, fieldName, val) {
        $('section[name='+sectionName+'] field[name='+fieldName+']').each(function() {
          if (!val) {
            $(this).parent().remove();
            return;
          }
Beispiel #3
0
<panel>
  <div class="content">
    <headline>This page does not exist!</headline>
    <img height="300px" src="<?php 
echo $GLOBALS['dirpre'];
?>
assets/gfx/sadApe.png">
    <route class="hide"><?php 
View::echof('uri');
?>
</route>
  </div>
</panel>
Beispiel #4
0
<script>
  $(function () {
    (function setupReport() {
      $('#reportbutton').off('click').click(function() {
        var report = confirm(
          'Are you sure you wish to report this application?' +
          '\nThe application will be disabled when reported.');
        if (!report) return;

        $('#reportbutton').prop('disabled', true);

        var data = { _id: '<?php 
View::echof('applicationId');
?>
' };
        $.post('report', data, function (data) {
          console.log(data);
          data = JSON.parse(data);
          $('reported').show();
          $('#reportbutton').prop('disabled', false);
        });
      });
    })();
  });
</script>

<?php 
if (View::get('isRecruiter')) {
    ?>
  <panel>
    <div class="content">
Beispiel #5
0
  });
</script>

<panel>
  <div class="content">
    <?php 
vnotice();
?>
  </div>
</panel>
<panel class="form">
  <div class="content">
    <headline>Create a Vanilla Question</headline>
    <form method="post">
      <div class="form-slider"><label for="text">Text</label><input type="text" id="text" name="text" value="<?php 
View::echof('createVanillaText');
?>
" required /></div>
      <input type="submit" name="createVanilla" value="Create" />
    </form>
  </div>
</panel>
<panel>
  <div class="content">
    <headline>Vanilla Questions</headline>
    <?php 
$vanilla = View::get('vanilla');
foreach ($vanilla as $data) {
    questionBlock($data);
}
?>
Beispiel #6
0
      $('#success').hide();
      $('#hide').hide();
    });

    $('#success, #fail').hide();
  });
</script>

<panel class="form">
  <div class="content">
    <headline><?php 
View::echof('jobtitle');
?>
</headline>
    <div class="companyname"><?php 
View::echof('companytitle');
?>
</div>

    <form method="post"
          onsubmit="return confirm('Are you sure you want to submit? You cannot undo this.');">
      <left>
        <div class="jobapplicationtitle">Job Application</div>
        <br /><br />

        <center style="line-height: 2em; font-style: italic;">
          Your profile and resume will be submitted along with this application.
          <a href="../editprofile" target="_blank">
            <input type="button" value="Edit Profile" />
          </a>
          <a href="../viewprofile" target="_blank">
Beispiel #7
0
      $.post('', {saving: true, questionIds: questionIds}, function (data) {
        window.location = '../home';
      });
    });
  });
</script>

<panel class="form">
  <div class="content">
    <headline><?php 
View::echof('createEdit');
?>
 Job Application</headline>
    <subheadline>
      <?php 
View::echof('jobTitle');
$location = View::get('jobLocation');
if (!empty($location)) {
    echo " | {$location}";
}
?>
    </subheadline>

    <form>
      <left>
        <div id="selected">
          <subheadline>Selected questions:</subheadline>
          <i>
            Select questions from below to add to your application.<br />
            <small>
              Applications can have no questions.
Beispiel #8
0
<panel>
  <div class="content">
    <?php 
vnotice();
?>

    <form method="post">
      <input type="radio" name="type" id="student" value="student" <?php 
vchecked('type', 'student');
?>
 required />
        <label for="student">student</label>
      <input type="radio" name="type" id="recruiter" value="recruiter" <?php 
vchecked('type', 'recruiter');
?>
 required />
        <label for="recruiter">recruiter</label>

      <div class="form-slider"><label for="email">Email</label><input type="text" id="email" name="email" value="<?php 
View::echof('email');
?>
" required /></div>

      <input type="submit" name="login" value="Login As" />
    </form>
  </div>
</panel>
Beispiel #9
0
<templates>
  <paymentinfotemplate>
    <paymentinfo cardid="{cardId}">
      <b>Card: </b>Ending in {last4}<br />
      <b>Exp: </b>{expMonth}/{expYear}
      <deleteme></deleteme>
    </paymentinfo>
  </paymentinfotemplate>
</templates>

<script src="https://checkout.stripe.com/checkout.js"></script>

<script>
  var DISCOUNT_CODE = <?php 
View::echof('discount');
?>
;

  function setupMultiselect() {
    $('.multiselect').click(function () {
      if ($(this).hasClass('selected')) {
        $(this).removeClass('selected');
      } else {
        var name = $(this).attr('name');
        $('.multiselect[name='+name+']').removeClass('selected');
        $(this).addClass('selected');
      }
    });
  }
Beispiel #10
0
<a href="/newmessage?from=<?php 
View::echof('from');
?>
&to=<?php 
View::echof('to');
?>
"
   onClick="return confirm('I have read, fully understand, and agree to Sublite’s Terms of Service and Privacy Policy. I agree to contact the person in good-faith.')">
   <input type="button" value="<?php 
View::echof('text');
?>
" />
 </a>
Beispiel #11
0
    $studentId = View::get('studentId') . '';
    $recruiterId = View::get('recruiterId') . '';
    if ($isStudent) {
        $from = $studentId;
        $to = $recruiterId;
        $toText = 'Recruiter';
    }
    if ($isRecruiter) {
        $from = $recruiterId;
        $to = $studentId;
        $toText = 'Student';
    }
    View::partial('newmessage', ['from' => $from, 'to' => $to, 'text' => "Message {$toText}"]);
    if ($isStudent) {
        echo View::linkTo('<input type="button" value="See More Jobs" />', '../search', ['byrecruiter' => $recruiterId]);
    }
}
?>

    <left style="margin-top: 2em;">
      <div class="headline">
        Job application from: <b><?php 
View::echof('studentname');
?>
</b>
      </div>

      <responses></responses>
    </left>
  </div>
</panel>