Skip to content

Instantly share code, notes, and snippets.

@jackmakesthings
Last active August 29, 2015 14:01
Show Gist options
  • Save jackmakesthings/501d73acf8a15cb308e3 to your computer and use it in GitHub Desktop.
Save jackmakesthings/501d73acf8a15cb308e3 to your computer and use it in GitHub Desktop.
exploring options to mark up and process a form
<?php
// this would require some data structure, you'd have the jobs in there as variables;
// i set them up here as if they're arrays but objects would be fine too
foreach($jobs as $job) : ?>
<div class="row career-block">
<div class="col-md-9 career-description">
<h1><?php echo $job['title']; ?></h1>
<ul>
<?php echo $job['requirements']; ?>
</ul>
</div>
<div class="col-md-3 career-apply center">
<a class="btn btn-secondary" href="#" data-toggle="modal" data-target="#myModal" data-position="<?php echo $job['title']; ?>">Apply</a>
</div>
</div>
<?php endforeach; ?>
<!-- so this is what we'd be ending up with in theory, yes? -->
<div class="row career-block">
<div class="col-md-9 career-description">
<h1>Junior Software Engineer</h1>
<ul>
<!-- job requirements blah blah -->
</ul>
</div>
<div class="col-md-3 career-apply center">
<a class="btn btn-secondary" href="#" data-toggle="modal" data-target="#myModal" data-position="Junior Software Engineer">Apply</a>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment