Comments (9)
Hi!
I've solved it, the problema was that I forgot to specify the rel
type on the <link>
tag.
Sorry, rookie mistake.
But thanks for your time.
from angular-bootstrap-calendar.
Have you included the calendar CSS file?
from angular-bootstrap-calendar.
Hi!
Yes, I've added it.
Here I post my code.
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Maestria</title>
<!-- Bootstrap Core CSS -->
<link href="http://localhost/Maestria/css/bootstrap.min.css" rel="stylesheet">
<link href="http://localhost/Maestria/bower_components/angular-bootstrap-calendar/dist/css/angular-bootstrap-calendar.min.css" type="text/css">
<link href="http://localhost/Maestria/css/main.css" type="text/css">
<!-- MetisMenu CSS -->
<!-- <link href="--><?//= base_url("css/plugins/metisMenu/metisMenu.min.css") ?><!--" rel="stylesheet">-->
<!-- Custom CSS -->
<!-- <link href="--><?//= base_url("css/sb-admin-2.css") ?><!--" rel="stylesheet">-->
<!-- Custom Fonts -->
<!-- <link href="--><?//= base_url("font-awesome-4.2.0/css/font-awesome.min.css") ?><!--" rel="stylesheet" type="text/css">-->
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body ng-app="mwl.calendar">
<div id="wrapper">
<div id="page-wrapper">
<div class="container-fluid">
<div class="row" ng-controller="MainCtrl" id="demo">
<div class="col-md-8 col-md-offset-2">
<h2 class="text-center">{{ calendarControl.getTitle() }}</h2>
<div class="row">
<div class="col-md-6 text-center">
<div class="btn-group">
<button class="btn btn-primary" ng-click="calendarControl.prev()">Previous</button>
<button class="btn btn-default" ng-click="setCalendarToToday()">Today</button>
<button class="btn btn-primary" ng-click="calendarControl.next()">Next</button>
</div>
</div>
<br class="visible-xs visible-sm">
<div class="col-md-6 text-center">
<div class="btn-group">
<label class="btn btn-primary" ng-model="calendarView" btn-radio="'year'">Year</label>
<label class="btn btn-primary" ng-model="calendarView" btn-radio="'month'">Month</label>
<label class="btn btn-primary" ng-model="calendarView" btn-radio="'week'">Week</label>
<label class="btn btn-primary" ng-model="calendarView" btn-radio="'day'">Day</label>
</div>
</div>
</div>
<br>
<mwl-calendar
calendar-events="events"
calendar-view="calendarView"
calendar-current-day="calendarDay"
calendar-control="calendarControl"
calendar-event-click="eventClicked($event)"
calendar-edit-event-html="'<i class=\'glyphicon glyphicon-pencil\'></i>'"
calendar-delete-event-html="'<i class=\'glyphicon glyphicon-remove\'></i>'"
calendar-edit-event-click="eventEdited($event)"
calendar-delete-event-click="eventDeleted($event)"
calendar-auto-open="true"
></mwl-calendar>
<br><br><br>
<script type="text/ng-template" id="modalContent.html">
<div class="modal-header">
<h3 class="modal-title">Event action occurred!</h3>
</div>
<div class="modal-body">
<p>Action: <pre>{{ action }}</pre></p>
<p>Event: <pre>{{ event | json }}</pre></p>
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="$modalInstance.close()">OK</button>
</div>
</script>
<h3 id="event-editor">
Edit events
<button class="btn btn-primary pull-right" ng-click="events.push({title: 'New event', type: 'important'})">Add new</button>
<div class="clearfix"></div>
</h3>
<table class="table table-bordered">
<thead>
<tr>
<th>Title</th>
<th>Type</th>
<th>Starts at</th>
<th>Ends at</th>
<th>Remove</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="event in events">
<td><input type="text" class="form-control" ng-model="event.title"></td>
<td>
<select ng-model="event.type" class="form-control">
<option value="important">Important</option>
<option value="warning">Warning</option>
<option value="info">Info</option>
<option value="inverse">Inverse</option>
<option value="success">Success</option>
<option value="special">Special</option>
</select>
</td>
<td>
<p class="input-group" style="max-width: 250px">
<input type="text" class="form-control" readonly datepicker-popup="medium" ng-model="event.starts_at" is-open="event.startOpen" close-text="Close" />
<span class="input-group-btn">
<button type="button" class="btn btn-default" ng-click="toggle($event, 'startOpen', event)"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</p>
<timepicker ng-model="event.starts_at" hour-step="1" minute-step="15" show-meridian="true"></timepicker>
</td>
<td>
<p class="input-group" style="max-width: 250px">
<input type="text" class="form-control" readonly datepicker-popup="medium" ng-model="event.ends_at" is-open="event.endOpen" close-text="Close" />
<span class="input-group-btn">
<button type="button" class="btn btn-default" ng-click="toggle($event, 'endOpen', event)"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</p>
<timepicker ng-model="event.ends_at" hour-step="1" minute-step="15" show-meridian="true"></timepicker>
</td>
<td><button class="btn btn-danger" ng-click="events.splice($index, 1)">Delete</button></td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</div>
<!-- /#page-wrapper --></div>
<!-- /#wrapper -->
<script src="http://localhost/Maestria/bower_components/moment/min/moment.min.js"></script>
<script src="http://localhost/Maestria/bower_components/angular/angular.min.js"></script>
<script src="http://localhost/Maestria/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script>
<script src="http://localhost/Maestria/bower_components/angular-bootstrap-calendar/dist/js/angular-bootstrap-calendar-tpls.min.js"></script>
<script src="http://localhost/Maestria/js/main.js"></script>
</body>
</html>
from angular-bootstrap-calendar.
Are there any errors in the console? What shows up if you inspect element on where the calendar should be?
from angular-bootstrap-calendar.
Yes, I've got an error, but from jquery.
from angular-bootstrap-calendar.
Can you try to reproduce it on http://plnkr.co/
Without actually being able to hack about with the code myself, I’m pretty much just guessing otherwise.
On 24 January 2015 at 18:21:42, Daniel Rodríguez Monroy ([email protected]) wrote:
Yes, I've got an error, but from jquery.
—
Reply to this email directly or view it on GitHub.
from angular-bootstrap-calendar.
Hi!
I'm creating a repository, as soon as it's up, I will share you the link.
Also, I want to thank you for all your help.
And sorry for my english.
from angular-bootstrap-calendar.
Hi!
Here it's the link to the proyect link the proyect.
Thanks in advancem for all your help.
from angular-bootstrap-calendar.
Glad to hear :)
from angular-bootstrap-calendar.
Related Issues (20)
- Change direction of days HOT 3
- Multiple months in page HOT 2
- All Events Show in the Current Year HOT 2
- on-timespan-click at calendarYearView HOT 1
- On-event-click does not work for all day events HOT 4
- calendarUtils.js.map routing exception HOT 5
- Year view with day in rows and month in columns HOT 1
- Event cannot start after it finishes HOT 4
- Feature Request: Ability to drag and drop between calendars HOT 6
- Feature Request: Configuration to show/hide the week number label HOT 1
- How to Display Event Titles instead of color dots HOT 1
- A bug appears in case you have start/end date in recurring events HOT 1
- iam unable to implement it in angularcli can anyone help me HOT 3
- implemented from plunker but still getting this error HOT 1
- Is supported select range on touch device HOT 1
- Is supported Years view and Weeks View HOT 1
- i cant see the calendar properly HOT 2
- lost element on-event-times-changed HOT 1
- Need to add buttons or links inside the calendar HOT 1
- I need a good way to modify the height of the rows in the dayview HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-bootstrap-calendar.