Source

django-swingcms / swingcms / agenda / templates / agenda / agenda_as_calendar.html

{% load i18n %}



<script type="text/javascript">

    $(function(){
        $(".tooltip").tipTip({
            maxWidth: "400px",
            edgeOffset: 10,
            defaultPosition: "top",
            delay: 100,
            fadeIn: 100,
            fadeOut:100,
            attribute: "content"}
        );
    });

</script>

<div id='agenda_calendar'>
	{% for dt_month, month in agenda_as_calendar.items %}
		<br />
		<br />
		<h3>{{ dt_month|date:'F Y' }}</h3>
		<br />
		<br />
		<table>
            <tr class='day_title'>
        		{% for d in days %}
                    <td>
                        {% trans d %}
                    </td>
        		{% endfor %}
            </tr>
		{% for week in month %}
			<tr>
			{% for dt_day, events in week %}
				<td>
					<div class='event'>

					    <div class='date'>{{ dt_day.day }}</div><br />

						{% for e in events %}
						    <a class="tooltip" href='/view/event/{{ e.id }}' content="

                                {% trans "from" %}: {{ e.dt_start|time:'H:i' }} {% trans "to" %}: {{ e.dt_start|time:'H:i' }}<br />

                                {% trans "where" %}: {{ e.location }}<br />

                                {% if e.referent_name or e.referent_cell or e.referent_email %}

                                    {% trans "referent" %}:

                                    {% if e.referent_name %}
                                        {{ e.referent_name }}&nbsp;&nbsp;
                                    {% endif %}
                                    {% if e.referent_cell %}
                                        {{ e.referent_cell }}&nbsp;&nbsp;
                                    {% endif %}
                                    {% if e.referent_email %}
                                        {{ e.referent_email }}&nbsp;&nbsp;
                                    {% endif %}

                                    <br />
                                {% endif %}

                                <!-- {% if e.map %}
                                    {% trans "map" %}: <a href='{{ e.referent }}'>{% trans "click here" %}</a><br />
                                {% endif %} -->
                                <br />
                                {{ e.text|safe }}
                            ">
                                {% if e.title %}
                                    {{ e.title|slice:':25' }}
                                {% else %}
                                    {{ e.name|slice:':25' }}
                                {% endif %}
                            </a><br />
						{% empty %}

						{% endfor %}

					</div>
				</td>
			{% endfor %}
			</tr>
		{% endfor %}
		</table>
		<br />
		<br />
	{% endfor %}
</div>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.