Created
July 31, 2012 12:07
-
-
Save rohitashv/3216535 to your computer and use it in GitHub Desktop.
getting error that a template that extends can not have body
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- src/Ensl/JobeetBundle/Resources/views/Job/index.html.twig --> | |
{% extends 'EnslJobeetBundle::layout.html.twig' %} | |
{% block stylesheets %} | |
{{ parent() }} | |
<link rel="stylesheet" href="{{ asset('bundles/ensljobeet/css/jobs.css') }}" type="text/css" media="all" /> | |
{% endblock %} | |
{% block content %} | |
<h1>Job list</h1> | |
<table class="records_list"> | |
<thead> | |
<tr> | |
<th>Id</th> | |
<th>Type</th> | |
<th>Company</th> | |
<th>Logo</th> | |
<th>Url</th> | |
<th>Position</th> | |
<th>Location</th> | |
<th>Description</th> | |
<th>How_to_apply</th> | |
<th>Token</th> | |
<th>Is_public</th> | |
<th>Is_activated</th> | |
<th>Email</th> | |
<th>Expires_at</th> | |
<th>Created_at</th> | |
<th>Updated_at</th> | |
<th>Actions</th> | |
</tr> | |
</thead> | |
<tbody> | |
{% for entity in entities %} | |
<tr> | |
<td><a href="{{ path('ens_job_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td> | |
<td>{{ entity.type }}</td> | |
<td>{{ entity.company }}</td> | |
<td>{{ entity.logo }}</td> | |
<td>{{ entity.url }}</td> | |
<td>{{ entity.position }}</td> | |
<td>{{ entity.location }}</td> | |
<td>{{ entity.description }}</td> | |
<td>{{ entity.howtoapply }}</td> | |
<td>{{ entity.token }}</td> | |
<td>{{ entity.ispublic }}</td> | |
<td>{{ entity.isactivated }}</td> | |
<td>{{ entity.email }}</td> | |
<td>{% if entity.expiresat %}{{ entity.expiresat|date('Y-m-d H:i:s') }}{% endif%}</td> | |
<td>{% if entity.createdat %}{{ entity.createdat|date('Y-m-d H:i:s') }}{% endif%}</td> | |
<td>{% if entity.updatedat %}{{ entity.updatedat|date('Y-m-d H:i:s') }}{% endif%}</td> | |
<td> | |
<ul> | |
<li> | |
<a href="{{ path('ens_job_show', { 'id': entity.id }) }}">show</a> | |
</li> | |
<li> | |
<a href="{{ path('ens_job_edit', { 'id': entity.id }) }}">edit</a> | |
</li> | |
</ul> | |
</td> | |
</tr> | |
{% endfor %} | |
</tbody> | |
</table> | |
<ul> | |
<li> | |
<a href="{{ path('ens_job_new') }}"> | |
Create a new entry | |
</a> | |
</li> | |
</ul> | |
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title> | |
{% block title %} | |
Jobeet - Your best job board | |
{% endblock %} | |
</title> | |
{% block stylesheets %} | |
<link rel="stylesheet" href="{{ asset('bundles/ensljobeet/css/main.css') }}" type="text/css" media="all" /> | |
{% endblock %} | |
<div id="container"> | |
<div id="header"> | |
<div class="content"> | |
<h1><a href="{{ path('ens_job') }}"> | |
<img src="{{ asset('bundles/ensljobeet/images/logo.jpg') }}" alt="Jobeet Job Board" /> | |
</a></h1> | |
<div id="sub_header"> | |
<div class="post"> | |
<h2>Ask for people</h2> | |
<div> | |
<a href="{{ path('ens_job') }}">Post a Job</a> | |
</div> | |
</div> | |
<div class="search"> | |
<h2>Ask for a job</h2> | |
<form action="" method="get"> | |
<input type="text" name="keywords" id="search_keywords" /> | |
<input type="submit" value="search" /> | |
<div class="help"> | |
Enter some keywords (city, country, position, ...) | |
</div> | |
</form> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div id="content"> | |
{% if app.session.hasFlash('notice') %} | |
<div class="flash_notice"> | |
{{ app.session.flash('notice') }} | |
</div> | |
{% endif %} | |
{% if app.session.hasFlash('error') %} | |
<div class="flash_error"> | |
{{ app.session.flash('error') }} | |
</div> | |
{% endif %} | |
<div class="content"> | |
{% block content %} | |
{% endblock %} | |
</div> | |
</div> | |
<div id="footer"> | |
<div class="content"> | |
<span class="symfony"> | |
<img src="{{ asset('bundles/ensljobeet/images/jobeet-mini.png') }}" /> | |
powered by <a href="http://www.symfony.com/"> | |
<img src="{{ asset('bundles/ensljobeet/images/symfony.gif') }}" alt="symfony framework" /> | |
</a> | |
</span> | |
<ul> | |
<li><a href="">About Jobeet</a></li> | |
<li class="feed"><a href="">Full feed</a></li> | |
<li><a href="">Jobeet API</a></li> | |
<li class="last"><a href="">Affiliates</a></li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment