PDF rausgenommen
This commit is contained in:
@ -0,0 +1,62 @@
|
||||
<tr class="annotation" data-id="{{ annotation.idNote }}" data-date="{{ annotation.date }}">
|
||||
<td class="annotation-meta">
|
||||
<div class="annotation-star{% if annotation.canEditOrDelete %} annotation-star-changeable{% endif %}" data-starred="{{ annotation.starred }}"
|
||||
{% if annotation.canEditOrDelete %}title="{{ 'Annotations_ClickToStarOrUnstar'|translate }}"{% endif %}>
|
||||
{% if annotation.starred %}
|
||||
<img src="plugins/Morpheus/images/star.png"/>
|
||||
{% else %}
|
||||
<img src="plugins/Morpheus/images/star_empty.png"/>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="annotation-period {% if annotation.canEditOrDelete %}annotation-enter-edit-mode{% endif %}">{{ annotation.date }}</div>
|
||||
{% if annotation.canEditOrDelete %}
|
||||
<div class="annotation-period-edit" style="display:none;">
|
||||
<a href="#" class= "font">{{ annotation.date }}</a>
|
||||
<div class="datepicker" style="display:none;"/>
|
||||
</div>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
{% if annotation.user is defined and userLogin != 'anonymous' %}
|
||||
<td class="annotation-user-cell">
|
||||
<span class="annotation-user">{{ annotation.user }}</span><br/>
|
||||
|
||||
</td>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<td class="annotation-value">
|
||||
<div class="annotation-view-mode">
|
||||
<span {% if annotation.canEditOrDelete %}title="{{ 'Annotations_ClickToEdit'|translate }}"
|
||||
class="annotation-enter-edit-mode"{% endif %}>{{ annotation.note|raw }}</span>
|
||||
</div>
|
||||
|
||||
|
||||
{% if annotation.canEditOrDelete %}
|
||||
<div class="annotation-edit-mode" style="display:none;">
|
||||
<div class="input-field">
|
||||
<input class="annotation-edit browser-default" type="text" value="{{ annotation.note|raw }}"/>
|
||||
</div>
|
||||
<br/>
|
||||
<input class="annotation-save btn" type="button" value="{{ 'General_Save'|translate }}"/>
|
||||
<input class="annotation-cancel btn" type="button" value="{{ 'General_Cancel'|translate }}"/>
|
||||
</div>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class = "wider">
|
||||
{% if annotation.canEditOrDelete %}
|
||||
|
||||
<span class="table-action edit-annotation annotation-enter-edit-mode" title="{{ 'Annotations_ClickToEdit'|translate }}">
|
||||
<span class="icon-edit"></span>
|
||||
</span>
|
||||
|
||||
<a class="delete-annotation" title="Delete">
|
||||
<span class="icon-delete"></span>
|
||||
</a>
|
||||
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
@ -0,0 +1,37 @@
|
||||
<div class="annotations">
|
||||
|
||||
{% if annotations is empty %}
|
||||
<div class="empty-annotation-list">{{ 'Annotations_NoAnnotations'|translate }}</div>
|
||||
{% endif %}
|
||||
|
||||
<table>
|
||||
|
||||
|
||||
{% for annotation in annotations %}
|
||||
{% include "@Annotations/_annotation.twig" %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<tr class="new-annotation-row" style="display:none;" data-date="{{ selectedDate }}">
|
||||
<td class="annotation-meta">
|
||||
<div class="annotation-star"> </div>
|
||||
<div class="annotation-period-edit">
|
||||
<a href="#" class="font">{{ selectedDate }}</a>
|
||||
|
||||
<div class="datepicker" style="display:none;"/>
|
||||
</div>
|
||||
</td>
|
||||
<td class="annotation-user-cell"><span class="annotation-user">{{ userLogin }}</span></td>
|
||||
<td class="annotation-value">
|
||||
<div class="input-field">
|
||||
<input type="text" value=""
|
||||
class="new-annotation-edit browser-default"
|
||||
placeholder="{{ 'Annotations_EnterAnnotationText'|translate }}"/>
|
||||
</div><br/>
|
||||
<input type="button" class="btn new-annotation-save" value="{{ 'General_Save'|translate }}"/>
|
||||
<input type="button" class="btn new-annotation-cancel" value="{{ 'General_Cancel'|translate }}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
@ -0,0 +1,32 @@
|
||||
<div class="annotation-manager"
|
||||
{% if startDate != endDate %}data-date="{{ startDate }},{{ endDate }}" data-period="range"
|
||||
{% else %}data-date="{{ startDate }}" data-period="{{ period }}"
|
||||
{% endif %}>
|
||||
|
||||
<div class="annotations-header">
|
||||
<span class= "annotation">{{ 'Annotations_Annotations'|translate }}</span>
|
||||
</div>
|
||||
|
||||
<div class="annotation-list-range">{{ startDatePretty }}{% if startDate != endDate %} — {{ endDatePretty }}{% endif %}</div>
|
||||
|
||||
<div class="annotation-list">
|
||||
{% include "@Annotations/_annotationList.twig" %}
|
||||
|
||||
<span class="loadingPiwik" style="display:none;"><img src="plugins/Morpheus/images/loading-blue.gif"/>{{ 'General_Loading'|translate }}</span>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="annotation-controls">
|
||||
|
||||
{% if canUserAddNotes %}
|
||||
<a class="add-annotation">
|
||||
<span class="icon-add"></span>
|
||||
{{ 'Annotations_CreateNewAnnotation'|translate }}
|
||||
</a>
|
||||
{% elseif userLogin == 'anonymous' %}
|
||||
<a href="index.php?module=Login">{{ 'Annotations_LoginToAnnotate'|translate }}</a>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
@ -0,0 +1,14 @@
|
||||
<div class="evolution-annotations">
|
||||
{% for dateCountPair in annotationCounts %}
|
||||
{% set date=dateCountPair[0] %}
|
||||
{% set counts=dateCountPair[1] %}
|
||||
<span data-date="{{ date }}" data-count="{{ counts.count }}" data-starred="{{ counts.starred }}"
|
||||
{% if counts.count == 0 %}title="{{ 'Annotations_AddAnnotationsFor'|translate(date) }}"
|
||||
{% elseif counts.count == 1 %}title="{{ 'Annotations_AnnotationOnDate'|translate(date,
|
||||
(counts.note|e('html_attr')))|raw }}
|
||||
{{ 'Annotations_ClickToEditOrAdd'|translate }}"
|
||||
{% else %}}title="{{ 'Annotations_ViewAndAddAnnotations'|translate(date) }}"{% endif %}>
|
||||
<span class="icon-annotation {% if counts.starred > 0 %}starred{% endif %}"/>
|
||||
</span>
|
||||
{% endfor %}
|
||||
</div>
|
@ -0,0 +1 @@
|
||||
{% include "@Annotations/_annotation.twig" %}
|
Reference in New Issue
Block a user