pip-webui
Version:
HTML5 UI for LOB applications
316 lines (260 loc) • 13.8 kB
HTML
<h2 class="text-title tm0 bm24">Avatar {{ 'SAMPLE' | translate }}</h2>
<h3 class="text-subhead2">{{ 'PARTY_ENTITY_AVATAR_EDIT' | translate }} </h3>
<pip-avatar-edit
pip-party-id="avatar1.id"
pip-created="onPictureCreated($event)"
pip-changed="onPictureChanged($control)"
pip-default-text="Change avatar"
pip-reset="isReseting()"
ng-disabled="pictureDisabled">
</pip-avatar-edit>
<p class="text-body1 tm16 bm16">id: <strong>{{avatar1.id}}</strong>
- {{ 'RESET' | translate }}: <strong>{{isReseting()}}</strong>
- {{ 'DISABLED' | translate }}: <strong>{{pictureDisabled}}</strong>
</p>
<div class="h48 layout-row layout-align-start-center">
<md-button ng-click="onSaveClick()" class="lm0">{{ 'SAVE' | translate }}</md-button>
<md-button ng-click="onDisableReset()">
<span ng-if="isReset">{{ 'DISABLE_RESET' | translate }}</span>
<span ng-if="!isReset">{{ 'ENABLE_RESET' | translate }}</span>
</md-button>
<md-button ng-click="pictureDisabled = !pictureDisabled">{{ 'ENABLE_DISABLE' | translate }}</md-button>
</div>
<h3 class="text-subhead2">{{:: 'CODE' | translate}}</h3>
<pre class="text-body1 color-window-bg p16">
<<strong>pip-avatar-edit</strong> pip-party-id="avatar1.id"
pip-created="onPictureCreated($event)"
pip-changed="onPictureChanged($control)"
pip-default-text="Change avatar"
pip-reset="isReseting()"
ng-disabled="pictureDisabled">
</<strong>pip-avatar-edit</strong>>
</pre>
<md-divider class="tm8 pip-list-divider"></md-divider>
<h3 class="text-subhead2">Avatars</h3>
<div>
<p class="text-body2 tm16 bm16">{{ 'AVATARS_FOR_USER_WITH_IMAGES' | translate }}</p>
<div class="avatar-section">
<pip-avatar class="pip-face-sm"
pip-rebind="true"
pip-rebind-avatar="true"
pip-party-id="avatars[avatarIndex].id"
pip-party-name="avatars[avatarIndex].name">
</pip-avatar>
<pip-avatar class="pip-face"
pip-rebind="true"
pip-party-id="avatars[avatarIndex].id"
pip-party-name="avatars[avatarIndex].name">
</pip-avatar>
<pip-avatar class="pip-face-md"
pip-rebind="true"
pip-party-id="avatars[avatarIndex].id"
pip-party-name="avatars[avatarIndex].name">
</pip-avatar>
<pip-avatar class="pip-face-lg"
pip-rebind="true"
pip-party-id="avatars[avatarIndex].id"
pip-party-name="avatars[avatarIndex].name">
</pip-avatar>
</div>
<md-button ng-click="newAvatars()" class="lm0">
{{ 'UPDATE_AVATAR' | translate }}
</md-button>
<h3 class="text-subhead2">{{:: 'CODE' | translate}}</h3>
<pre class="text-body1 color-window-bg p16">
<<strong>pip-avatar class="pip-face-sm"</strong>
pip-rebind="true"
pip-rebind-avatar="true"
pip-party-id="avatars[avatarIndex].id"
pip-party-name="avatars[avatarIndex].name">
</<strong>pip-avatar</strong>>
<<strong>pip-avatar class="pip-face"</strong>
pip-rebind="true"
pip-party-id="avatars[avatarIndex].id"
pip-party-name="avatars[avatarIndex].name">
</<strong>pip-avatar</strong>>
<<strong>pip-avatar class="pip-face-md"</strong>
pip-rebind="true"
pip-party-id="avatars[avatarIndex].id"
pip-party-name="avatars[avatarIndex].name">
</<strong>pip-avatar</strong>>
<<strong>pip-avatar class="pip-face-lg"</strong>
pip-rebind="true"
pip-party-id="avatars[avatarIndex].id"
pip-party-name="avatars[avatarIndex].name">
</<strong>pip-avatar</strong>>
</pre>
<md-divider class="tm8 pip-list-divider"></md-divider>
<p class="text-body2 tm16 bm16">{{ 'AVATARS_FOR_USERS_WITHOUT_IMAGES' | translate }}</p>
<div class="avatar-section">
<pip-avatar class="pip-face-lg" pip-party-id="'53b63780bf898e927e49325b'" pip-party-name="'Bill'">
</pip-avatar>
<pip-avatar class="pip-face-md" pip-party-id="'x54a769fd3abccf9647abb7de'" pip-party-name="'John'">
</pip-avatar>
<pip-avatar class="pip-face" pip-party-id="'x54a769fd3abccf9647abb7de'" pip-party-name="'Victor'">
</pip-avatar>
<pip-avatar class="pip-face-lg" pip-party-id="'x54a769fd3abccf9647abb7de'" pip-party-name="'Alex'">
</pip-avatar>
<pip-avatar class="pip-face-sm" pip-party-id="'a54a769fd3abccf9647abb7de'" pip-party-name="'Emilio'">
</pip-avatar>
</div>
<h3 class="text-subhead2">{{:: 'CODE' | translate}}</h3>
<pre class="text-body1 color-window-bg p16">
<<strong>pip-avatar class="pip-face-lg"</strong>
pip-party-id="'53b63780bf898e927e49325b'"
<strong>pip-party-name="'Bill'"</strong>>
</<strong>pip-avatar</strong>>
<<strong>pip-avatar class="pip-face-md"</strong>
pip-party-id="'x54a769fd3abccf9647abb7de'"
<strong>pip-party-name="'John'"</strong>>
</<strong>pip-avatar</strong>>
<<strong>pip-avatar class="pip-face"</strong>
pip-party-id="x54a769fd3abccf9647abb7de"
<strong>pip-party-name="'Victor'"</strong>>
</<strong>pip-avatar</strong>>
<<strong>pip-avatar class="pip-face-lg"</strong>
pip-party-id="x54a769fd3abccf9647abb7de"
<strong>pip-party-name="'Alex'"</strong>>
</<strong>pip-avatar</strong>>
<<strong>pip-avatar class="pip-face-sm"</strong>
pip-party-id="'a54a769fd3abccf9647abb7de'"
<strong>pip-party-name="'Emilio'"</strong>>
</<strong>pip-avatar</strong>>
</pre>
<md-divider class="tm8 pip-list-divider"></md-divider>
<p class="text-body2 tm16 bm16">{{ 'AVATARS_FOR_ENTITIES_WITHOUT_IMAGES' | translate }}</p>
<div class="avatar-section">
<pip-avatar pip-rebind="true"
pip-id="'5660d088cc1eaf174ec793f7'"
pip-party-id="'55f28f064b0c570c4b1f138d'"
pip-entity-type="'goal'"
class="pip-face-sm">
</pip-avatar>
<pip-avatar pip-rebind="true"
pip-id="'5660d088cc1eaf174ec793f7'"
pip-party-id="'55f28f064b0c570c4b1f138d'"
pip-entity-type="'goal'"
class="pip-face">
</pip-avatar>
<pip-avatar pip-rebind="true"
pip-id="'5660d088cc1eaf174ec793f7'"
pip-party-id="'55f28f064b0c570c4b1f138d'"
pip-entity-type="'goal'"
class="pip-face-md">
</pip-avatar>
<pip-avatar pip-rebind="true"
pip-id="'5660d088cc1eaf174ec793f7'"
pip-party-id="'55f28f064b0c570c4b1f138d'"
pip-entity-type="'goal'"
class="pip-face-lg">
</pip-avatar>
</div>
<p class="text-body2 tm16 bm16">{{ 'AVATARS_FOR_ENTITIES_WITH_IMAGES' | translate }}</p>
<div class="avatar-section">
<pip-avatar pip-rebind="true"
pip-id="'566ff4e8cc1eaf174ec7958c'"
pip-party-id="'56184c24c98f6e504a8965d9'"
pip-entity-type="'goal'"
class="pip-face-sm">
</pip-avatar>
<pip-avatar pip-rebind="true"
pip-id="'566ff4e8cc1eaf174ec7958c'"
pip-party-id="'56184c24c98f6e504a8965d9'"
pip-entity-type="'goal'"
class="pip-face">
</pip-avatar>
<pip-avatar pip-rebind="true"
pip-id="'566ff4e8cc1eaf174ec7958c'"
pip-party-id="'56184c24c98f6e504a8965d9'"
pip-entity-type="'goal'"
class="pip-face-md">
</pip-avatar>
<pip-avatar pip-rebind="true"
pip-id="'566ff4e8cc1eaf174ec7958c'"
pip-party-id="'56184c24c98f6e504a8965d9'"
pip-entity-type="'goal'"
class="pip-face-lg">
</pip-avatar>
</div>
<h3 class="text-subhead2">{{:: 'CODE' | translate}}</h3>
<pre class="text-body1 color-window-bg p16">
<<strong>pip-avatar</strong> pip-rebind="true"
pip-id="'5660d088cc1eaf174ec793f7'"
pip-party-id="'55f28f064b0c570c4b1f138d'"
<strong>pip-entity-type="'goal'"</strong>
<strong>class="pip-face-sm"</strong>>
</<strong>pip-avatar</strong>>
<<strong>pip-avatar</strong> pip-rebind="true"
pip-id="'5660d088cc1eaf174ec793f7'"
pip-party-id="'55f28f064b0c570c4b1f138d'"
<strong>pip-entity-type="'goal'"</strong>
<strong>class="pip-face"</strong>>
</<strong>pip-avatar</strong>>
<<strong>pip-avatar</strong> pip-rebind="true"
pip-id="'5660d088cc1eaf174ec793f7'"
pip-party-id="'55f28f064b0c570c4b1f138d'"
<strong>pip-entity-type="'goal'"</strong>
<strong>class="pip-face-md"</strong>>
</<strong>pip-avatar</strong>>
<<strong>pip-avatar</strong> pip-rebind="true"
pip-id="'5660d088cc1eaf174ec793f7'"
pip-party-id="'55f28f064b0c570c4b1f138d'"
<strong>pip-entity-type="'goal'"</strong>
<strong>class="pip-face-lg"</strong>>
</<strong>pip-avatar</strong>>
</pre>
<md-divider class="tm8 pip-list-divider"></md-divider>
<h3 class="text-subhead2">{{ 'AVATAR_GIANT' | translate }}</h3>
<div>
<pip-avatar class="pip-sface-xxl" pip-party-id="'55f1ee67880929ec46ec394c'"
pip-party-name="'Зайка'">
</pip-avatar>
<pip-avatar class="pip-sface-xxl" pip-party-id="'a54a769fd3abccf9647abb7de'" pip-party-name="'Emilio'">
</pip-avatar>
<pip-avatar pip-rebind="true"
pip-id="'5660d088cc1eaf174ec793f7'"
pip-party-id="'55f28f064b0c570c4b1f138d'"
pip-entity-type="'goal'"
class="pip-sface-xxl">
</pip-avatar>
<pip-avatar pip-rebind="true"
pip-id="'566ff4e8cc1eaf174ec7958c'"
pip-party-id="'56184c24c98f6e504a8965d9'"
pip-entity-type="'goal'"
class="pip-sface-xxl">
</pip-avatar>
<pip-avatar pip-rebind="true"
pip-id="'567865427b887c9461d8409d'"
pip-party-id="'56184c24c98f6e504a8965d9'"
pip-entity-type="'event'"
class="pip-sface-xxl">
</pip-avatar>
</div>
<h3 class="text-subhead2">{{:: 'CODE' | translate}}</h3>
<pre class="text-body1 color-window-bg p16">
<<strong>pip-avatar class="pip-sface-xxl"</strong> pip-party-id="'55f1ee67880929ec46ec394c'"
pip-party-name="'Зайка'">
</<strong>pip-avatar</strong>>
<<strong>pip-avatar class="pip-sface-xxl"</strong> pip-party-id="'a54a769fd3abccf9647abb7de'"
<strong>pip-party-name="'Emilio'"</strong>>
</<strong>pip-avatar</strong>>
<<strong>pip-avatar</strong> pip-rebind="true"
pip-id="'5660d088cc1eaf174ec793f7'"
pip-party-id="'55f28f064b0c570c4b1f138d'"
<strong>pip-entity-type="'goal'"</strong>
<strong>class="pip-sface-xxl"</strong>>
</<strong>pip-avatar</strong>>
<<strong>pip-avatar</strong> pip-rebind="true"
pip-id="'566ff4e8cc1eaf174ec7958c'"
pip-party-id="'56184c24c98f6e504a8965d9'"
<strong>pip-entity-type="'goal'"</strong>
<strong>class="pip-sface-xxl"</strong>>
</<strong>pip-avatar</strong>>
<<strong>pip-avatar</strong> pip-rebind="true"
pip-id="'567865427b887c9461d8409d'"
pip-party-id="'56184c24c98f6e504a8965d9'"
<strong>pip-entity-type="'event'"</strong>
<strong>class="pip-sface-xxl"</strong>>
</<strong>pip-avatar</strong>>
</pre>
</div>