Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nobletsolutions/acebundle
https://github.com/nobletsolutions/acebundle
bundle php symfony symfony-bundle
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nobletsolutions/acebundle
- Owner: NobletSolutions
- Created: 2015-09-01T15:56:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-25T06:44:04.000Z (4 months ago)
- Last Synced: 2024-10-29T00:55:52.749Z (3 months ago)
- Topics: bundle, php, symfony, symfony-bundle
- Language: JavaScript
- Homepage:
- Size: 9.2 MB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/NobletSolutions/AceBundle.svg?branch=master)](https://travis-ci.org/NobletSolutions/AceBundle)
#Features
### AJAX Links
Add class 'ajaxForm' and data-update to the target to update with the return of the ajax call.
```twig
...
```Then the form will be submitted over AJAX and the returned content if successful is put as the HTML content of
the element with id divToUpdate. (Via Jquery $element.html(response)).### FullCalendar
Add the routing configuration
```yml
#app/config/routing.yml
ns_ace:
resource: "@NSAceBundle/Resources/config/routing.yml"
```Include the following on the page you want to use the calendar
```twig
{% block javascripts %}
{{ parent() }}
{% endblock %}{% block stylesheets %}
{{ parent() }}
{% endblock %}{% block inlinescripts %}
$(document).ready(function(){
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();$('#calendar-holder').fullCalendar({
header: {
left: 'prev, next',
center: 'title',
right: 'month, basicWeek, basicDay,'
},
lazyFetching: true,
timeFormat: {
// for agendaWeek and agendaDay
agenda: 'h:mmt', // 5:00 - 6:30// for all other views
'': 'h:mmt' // 7p
},
eventSources: [
{
url: '{{path('ace_calendar_loader')}}',
type: 'POST',
// A way to add custom filters to your event listeners
data: {
},
error: function() {
//alert('There was an error while fetching Google Calendar!');
}
}
]
});
});
{% endblock %}{% block body %}
...
...
{% endblock %}
```