(html) Wrap invitation in a md-card

This commit is contained in:
Francis Lachapelle 2016-02-01 16:06:34 -05:00
parent b5a7447cba
commit ff1dc9c82d

View file

@ -12,7 +12,7 @@
<md-toolbar class="md-medium-tall md-warn md-hue-3">
<div class="md-toolbar-tools">
<h2>
SOGo could not parse the body of this calendar MIME part.
<var:string label:value="SOGo could not parse the body of this calendar MIME part."/>
</h2>
</div>
</md-toolbar>
@ -25,9 +25,7 @@
<!-- EVENT PROPERLY PARSED -->
<var:if condition="couldParseCalendar">
<md-divider class="md-padding"/>
<div sg-imip="message" var:sg-imip-path="pathToAttachmentFromMessage">
<md-card sg-imip="message" var:sg-imip-path="pathToAttachmentFromMessage">
<!-- TODO - remove unused strings
<legend>
<var:string label:value="Appointment"/>:
@ -42,12 +40,12 @@
</legend> -->
<!-- IMIP REQUEST -->
<md-card-content>
<var:if condition="inCalendar.method.uppercaseString" const:value="REQUEST">
<!-- sent to attendees to propose or update a meeting -->
<var:if condition="isLoggedInUserAnAttendee">
<var:if condition="hasCalendarAccess">
<div>
<p>
<div layout="row" layout-align="start center">
<var:if condition="currentUserAttendee.rsvp" const:value="true">
<var:if condition="currentUserAttendee.partStatWithDefault"
@ -79,10 +77,9 @@
<var:string label:value="Delegate ..." />
</md-button>
<md-dialog-actions layout="row"
<div layout="row"
layout-align="start center"
ng-show="delegateInvitation == true">
<md-autocomplete
class="md-flex"
md-search-text="searchText"
@ -92,6 +89,7 @@
md-no-cache="true"
md-item-text="user.$shortFormat()"
label:md-floating-label="Delegated to">
<md-item-template>
<span class="md-contact-suggestion" layout="row" layout-align="space-between center">
<span class="md-contact-name"
md-highlight-text="searchText"
@ -99,12 +97,17 @@
md-highlight-text="searchText"
md-highlight-flags="^i">{{user.c_email}}</span>
</span>
</md-item-template>
</md-autocomplete>
<md-button ng-click="delegateInvitation = false"><var:string label:value="Cancel"/></md-button>
<md-button class="md-primitive"
<md-button class="md-icon-button" ng-click="delegateInvitation = false">
<md-icon>close</md-icon>
</md-button>
<md-button class="md-icon-button md-primary"
ng-click="iCalendarAction('delegate')"
ng-disabled="!delegatedTo || delegatedTo.length == 0"><var:string label:value="OK"/></md-button>
</md-dialog-actions>
ng-disabled="!delegatedTo || delegatedTo.length == 0">
<md-icon>check</md-icon>
</md-button>
</div>
</var:if>
<!-- TODO - should we re-enable this? It never
worked in v2!
@ -126,7 +129,8 @@
<var:string label:value="Add to calendar" />
</md-button>
</var:if>
</p>
<md-divider><!-- divider --></md-divider>
</div>
</var:if> <!-- if condition="hasCalendarAccess" -->
@ -203,8 +207,7 @@
<var:if condition="isLoggedInUserTheOrganizer">
<!--
Possible Status:
REPLY => check whether it matches, if not suggest change, show
comment
REPLY => check whether it matches, if not suggest change, show comment
REFRESH => add button to resent iCal
COUNTER => show panel to decide on counter
-->
@ -270,13 +273,14 @@
<var:string label:value="Comment"/>
</label>
<div>
<p>
<md-content>
<var:string value="authorativeEvent.comment" const:insertBR="1" />
</p>
</md-content>
</div>
</div>
</var:if>
</div>
</md-card-content>
</md-card>
</var:if><!--if condition="couldParseCalendar" -->