This repository has been archived by the owner on Mar 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,616 changed files
with
463,901 additions
and
51 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends '::base.html.twig' %} | ||
|
||
{% block title %}{{ application_name }}{% endblock %} | ||
|
||
{% block body %} | ||
<div class="container"> | ||
{% block fos_user_content %}{% endblock %} | ||
</div> | ||
{% endblock %} |
14 changes: 14 additions & 0 deletions
14
app/Resources/SensioGeneratorBundle/skeleton/crud/views/edit.html.twig.twig
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% block extends %} | ||
{{ "{% extends '::base.html.twig' %}" }} | ||
{% endblock extends %} | ||
|
||
{% block body %} | ||
{{ "{% block body -%}" }} | ||
<h1>{{ entity }} edit</h1> | ||
|
||
{{ '{{ form(edit_form) }}' }} | ||
|
||
{% set hide_edit, hide_delete = true, false %} | ||
{% include 'crud/views/others/record_actions.html.twig.twig' %} | ||
{{ "{% endblock %}" }} | ||
{% endblock body %} |
64 changes: 64 additions & 0 deletions
64
app/Resources/SensioGeneratorBundle/skeleton/crud/views/index.html.twig.twig
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{% block extends %} | ||
{{ "{% extends '::base.html.twig' %}" }} | ||
{% endblock extends %} | ||
|
||
{% block body %} | ||
{{ "{% block body -%}" }} | ||
<h1>{{ entity }} list</h1> | ||
|
||
<table class="table table-hover"> | ||
<thead> | ||
<tr> | ||
{%- for field, metadata in fields %} | ||
|
||
<th>{{ field|capitalize }}</th> | ||
|
||
{%- endfor %} | ||
|
||
<th>Actions</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{ '{% for entity in entities %}' }} | ||
<tr> | ||
|
||
{%- for field, metadata in fields %} | ||
{%- if loop.first and ('show' in actions) %} | ||
|
||
<td><a href="{{ "{{ path('" ~ route_name_prefix ~ "_show', { 'id': entity.id }) }}" }}">{{ '{{ entity.' ~ field|replace({'_': ''}) ~ ' }}' }}</a></td> | ||
|
||
{%- elseif metadata.type in ['date', 'datetime'] %} | ||
|
||
<td>{{ '{% if entity.' ~ field|replace({'_': ''}) ~ ' %}{{ entity.' ~ field|replace({'_': ''}) ~ '|date(\'Y-m-d H:i:s\') }}{% endif %}' }}</td> | ||
|
||
{%- else %} | ||
|
||
<td>{{ '{{ entity.' ~ field|replace({'_': ''}) ~ ' }}' }}</td> | ||
|
||
{%- endif %} | ||
|
||
{%- if loop.last %} | ||
|
||
<td> | ||
{%- include "crud/views/others/actions.html.twig.twig" %} | ||
</td> | ||
|
||
{%- endif %} | ||
{%- endfor %} | ||
|
||
</tr> | ||
{{ '{% endfor %}' }} | ||
</tbody> | ||
</table> | ||
|
||
{% if 'new' in actions %} | ||
<ul> | ||
<li> | ||
<a class="btn btn-default" href="{{ "{{ path('" ~ route_name_prefix ~ "_new') }}" }}"> | ||
Create a new entry | ||
</a> | ||
</li> | ||
</ul> | ||
{% endif %} | ||
{{ "{% endblock %}" }} | ||
{% endblock body %} |
14 changes: 14 additions & 0 deletions
14
app/Resources/SensioGeneratorBundle/skeleton/crud/views/new.html.twig.twig
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% block extends %} | ||
{{ "{% extends '::base.html.twig' %}" }} | ||
{% endblock extends %} | ||
|
||
{% block body %} | ||
{{ "{% block body -%}" }} | ||
<h1>{{ entity }} creation</h1> | ||
|
||
{{ '{{ form(form) }}' }} | ||
|
||
{% set hide_edit, hide_delete = true, true %} | ||
{% include 'crud/views/others/record_actions.html.twig.twig' %} | ||
{{ "{% endblock %}" }} | ||
{% endblock body %} |
12 changes: 12 additions & 0 deletions
12
app/Resources/SensioGeneratorBundle/skeleton/crud/views/others/actions.html.twig.twig
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
<ul> | ||
|
||
{%- for action in record_actions %} | ||
|
||
<li> | ||
<a class="btn btn-default" href="{{ "{{ path('" ~ route_name_prefix ~ "_" ~ action ~ "', { 'id': entity.id }) }}" }}">{{ action }}</a> | ||
</li> | ||
|
||
{%- endfor %} | ||
|
||
</ul> |
17 changes: 17 additions & 0 deletions
17
app/Resources/SensioGeneratorBundle/skeleton/crud/views/others/record_actions.html.twig.twig
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<ul class="record_actions"> | ||
<li> | ||
<a href="{{ "{{ path('" ~ route_name_prefix ~ "') }}" }}"> | ||
Back to the list | ||
</a> | ||
</li> | ||
{% if ('edit' in actions) and (not hide_edit) %} | ||
<li> | ||
<a class="btn btn-default" href="{{ "{{ path('" ~ route_name_prefix ~ "_edit', { 'id': entity.id }) }}" }}"> | ||
Edit | ||
</a> | ||
</li> | ||
{% endif %} | ||
{% if ('delete' in actions) and (not hide_delete) %} | ||
<li>{{ '{{ form(delete_form) }}' }}</li> | ||
{% endif %} | ||
</ul> |
36 changes: 36 additions & 0 deletions
36
app/Resources/SensioGeneratorBundle/skeleton/crud/views/show.html.twig.twig
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{% block extends %} | ||
{{ "{% extends '::base.html.twig' %}" }} | ||
{% endblock extends %} | ||
|
||
{% block body %} | ||
{{ "{% block body -%}" }} | ||
<h1>{{ entity }}</h1> | ||
|
||
<table class="table table-hover"> | ||
<tbody> | ||
{%- for field, metadata in fields %} | ||
|
||
<tr> | ||
<th>{{ field|capitalize }}</th> | ||
|
||
{%- if metadata.type in ['date', 'datetime'] %} | ||
|
||
<td>{{ '{{ entity.' ~ field|replace({'_': ''}) ~ '|date(\'Y-m-d H:i:s\') }}' }}</td> | ||
|
||
{%- else %} | ||
|
||
<td>{{ '{{ entity.' ~ field|replace({'_': ''}) ~ ' }}' }}</td> | ||
|
||
{%- endif %} | ||
|
||
</tr> | ||
|
||
{%- endfor %} | ||
|
||
</tbody> | ||
</table> | ||
|
||
{% set hide_edit, hide_delete = false, false %} | ||
{% include 'crud/views/others/record_actions.html.twig.twig' %} | ||
{{ "{% endblock %}" }} | ||
{% endblock body %} |
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,63 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>{% block title %}Welcome!{% endblock %}</title> | ||
{% block stylesheets %}{% endblock %} | ||
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" /> | ||
</head> | ||
<body> | ||
{% block body %}{% endblock %} | ||
{% block javascripts %}{% endblock %} | ||
</body> | ||
<html xmlns="http://www.w3.org/1999/html"> | ||
<head> | ||
<title>{% block title %}Bootstrap 101 Template{% endblock %}</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<!-- Bootstrap --> | ||
|
||
{% block stylesheets %} | ||
{% stylesheets '@bootstrap_less' combine=true %} | ||
<link href="{{ asset_url }}" type="text/css" rel="stylesheet"> | ||
<link type="text/css" rel="stylesheet" href="{{ asset('bundles/murkyhome/css/local.css') }}"> | ||
{% endstylesheets %} | ||
{% endblock %} | ||
|
||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> | ||
<!--[if lt IE 9]> | ||
<script src="../../assets/js/html5shiv.js"></script> | ||
<script src="../../assets/js/respond.min.js"></script> | ||
<![endif]--> | ||
</head> | ||
<body> | ||
|
||
<nav class="navbar navbar-inverse navbar-fixed-top"> | ||
<div class="navbar-header col-sm-2"> | ||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a name="top"></a> | ||
<a class="navbar-brand" href="#" title="{{ application_name }}">{{ application_name }}</a> | ||
</div> | ||
|
||
<div class="navbar-collapse collapse"> | ||
<ul class="nav navbar-nav"> | ||
<li></li> | ||
<li></li> | ||
{% if is_granted('ROLE_USER') %} | ||
<li><a title="Logout" href="{{ path('fos_user_security_logout') }}">Logout</a></li> | ||
{% endif %} | ||
</ul> | ||
</div> | ||
</nav> | ||
|
||
<div class="container"> | ||
<div class="col-sm-2 hidden-xs"> | ||
<ul class="nav nav-list"> | ||
|
||
</ul> | ||
</div> | ||
<div class="col-sm-10 hidden-xs"> | ||
{{ block('body') }} | ||
</div> | ||
</div> | ||
|
||
|
||
{% block javascripts %} | ||
{% javascripts '@jquery_js' '@bootstrap_js' filter='?yui_js' combine=true %} | ||
<script src="{{ asset_url }}"></script> | ||
{% endjavascripts %} | ||
{% endblock %} | ||
</body> | ||
</html> |
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
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
Oops, something went wrong.