Browse Source
Conflicts: app/css/desktop.css app/js/directives.js app/partials/desktop/photo_modal.html app/partials/desktop/user_modal.htmlTitanNano-voice_recorder
41 changed files with 1863 additions and 997 deletions
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 6.2 KiB |
File diff suppressed because one or more lines are too long
@ -1,24 +1,23 @@ |
|||||||
<div class="contacts_modal_wrap" my-modal-position> |
<div class="md_simple_modal_wrap" my-modal-position> |
||||||
|
|
||||||
<a class="modal-close-button" ng-click="$dismiss()"><i></i></a> |
<div class="md_simple_modal_body"> |
||||||
|
|
||||||
<div class="modal-body"> |
<form class="modal_simple_form" ng-submit="updateGroup()"> |
||||||
|
|
||||||
<form class="modal_simple_form" ng-submit="createGroup()"> |
|
||||||
|
|
||||||
<h4 my-i18n="group_create_modal_title"></h4> |
<h4 my-i18n="group_create_modal_title"></h4> |
||||||
|
|
||||||
<div class="form-group"> |
<div class="md-input-group" my-labeled-input> |
||||||
<input class="form-control input-sm" my-focused type="text" placeholder="{{'group_create_name' | i18n}}" ng-model="group.name"/> |
<label class="md-input-label" my-i18n="group_create_name"></label> |
||||||
|
<input class="md-input" my-focused type="text" ng-model="group.name" /> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</form> |
</form> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="modal-footer"> |
<div class="md_simple_modal_footer"> |
||||||
<a class="btn btn-link" ng-click="$dismiss()" my-i18n="modal_cancel"></a> |
<button class="btn btn-md" ng-click="$dismiss()" my-i18n="modal_cancel"></button> |
||||||
<button class="btn btn-primary" ng-class="{disabled: group.creating}" ng-click="createGroup()" ng-bind="group.creating ? 'group_create_submit_active' : 'group_create_submit' | i18n" ng-disabled="group.creating"></button> |
<button class="btn btn-md" ng-class="{disabled: group.creating}" ng-click="createGroup()" ng-bind="group.creating ? 'group_create_submit_active' : 'group_create_submit' | i18n" ng-disabled="group.creating"></button> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
@ -1,24 +1,23 @@ |
|||||||
<div class="contacts_modal_wrap" my-modal-position> |
<div class="md_simple_modal_wrap" my-modal-position> |
||||||
|
|
||||||
<a class="modal-close-button" ng-click="$dismiss()"><i></i></a> |
<div class="md_simple_modal_body"> |
||||||
|
|
||||||
<div class="modal-body"> |
|
||||||
|
|
||||||
<form class="modal_simple_form" ng-submit="updateGroup()"> |
<form class="modal_simple_form" ng-submit="updateGroup()"> |
||||||
|
|
||||||
<h4 my-i18n="group_edit_modal_title"></h4> |
<h4 my-i18n="group_edit_modal_title"></h4> |
||||||
|
|
||||||
<div class="form-group"> |
<div class="md-input-group" my-labeled-input> |
||||||
<input class="form-control input-sm" my-focused type="text" placeholder="{{'group_edit_name' | i18n}}" ng-model="group.name"/> |
<label class="md-input-label" my-i18n="group_edit_name"></label> |
||||||
|
<input class="md-input" my-focused type="text" ng-model="group.name" /> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</form> |
</form> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="modal-footer"> |
<div class="md_simple_modal_footer"> |
||||||
<a class="btn btn-link" ng-click="$dismiss()" my-i18n="modal_cancel"></a> |
<button class="btn btn-md" ng-click="$dismiss()" my-i18n="modal_cancel"></button> |
||||||
<button class="btn btn-primary" ng-class="{disabled: group.updating}" ng-click="updateGroup()" ng-bind="group.updating ? 'group_edit_submit_active' : 'group_edit_submit' | i18n" ng-disabled="group.updating"></button> |
<button class="btn btn-md" ng-class="{disabled: group.updating}" ng-click="updateGroup()" ng-bind="group.updating ? 'group_edit_submit_active' : 'group_edit_submit' | i18n" ng-disabled="group.updating"></button> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
@ -1,106 +1,105 @@ |
|||||||
<div class="chat_modal_wrap" my-modal-position> |
<div class="chat_modal_wrap md_modal_wrap" my-modal-position> |
||||||
|
|
||||||
<a class="modal-close-button" ng-click="$close()"><i></i></a> |
<div class="md_modal_head"> |
||||||
|
<div class="md_modal_title_wrap"> |
||||||
<div class="modal-body"> |
<div class="md_modal_actions_wrap clearfix"> |
||||||
|
<a class="md_modal_action md_modal_action_close" ng-click="$close()" my-i18n="modal_close"></a> |
||||||
<div class="user_modal_photo_profile_wrap"> |
<a class="md_modal_action" ng-if="chatFull.chat._ != 'chatForbidden' && !chatFull.chat.left" ng-click="editTitle()" my-i18n="modal_edit"></a> |
||||||
|
</div> |
||||||
<div class="user_modal_image_wrap pull-left"> |
<div class="md_modal_title" my-i18n="group_modal_info"></div> |
||||||
<img |
|
||||||
class="user_modal_image" |
|
||||||
my-load-thumb |
|
||||||
watch="true" |
|
||||||
thumb="chatFull.thumb" |
|
||||||
/> |
|
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="chat_modal_info_wrap clearfix"> |
<div class="peer_modal_profile_wrap clearfix"> |
||||||
<h4 class="chat_modal_header" ng-bind-html="chatFull.chat.rTitle"></h4> |
<div class="peer_modal_photo_wrap pull-left" ng-switch="photo.updating"> |
||||||
<p class="chat_modal_members_count" ng-if="chatFull.chat.participants_count > 0"> |
<div ng-switch-when="true" class="peer_modal_photo md_photo_loading loading_dots"> |
||||||
|
<i></i><i></i><i></i> |
||||||
|
</div> |
||||||
|
<a ng-switch-default ng-click="openPhoto(chatFull.chat_photo.id, {p: -chatFull.chat.id})" class="peer_modal_photo" my-peer-photolink="::-chatFull.chat.id" img-class="peer_modal_photo" no-open="true" watch="true" ng-class="{disabled: !chatFull.chat.photo.photo_small}" ng-disabled="!chatFull.chat.photo.photo_small"></a> |
||||||
|
</div> |
||||||
|
<div class="peer_modal_profile"> |
||||||
|
<div class="peer_modal_profile_name" ng-bind-html="chatFull.chat.rTitle"></div> |
||||||
|
<div class="peer_modal_profile_description" ng-if="chatFull.chat.participants_count > 0"> |
||||||
<ng-pluralize count="chatFull.chat.participants_count" |
<ng-pluralize count="chatFull.chat.participants_count" |
||||||
when="group_modal_pluralize_participants"> |
when="group_modal_pluralize_participants"> |
||||||
</ng-pluralize> |
</ng-pluralize> |
||||||
</p> |
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
<div class="chat_modal_actions_wrap clearfix"> |
<div class="md_modal_split_actions_wrap"> |
||||||
|
<div class="md_modal_split_actions"> |
||||||
|
<div class="md_modal_split_action"> |
||||||
|
<input my-file-upload type="file" multiple="false" class="im_attach_input" size="120" multiple="false" accept="image/x-png, image/png, image/gif, image/jpeg" title="{{'group_modal_update_photo' | i18n}}" /> |
||||||
|
<i class="md_modal_split_action_camera"></i> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
<button ng-if="!chatFull.chat.left && chatFull.participants.participants.length" class="btn btn-primary chat_modal_invite_btn" ng-click="inviteToGroup()" my-i18n="group_modal_add_member"></button> |
<div class="md_modal_body"> |
||||||
<button ng-if="chatFull.chat._ != 'chatForbidden' && chatFull.chat.left" class="btn btn-primary chat_modal_main_btn" ng-click="returnToGroup()" my-i18n="group_modal_return"></button> |
|
||||||
<button ng-if="chatFull.chat._ == 'chatForbidden' || chatFull.chat.left" class="btn btn-danger chat_modal_delete_btn" ng-click="flushHistory()" my-i18n="group_modal_menu_delete_chat"></button> |
|
||||||
|
|
||||||
<span ng-if="chatFull.chat._ != 'chatForbidden' && !chatFull.chat.left && !photo.updating" class="btn btn-primary chat_modal_main_btn" > |
<div class="md_modal_sections"> |
||||||
<input my-file-upload type="file" multiple="false" class="im_attach_input" size="120" multiple="false" accept="image/x-png, image/png, image/gif, image/jpeg" /> |
|
||||||
<my-i18n msgid="group_modal_update_photo"></my-i18n> |
|
||||||
</span> |
|
||||||
<span ng-if="photo.updating" class="btn btn-primary chat_modal_main_btn disabled" disabled> |
|
||||||
<my-i18n msgid="group_modal_update_active"></my-i18n><span my-loading-dots></span> |
|
||||||
</span> |
|
||||||
|
|
||||||
|
<div class="md_modal_iconed_section_wrap md_modal_iconed_section_link" ng-if="chatFull.chat._ != 'chatForbidden'"> |
||||||
|
<i class="md_modal_section_icon md_modal_section_icon_person"></i> |
||||||
|
|
||||||
<div class="dropdown chat_modal_other_btn" ng-if="chatFull.chat._ != 'chatForbidden' && !chatFull.chat.left" dropdown> |
<div class="md_modal_section_link_wrap" ng-switch="chatFull.chat.left"> |
||||||
<button class="btn btn-link dropdown-toggle" dropdown-toggle> |
|
||||||
<my-i18n msgid="group_modal_menu_more"></my-i18n> |
|
||||||
<i class="icon icon-caret"></i> |
|
||||||
</button> |
|
||||||
<ul class="dropdown-menu"> |
|
||||||
<li ng-if="chatFull.thumb.location"> |
|
||||||
<a ng-click="deletePhoto()" my-i18n="group_modal_menu_delete_photo"></a> |
|
||||||
</li> |
|
||||||
<li> |
|
||||||
<a ng-click="editTitle()" my-i18n="group_modal_menu_edit_group"></a> |
|
||||||
</li> |
|
||||||
<li> |
|
||||||
<a ng-click="leaveGroup()" my-i18n="group_modal_menu_leave_group"></a> |
|
||||||
</li> |
|
||||||
<li> |
|
||||||
<a ng-click="flushHistory()" my-i18n="group_modal_menu_delete_chat"></a> |
|
||||||
</li> |
|
||||||
</ul> |
|
||||||
</div> |
|
||||||
|
|
||||||
|
<a ng-switch-when="true" class="md_modal_section_link" ng-click="returnToGroup()" my-i18n="group_modal_return"></a> |
||||||
|
<a ng-switch-default class="md_modal_section_link" ng-click="inviteToGroup()" my-i18n="group_modal_add_member"></a> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
||||||
</div> |
|
||||||
|
|
||||||
<div class="modal_section"> |
<div class="md_modal_iconed_section_wrap md_modal_iconed_section_toggle"> |
||||||
<h3 class="modal_section_header" my-i18n="group_modal_settings"></h3> |
<i class="md_modal_section_icon md_modal_section_icon_notification"></i> |
||||||
<div class="modal_section_body"> |
|
||||||
|
|
||||||
<div class="tg_form_group"> |
<a class="md_modal_section_toggle_wrap tg_checkbox" ng-click="settings.notifications = !settings.notifications" ng-class="settings.notifications ? 'tg_checkbox_on' : ''"> |
||||||
<a class="tg_checkbox" ng-click="settings.notifications = !settings.notifications" ng-class="settings.notifications ? 'tg_checkbox_on' : ''"> |
|
||||||
<span class="icon icon-checkbox-outer"><i class="icon-checkbox-inner"></i></span> |
<span class="icon icon-checkbox-outer"><i class="icon-checkbox-inner"></i></span> |
||||||
<span class="tg_checkbox_label" my-i18n="group_modal_notifications"></span> |
<span class="tg_checkbox_label" my-i18n="group_modal_notifications"></span> |
||||||
</a> |
</a> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
|
<div class="md_modal_iconed_section_wrap md_modal_iconed_section_link"> |
||||||
|
<i class="md_modal_section_icon md_modal_section_icon_more"></i> |
||||||
|
|
||||||
|
<div class="md_modal_section_link_wrap"> |
||||||
|
<a class="md_modal_section_link" ng-click="flushHistory()" my-i18n="group_modal_menu_delete_chat"></a> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="modal_section"> |
</div> |
||||||
<h3 class="modal_section_header" my-i18n="group_modal_members"></h3> |
|
||||||
<div class="modal_section_body"> |
|
||||||
|
|
||||||
<div class="chat_modal_members_list"> |
<div ng-if="chatFull.chat._ != 'chatForbidden' && !chatFull.chat.left"> |
||||||
|
|
||||||
<div class="chat_modal_participant_wrap clearfix" ng-repeat="participant in chatFull.participants.participants | orderBy:'-user.sortStatus'"> |
<div class="md_modal_section_splitter" ng-if="chatFull.participants.participants.length > 0"></div> |
||||||
<a ng-if="participant.canKick" ng-click="kickFromGroup(participant.user_id)" class="chat_modal_participant_kick pull-right" my-i18n="group_modal_members_kick"></a> |
|
||||||
|
|
||||||
<a class="chat_modal_participant_photo pull-left" my-user-photolink="participant.user_id" img-class="chat_modal_participant_photo" status="true"></a> |
<div class="md_modal_iconed_section_wrap md_modal_iconed_section_peers"> |
||||||
|
<i class="md_modal_section_icon md_modal_section_icon_people"></i> |
||||||
|
|
||||||
<div class="chat_modal_participant_name"> |
<div class="md_modal_section_peers_wrap"> |
||||||
<a my-user-link="participant.user_id"></a> |
|
||||||
|
<div class="md_modal_list_peer_wrap clearfix" ng-repeat="participant in chatFull.participants.participants | orderBy:'-user.sortStatus'"> |
||||||
|
|
||||||
|
<a ng-if="participant.canLeave" ng-click="leaveGroup()" class="md_modal_list_peer_action pull-right" my-i18n="group_modal_menu_leave"></a> |
||||||
|
<a ng-if="participant.canKick" ng-click="kickFromGroup(participant.user_id)" class="md_modal_list_peer_action pull-right" my-i18n="group_modal_members_kick"></a> |
||||||
|
|
||||||
|
<a class="md_modal_list_peer_photo pull-left" my-peer-photolink="::participant.user_id" img-class="md_modal_list_peer_photo"></a> |
||||||
|
|
||||||
|
<div class="md_modal_list_peer_name"> |
||||||
|
<a class="md_modal_list_peer_name" my-user-link="participant.user_id"></a> |
||||||
</div> |
</div> |
||||||
<div class="chat_modal_participant_status" my-user-status="::participant.user_id"></div> |
<div class="md_modal_list_peer_description" my-user-status="::participant.user_id"></div> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="chat_modal_members_forbidden" ng-if="chatFull.chat._ == 'chatForbidden' || chatFull.chat.left" my-i18n="group_modal_members_unavailable"></div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
|
||||||
|
|
||||||
</div> |
</div> |
||||||
|
@ -1,30 +1,33 @@ |
|||||||
<div class="import_modal_wrap" my-modal-position> |
<div class="md_simple_modal_wrap" my-modal-position> |
||||||
|
|
||||||
<a class="modal-close-button" ng-click="$dismiss()"><i></i></a> |
<div class="md_simple_modal_body"> |
||||||
|
|
||||||
<div class="modal-body"> |
|
||||||
|
|
||||||
<form class="modal_simple_form" ng-submit="doImport()"> |
<form class="modal_simple_form" ng-submit="doImport()"> |
||||||
|
|
||||||
<h4 my-i18n="contact_edit_modal_title"></h4> |
<h4 my-i18n="contact_edit_modal_title"></h4> |
||||||
|
|
||||||
<div class="form-group"> |
<div class="md-input-group md-input-disabled" my-labeled-input> |
||||||
<span class="form-control uneditable-input input-sm disabled" disabled ng-bind="importContact.phone | phoneNumber"></span> |
<label class="md-input-label" my-i18n="contact_import_modal_phone"></label> |
||||||
|
<span class="md-input" ng-bind="importContact.phone | phoneNumber"></span> |
||||||
</div> |
</div> |
||||||
<div class="form-group"> |
|
||||||
<input class="form-control input-sm" my-focused type="text" placeholder="{{'contact_edit_modal_first_name' | i18n}}" ng-model="importContact.first_name"/> |
<div class="md-input-group" my-labeled-input> |
||||||
|
<label class="md-input-label" my-i18n="contact_edit_modal_first_name"></label> |
||||||
|
<input class="md-input" my-focused type="text" ng-model="importContact.first_name" /> |
||||||
</div> |
</div> |
||||||
<div class="form-group"> |
|
||||||
<input class="form-control input-sm" type="text" placeholder="{{'contact_edit_modal_last_name' | i18n}}" ng-model="importContact.last_name"/> |
<div class="md-input-group" my-labeled-input> |
||||||
|
<label class="md-input-label" my-i18n="contact_edit_modal_last_name"></label> |
||||||
|
<input class="md-input" type="text" ng-model="importContact.last_name" /> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</form> |
</form> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="modal-footer"> |
<div class="md_simple_modal_footer"> |
||||||
<a class="btn btn-link" ng-click="$dismiss()" my-i18n="modal_cancel"></a> |
<button class="btn btn-md" ng-click="$dismiss()" my-i18n="modal_cancel"></button> |
||||||
<button class="btn btn-primary" ng-class="{disabled: progress.enabled}" ng-click="doImport()" ng-bind="progress.enabled ? 'contact_edit_modal_submit_active' : 'contact_edit_modal_submit'| i18n" ng-disabled="progress.enabled"></button> |
<button class="btn btn-md" ng-class="{disabled: progress.enabled}" ng-click="doImport()" ng-bind="progress.enabled ? 'contact_edit_modal_submit_active' : 'contact_edit_modal_submit'| i18n" ng-disabled="progress.enabled"></button> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
@ -1,31 +1,33 @@ |
|||||||
<div class="import_modal_wrap" my-modal-position> |
<div class="md_simple_modal_wrap" my-modal-position> |
||||||
|
|
||||||
<a class="modal-close-button" ng-click="$dismiss()"><i></i></a> |
<div class="md_simple_modal_body"> |
||||||
|
|
||||||
<div class="modal-body"> |
|
||||||
|
|
||||||
<form class="modal_simple_form" ng-submit="doImport()"> |
<form class="modal_simple_form" ng-submit="doImport()"> |
||||||
|
|
||||||
<h4 my-i18n="contact_import_modal_title"></h4> |
<h4 my-i18n="contact_import_modal_title"></h4> |
||||||
|
|
||||||
<div class="form-group"> |
<div class="md-input-group" my-labeled-input> |
||||||
<input class="form-control input-sm" my-focused type="text" placeholder="{{'contact_import_modal_phone' | i18n}}" ng-model="importContact.phone"/> |
<label class="md-input-label" my-i18n="contact_import_modal_phone"></label> |
||||||
|
<input class="md-input" my-focused type="text" ng-model="importContact.phone" /> |
||||||
</div> |
</div> |
||||||
<div class="form-group"> |
|
||||||
<input class="form-control input-sm" type="text" placeholder="{{'contact_edit_modal_first_name' | i18n}}" ng-model="importContact.first_name"/> |
<div class="md-input-group" my-labeled-input> |
||||||
|
<label class="md-input-label" my-i18n="contact_edit_modal_first_name"></label> |
||||||
|
<input class="md-input" type="text" ng-model="importContact.first_name" /> |
||||||
</div> |
</div> |
||||||
<div class="form-group"> |
|
||||||
<input class="form-control input-sm" type="text" placeholder="{{'contact_edit_modal_last_name' | i18n}}" ng-model="importContact.last_name"/> |
<div class="md-input-group" my-labeled-input> |
||||||
|
<label class="md-input-label" my-i18n="contact_edit_modal_last_name"></label> |
||||||
|
<input class="md-input" type="text" ng-model="importContact.last_name" /> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</form> |
</form> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="modal-footer"> |
<div class="md_simple_modal_footer"> |
||||||
<a class="btn btn-link pull-left" ng-if="phonebookAvailable" ng-click="importPhonebook()" my-i18n="contact_import_modal_phonebook"></a> |
<button class="btn btn-md" ng-click="$dismiss()" my-i18n="modal_cancel"></button> |
||||||
<a class="btn btn-link" ng-click="$dismiss()" my-i18n="modal_cancel"></a> |
<button class="btn btn-md" ng-class="{disabled: progress.enabled}" ng-click="doImport()" ng-bind="progress.enabled ? 'contact_import_modal_submit_active' : 'contact_import_modal_submit' | i18n" ng-disabled="progress.enabled"></button> |
||||||
<button class="btn btn-primary" ng-class="{disabled: progress.enabled}" ng-click="doImport()" ng-bind="progress.enabled ? 'contact_import_modal_submit_active' : 'contact_import_modal_submit' | i18n" ng-disabled="progress.enabled"></button> |
|
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
@ -1,27 +1,28 @@ |
|||||||
<div class="profile_edit_modal_wrap" my-modal-position> |
<div class="md_simple_modal_wrap" my-modal-position> |
||||||
|
|
||||||
<a class="modal-close-button" ng-click="$dismiss()"><i></i></a> |
<div class="md_simple_modal_body"> |
||||||
|
|
||||||
<div class="modal-body"> |
|
||||||
|
|
||||||
<form class="modal_simple_form" ng-submit="updateProfile()"> |
<form class="modal_simple_form" ng-submit="updateProfile()"> |
||||||
|
|
||||||
<h4 my-i18n="profile_edit_modal_title"></h4> |
<h4 my-i18n="profile_edit_modal_title"></h4> |
||||||
|
|
||||||
<div class="form-group import_modal_field_wrap" ng-class="{'has-error': error.field == 'first_name'}"> |
<div class="md-input-group" ng-class="{'has-error': error.field == 'first_name'}" my-labeled-input> |
||||||
<input class="form-control input-sm" my-focused type="text" placeholder="{{'profile_edit_first_name' | i18n}}" ng-model="profile.first_name" name="first_name"/> |
<label class="md-input-label" my-i18n="profile_edit_first_name"></label> |
||||||
|
<input class="md-input" my-focused type="text" ng-model="profile.first_name" /> |
||||||
</div> |
</div> |
||||||
<div class="form-group import_modal_field_wrap" ng-class="{'has-error': error.field == 'last_name'}"> |
|
||||||
<input class="form-control input-sm" type="text" placeholder="{{'profile_edit_last_name' | i18n}}" ng-model="profile.last_name"/> |
<div class="md-input-group" ng-class="{'has-error': error.field == 'last_name'}" my-labeled-input> |
||||||
|
<label class="md-input-label" my-i18n="profile_edit_last_name"></label> |
||||||
|
<input class="md-input" type="text" ng-model="profile.last_name" /> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</form> |
</form> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="modal-footer"> |
<div class="md_simple_modal_footer"> |
||||||
<a class="btn btn-link" ng-click="$dismiss()" my-i18n="modal_cancel"></a> |
<button class="btn btn-md" ng-click="$dismiss()" my-i18n="modal_cancel"></button> |
||||||
<button class="btn btn-primary" ng-class="{disabled: profile.updating}" ng-click="updateProfile()" ng-bind="profile.updating ? 'profile_edit_submit_active' : 'profile_edit_submit' | i18n" ng-disabled="profile.updating"></button> |
<button class="btn btn-md" ng-class="{disabled: profile.updating}" ng-click="updateProfile()" ng-bind="profile.updating ? 'profile_edit_submit_active' : 'profile_edit_submit' | i18n" ng-disabled="profile.updating"></button> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
@ -1,144 +1,118 @@ |
|||||||
<div class="settings_modal_wrap modal_content_wrap" my-modal-position> |
<div class="settings_modal_wrap md_modal_wrap" my-modal-position> |
||||||
|
|
||||||
<a class="modal-close-button" ng-click="$close()"><i></i></a> |
<div class="md_modal_head"> |
||||||
|
<div class="md_modal_title_wrap"> |
||||||
<div class="modal-body"> |
<div class="md_modal_actions_wrap clearfix"> |
||||||
|
<a class="md_modal_action md_modal_action_close" ng-click="$close()" my-i18n="modal_close"></a> |
||||||
<div class="user_modal_photo_profile_wrap"> |
<a class="md_modal_action" ng-click="editProfile()" my-i18n="modal_edit"></a> |
||||||
|
</div> |
||||||
<a href="" ng-click="openPhoto(photo.id, -profile.id)" class="user_modal_image_wrap pull-left" ng-class="{disabled: !photo.id}"> |
<div class="md_modal_title" my-i18n="settings_modal_title"></div> |
||||||
<img |
|
||||||
class="user_modal_image" |
|
||||||
my-load-thumb |
|
||||||
watch="true" |
|
||||||
thumb="photo" |
|
||||||
/> |
|
||||||
</a> |
|
||||||
|
|
||||||
<div class="user_modal_info_wrap clearfix"> |
|
||||||
<h4 class="user_modal_header" ng-bind-html="profile.rFullName"></h4> |
|
||||||
<p class="user_modal_status" my-user-status="::profile.id"></p> |
|
||||||
|
|
||||||
<div class="user_modal_actions_wrap clearfix"> |
|
||||||
<span class="btn btn-primary user_modal_main_btn" ng-if="!photo.updating"> |
|
||||||
<input my-file-upload type="file" multiple="false" class="im_attach_input" size="120" multiple="false" accept="image/x-png, image/png, image/gif, image/jpeg" /> |
|
||||||
<my-i18n msgid="settings_modal_set_photo"></my-i18n> |
|
||||||
</span> |
|
||||||
<span class="btn btn-primary user_modal_main_btn disabled" disabled ng-if="photo.updating"> |
|
||||||
<my-i18n msgid="settings_modal_photo_updating"></my-i18n> |
|
||||||
<span my-loading-dots></span> |
|
||||||
</span> |
|
||||||
|
|
||||||
<div class="dropdown user_modal_other_btn" dropdown> |
|
||||||
<button class="btn btn-link dropdown-toggle" dropdown-toggle> |
|
||||||
<my-i18n msgid="settings_modal_menu_more"></my-i18n> |
|
||||||
<i class="icon icon-caret"></i> |
|
||||||
</button> |
|
||||||
<ul class="dropdown-menu"> |
|
||||||
<li ng-if="photo.location"> |
|
||||||
<a ng-click="deletePhoto()" my-i18n="settings_modal_delete_photo"></a> |
|
||||||
</li> |
|
||||||
<li> |
|
||||||
<a ng-click="editProfile()" my-i18n="settings_modal_edit_profile"></a> |
|
||||||
</li> |
|
||||||
<li> |
|
||||||
<a ng-click="changeUsername()" my-i18n="settings_modal_edit_username"></a> |
|
||||||
</li> |
|
||||||
<li> |
|
||||||
<a ng-click="terminateSessions()" my-i18n="settings_modal_terminate_sessions"></a> |
|
||||||
</li> |
|
||||||
</ul> |
|
||||||
</div> |
</div> |
||||||
|
|
||||||
|
<div class="peer_modal_profile_wrap clearfix"> |
||||||
|
<div class="peer_modal_photo_wrap pull-left" ng-switch="photo.updating"> |
||||||
|
<div ng-switch-when="true" class="peer_modal_photo md_photo_loading loading_dots"> |
||||||
|
<i></i><i></i><i></i> |
||||||
|
</div> |
||||||
|
<a ng-switch-default ng-click="openPhoto(profile.photo.photo_id, {p: profile.id})" class="peer_modal_photo" my-peer-photolink="::profile.id" img-class="peer_modal_photo" watch="true" no-open="true" ng-class="{disabled: !profile.photo.photo_id}" ng-disabled="!profile.photo.photo_id"></a> |
||||||
|
</div> |
||||||
|
<div class="peer_modal_profile"> |
||||||
|
<div class="peer_modal_profile_name" ng-bind-html="profile.rFullName"></div> |
||||||
|
<div class="peer_modal_profile_description" my-user-status="::profile.id"></div> |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
|
||||||
|
<div class="md_modal_split_actions_wrap"> |
||||||
|
<div class="md_modal_split_actions"> |
||||||
|
<div class="md_modal_split_action"> |
||||||
|
<input my-file-upload type="file" multiple="false" class="im_attach_input" size="120" multiple="false" accept="image/x-png, image/png, image/gif, image/jpeg" title="{{'settings_modal_set_photo' | i18n}}" /> |
||||||
|
<i class="md_modal_split_action_camera"></i> |
||||||
|
</div> |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="modal_section"> |
<div class="md_modal_body"> |
||||||
<h3 class="modal_section_header" my-i18n="user_modal_info"></h3> |
|
||||||
<div class="modal_section_body"> |
|
||||||
|
|
||||||
<dl ng-if="profile.phone"> |
<div class="md_modal_iconed_section_wrap md_modal_iconed_section_number"> |
||||||
<dt><my-i18n msgid="user_modal_phone"></my-i18n>:</dt> |
<i class="md_modal_section_icon md_modal_section_icon_phone"></i> |
||||||
<dd ng-bind="profile.phone | phoneNumber"></dd> |
|
||||||
</dl> |
|
||||||
<dl> |
|
||||||
<dt><my-i18n msgid="user_modal_username"></my-i18n>:</dt> |
|
||||||
<dd ng-switch="profile.username.length > 0"> |
|
||||||
<a class="settings_modal_username_link" ng-switch-when="true" href="" ng-click="changeUsername()" ng-bind="'@' + profile.username"></a> |
|
||||||
<a ng-switch-default href="" ng-click="changeUsername()" my-i18n="settings_modal_empty_username_set"></a> |
|
||||||
</dd> |
|
||||||
</dl> |
|
||||||
|
|
||||||
<dl class="settings_modal_language" ng-controller="AppLangSelectController"> |
<div class="md_modal_section_param_wrap"> |
||||||
<dt><my-i18n msgid="settings_modal_language"></my-i18n>:</dt> |
<div class="md_modal_section_param_value" ng-bind="profile.phone | phoneNumber"></div> |
||||||
<dd> |
<div class="md_modal_section_param_name" my-i18n="user_modal_phone"></div> |
||||||
<select class="form-control settings_modal_language_select" ng-change="localeSelect()" ng-model="form.locale"> |
</div> |
||||||
<option ng-repeat="locale in ::supportedLocales" value="{{locale}}" ng-bind="langNames[locale]" ng-selected="locale == curLocale"></option> |
|
||||||
</select> |
|
||||||
</dd> |
|
||||||
</dl> |
|
||||||
|
|
||||||
|
<div class="md_modal_section_param_wrap"> |
||||||
|
<div class="md_modal_section_param_value" ng-switch="profile.username.length > 0"> |
||||||
|
<a ng-switch-when="true" class="settings_modal_username_link" ng-click="changeUsername()" ng-bind="'@' + profile.username"></a> |
||||||
|
<a ng-switch-default ng-click="changeUsername()" my-i18n="settings_modal_empty_username_set"></a> |
||||||
|
</div> |
||||||
|
<div class="md_modal_section_param_name" my-i18n="user_modal_username"></div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="modal_section"> |
<div class="md_modal_iconed_section_wrap md_modal_iconed_section_toggle"> |
||||||
<h3 class="modal_section_header" my-i18n="settings_modal_settings"></h3> |
<i class="md_modal_section_icon md_modal_section_icon_notification"></i> |
||||||
<div class="modal_section_body"> |
|
||||||
|
|
||||||
<div class="tg_form_group"> |
|
||||||
|
|
||||||
<a class="tg_checkbox" ng-click="toggleDesktop()" ng-class="notify.desktop ? 'tg_checkbox_on' : ''"> |
<a class="md_modal_section_toggle_wrap tg_checkbox" ng-click="toggleDesktop()" ng-class="notify.desktop ? 'tg_checkbox_on' : ''"> |
||||||
<span class="icon icon-checkbox-outer"><i class="icon-checkbox-inner"></i></span> |
<span class="icon icon-checkbox-outer"><i class="icon-checkbox-inner"></i></span> |
||||||
<span class="tg_checkbox_label" my-i18n="settings_modal_notifications"></span> |
<span class="tg_checkbox_label" my-i18n="settings_modal_notifications"></span> |
||||||
</a> |
</a> |
||||||
|
|
||||||
<a class="tg_checkbox" ng-click="toggleSound()" ng-class="notify.volume ? 'tg_checkbox_on' : ''"> |
<a class="md_modal_section_toggle_wrap tg_checkbox" ng-click="toggleSound()" ng-class="notify.volume ? 'tg_checkbox_on' : ''"> |
||||||
<span class="icon icon-checkbox-outer"><i class="icon-checkbox-inner"></i></span> |
<span class="icon icon-checkbox-outer"><i class="icon-checkbox-inner"></i></span> |
||||||
<span class="tg_checkbox_label" my-i18n="settings_modal_sound"></span> |
<span class="tg_checkbox_label" my-i18n="settings_modal_sound"></span> |
||||||
</a> |
</a> |
||||||
|
|
||||||
<div class="tg_range_wrap" ng-show="notify.volume > 0"> |
<div class="md_modal_section_range_wrap tg_range_wrap" ng-show="notify.volume > 0"> |
||||||
<span class="icon icon-volume-outer" ng-class="'icon-volume-outer' + notify.volumeOf4()"> |
<div my-slider slider-model="notify.volume"></div> |
||||||
<i class="icon-volume-inner icon-volume-inner1"></i> |
|
||||||
<i class="icon-volume-inner icon-volume-inner2"></i> |
|
||||||
<i class="icon-volume-inner icon-volume-inner3"></i> |
|
||||||
<i class="icon-volume-inner icon-volume-inner4"></i> |
|
||||||
</span> |
|
||||||
<div class="settings_volume_slider" my-slider slider-model="notify.volume"></div> |
|
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="tg_form_group"> |
<div class="md_modal_iconed_section_wrap md_modal_iconed_section_radio"> |
||||||
<a class="tg_radio" ng-click="toggleCtrlEnter(1)" ng-class="send.enter == 1 ? 'tg_radio_on' : ''"> |
<i class="md_modal_section_icon md_modal_section_icon_keyboard"></i> |
||||||
<i class="icon icon-radio"></i> |
|
||||||
|
<div class="tg_radios_wrap"> |
||||||
|
<a class="md_modal_section_radio_wrap tg_radio" ng-click="toggleCtrlEnter(1)" ng-class="send.enter == 1 ? 'tg_radio_on' : ''"> |
||||||
|
<span class="icon icon-radio-outer"><i class="icon-radio"></i></span> |
||||||
<span my-i18n="settings_modal_enter_send_description_md"></span> |
<span my-i18n="settings_modal_enter_send_description_md"></span> |
||||||
</a> |
</a> |
||||||
|
|
||||||
<a class="tg_radio" ng-click="toggleCtrlEnter(0)" ng-class="send.enter == 0 ? 'tg_radio_on' : ''"> |
<a class="md_modal_section_radio_wrap tg_radio" ng-click="toggleCtrlEnter(0)" ng-class="send.enter == 0 ? 'tg_radio_on' : ''"> |
||||||
<i class="icon icon-radio"></i> |
<span class="icon icon-radio-outer"><i class="icon-radio"></i></span> |
||||||
<span my-i18n="settings_modal_ctrl_enter_send_description_md"></span> |
<span my-i18n="settings_modal_ctrl_enter_send_description_md"></span> |
||||||
</a> |
</a> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
|
<div class="md_modal_iconed_section_wrap md_modal_iconed_section_link"> |
||||||
|
<i class="md_modal_section_icon md_modal_section_icon_more"></i> |
||||||
|
|
||||||
|
<div class="md_modal_section_select_wrap" ng-controller="AppLangSelectController"> |
||||||
|
<div class="dropdown md_modal_section_select" dropdown> |
||||||
|
<button class="btn btn-link dropdown-toggle" dropdown-toggle ng-bind="langNames[curLocale]"></button> |
||||||
|
<ul class="dropdown-menu dropdown-menu-to-up"> |
||||||
|
<li ng-repeat="locale in ::supportedLocales"> |
||||||
|
<a ng-click="localeSelect(locale)" ng-bind="langNames[locale]"></a> |
||||||
|
</li> |
||||||
|
</ul> |
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="modal_section"> |
<div class="md_modal_section_param_name" my-i18n="settings_modal_language"></div> |
||||||
<h3 class="modal_section_header" my-i18n="settings_modal_about"></h3> |
|
||||||
<div class="modal_section_body settings_about_section_body"> |
|
||||||
<div class="settings_external_services pull-right"> |
|
||||||
<a href="https://github.com/zhukov/webogram" target="_blank" title="{{'settings_modal_source_code_github' | i18n}}" class="settings_external_service"><i class="icon icon-github"></i></a> |
|
||||||
<a href="https://twitter.com/telegram_web" target="_blank" title="{{'settings_modal_follow_us_twitter' | i18n}}" class="settings_external_service"><i class="icon icon-twitter"></i></a> |
|
||||||
</div> |
</div> |
||||||
<p> |
|
||||||
<a ng-click="openChangelog()" my-i18n="settings_modal_recent_updates"> |
<div class="md_modal_section_link_wrap"> |
||||||
<my-i18n-param name="version" ng-bind="version"></my-i18n-param> |
<a class="md_modal_section_link" ng-click="terminateSessions()" my-i18n="settings_modal_terminate_sessions"></a> |
||||||
</a> |
|
||||||
</p> |
|
||||||
</div> |
</div> |
||||||
|
|
||||||
|
<div class="md_modal_section_link_wrap"> |
||||||
|
<a class="md_modal_section_link" ng-click="openChangelog()" my-i18n="settings_modal_about"></a> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
@ -1,90 +1,100 @@ |
|||||||
<div class="user_modal_wrap" my-modal-position> |
<div class="user_modal_wrap md_modal_wrap" my-modal-position> |
||||||
|
|
||||||
<a class="modal-close-button" ng-click="$close()"><i></i></a> |
<div class="md_modal_head"> |
||||||
|
<div class="md_modal_title_wrap"> |
||||||
<div class="modal-body"> |
<div class="md_modal_actions_wrap clearfix"> |
||||||
|
<a class="md_modal_action md_modal_action_close" ng-click="$close()" my-i18n="modal_close"></a> |
||||||
|
<a class="md_modal_action" ng-if="user._ == 'userContact'" ng-click="importContact(true)" my-i18n="modal_edit"></a> |
||||||
|
</div> |
||||||
|
<div class="md_modal_title" my-i18n="user_modal_contact_info"></div> |
||||||
|
</div> |
||||||
|
|
||||||
<div class="user_modal_photo_profile_wrap"> |
<div class="peer_modal_profile_wrap clearfix"> |
||||||
|
<div class="peer_modal_photo_wrap pull-left"> |
||||||
|
<a ng-click="openPhoto(user.photo.photo_id, {p: user.id})" class="peer_modal_photo" ng-class="{disabled: !user.photo.photo_id}" ng-disabled="!user.photo.photo_id" my-peer-photolink="::user.id" img-class="peer_modal_photo" no-open="true"></a> |
||||||
|
</div> |
||||||
|
<div class="peer_modal_profile"> |
||||||
|
<div class="peer_modal_profile_name" ng-bind-html="user.rFullName"></div> |
||||||
|
<div class="peer_modal_profile_description" my-user-status="::user.id"></div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
<a href="" ng-click="openPhoto(userPhoto.id, -user.id)" class="user_modal_image_wrap pull-left" ng-class="{disabled: !userPhoto.id}"> |
<div class="md_modal_split_actions_wrap"> |
||||||
<img |
<div class="md_modal_split_actions"> |
||||||
class="user_modal_image" |
<a class="md_modal_split_action" href="" ng-click="goToHistory()" title="{{'user_modal_send_message' | i18n}}"> |
||||||
my-load-thumb |
<i class="md_modal_split_action_msg"></i> |
||||||
thumb="userPhoto" |
|
||||||
/> |
|
||||||
</a> |
</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
<div class="user_modal_info_wrap clearfix"> |
|
||||||
<h4 class="user_modal_header" ng-bind="user | userName"></h4> |
<div class="md_modal_body"> |
||||||
<p class="user_modal_status" ng-if="user.status" my-user-status="::user.id"></p> |
|
||||||
|
<div class="md_modal_sections"> |
||||||
<div class="user_modal_actions_wrap clearfix"> |
|
||||||
<button class="btn btn-primary user_modal_main_btn" ng-click="goToHistory()" my-i18n="user_modal_send_message"></button> |
<div class="md_modal_iconed_section_wrap md_modal_iconed_section_number" ng-if="user.phone || user.username"> |
||||||
|
<i class="md_modal_section_icon md_modal_section_icon_phone"></i> |
||||||
<div class="dropdown user_modal_other_btn" dropdown> |
|
||||||
<button class="btn btn-link dropdown-toggle" dropdown-toggle> |
<div class="md_modal_section_param_wrap" ng-if="user.phone"> |
||||||
<my-i18n msgid="user_modal_menu_more"></my-i18n> |
<div class="md_modal_section_param_value" ng-bind="user.phone | phoneNumber"></div> |
||||||
<i class="icon icon-caret"></i> |
<div class="md_modal_section_param_name" my-i18n="user_modal_phone"></div> |
||||||
</button> |
|
||||||
<ul class="dropdown-menu"> |
|
||||||
<li ng-if="user._ == 'userContact'"> |
|
||||||
<a ng-click="importContact(true)" my-i18n="user_modal_edit_contact"></a> |
|
||||||
</li> |
|
||||||
<li ng-if="user._ == 'userContact'"> |
|
||||||
<a ng-click="deleteContact()" my-i18n="user_modal_delete_contact"></a> |
|
||||||
</li> |
|
||||||
<li ng-if="user.phone.length > 0 && user._ != 'userContact'"> |
|
||||||
<a ng-click="importContact()" my-i18n="user_modal_add_contact"></a> |
|
||||||
</li> |
|
||||||
<li ng-if="user.phone.length > 0"> |
|
||||||
<a ng-click="shareContact()" my-i18n="user_modal_share_contact"></a> |
|
||||||
</li> |
|
||||||
<li ng-if="user._ != 'userSelf'"> |
|
||||||
<a ng-click="toggleBlock(!blocked)" ng-switch="blocked"> |
|
||||||
<my-i18n ng-switch-when="true" msgid="user_modal_unblock_user"></my-i18n> |
|
||||||
<my-i18n ng-switch-default msgid="user_modal_block_user"></my-i18n> |
|
||||||
</a> |
|
||||||
</li> |
|
||||||
<li> |
|
||||||
<a ng-click="flushHistory()" my-i18n="user_modal_delete_chat"></a> |
|
||||||
</li> |
|
||||||
</ul> |
|
||||||
</div> |
</div> |
||||||
|
|
||||||
|
<div class="md_modal_section_param_wrap" ng-if="user.username"> |
||||||
|
<div class="md_modal_section_param_value"> |
||||||
|
<a class="user_modal_username_link" ng-click="changeUsername()" ng-bind="'@' + user.username"></a> |
||||||
</div> |
</div> |
||||||
|
<div class="md_modal_section_param_name" my-i18n="user_modal_username"></div> |
||||||
</div> |
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="md_modal_iconed_section_wrap md_modal_iconed_section_toggle"> |
||||||
|
<i class="md_modal_section_icon md_modal_section_icon_notification"></i> |
||||||
|
|
||||||
|
<a class="md_modal_section_toggle_wrap tg_checkbox" ng-click="settings.notifications = !settings.notifications" ng-class="settings.notifications ? 'tg_checkbox_on' : ''"> |
||||||
|
<span class="icon icon-checkbox-outer"><i class="icon-checkbox-inner"></i></span> |
||||||
|
<span class="tg_checkbox_label" my-i18n="user_modal_notifications"></span> |
||||||
|
</a> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="modal_section" ng-if="user.phone || user.username"> |
<div class="md_modal_iconed_section_wrap md_modal_iconed_section_link" ng-init="f.showMoreActions = !user.phone.length"> |
||||||
<h3 class="modal_section_header" my-i18n="user_modal_info"></h3> |
<i class="md_modal_section_icon md_modal_section_icon_more"></i> |
||||||
<div class="modal_section_body"> |
|
||||||
|
|
||||||
<dl ng-if="user.phone"> |
<div class="md_modal_section_link_wrap" ng-if="user.phone.length > 0 && user._ != 'userContact'"> |
||||||
<dt><my-i18n msgid="user_modal_phone"></my-i18n>:</dt> |
<a class="md_modal_section_link" ng-click="importContact()" my-i18n="user_modal_add_contact"></a> |
||||||
<dd ng-bind="user.phone | phoneNumber"></dd> |
</div> |
||||||
</dl> |
|
||||||
<dl ng-if="user.username"> |
|
||||||
<dt><my-i18n msgid="user_modal_username"></my-i18n>:</dt> |
|
||||||
<dd ng-bind="'@' + user.username"></dd> |
|
||||||
</dl> |
|
||||||
|
|
||||||
|
<div class="md_modal_section_link_wrap" ng-if="user.phone.length > 0"> |
||||||
|
<a class="md_modal_section_link" ng-click="shareContact()" my-i18n="user_modal_share_contact"></a> |
||||||
</div> |
</div> |
||||||
|
|
||||||
|
<div class="md_modal_section_link_wrap" ng-if="f.showMoreActions && user._ == 'userContact'"> |
||||||
|
<a class="md_modal_section_link" ng-click="deleteContact()" my-i18n="user_modal_delete_contact"></a> |
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="modal_section"> |
|
||||||
<h3 class="modal_section_header" my-i18n="user_modal_settings"></h3> |
|
||||||
<div class="modal_section_body"> |
|
||||||
|
|
||||||
<div class="tg_form_group"> |
<div class="md_modal_section_link_wrap" ng-if="f.showMoreActions && user._ != 'userSelf'"> |
||||||
<a class="tg_checkbox" ng-click="settings.notifications = !settings.notifications" ng-class="settings.notifications ? 'tg_checkbox_on' : ''"> |
<a class="md_modal_section_link" ng-click="toggleBlock(!blocked)" ng-switch="blocked"> |
||||||
<span class="icon icon-checkbox-outer"><i class="icon-checkbox-inner"></i></span> |
<my-i18n ng-switch-when="true" msgid="user_modal_unblock_user"></my-i18n> |
||||||
<span class="tg_checkbox_label" my-i18n="user_modal_notifications"></span> |
<my-i18n ng-switch-default msgid="user_modal_block_user"></my-i18n> |
||||||
</a> |
</a> |
||||||
</div> |
</div> |
||||||
|
|
||||||
|
<div class="md_modal_section_link_wrap" ng-if="f.showMoreActions"> |
||||||
|
<a class="md_modal_section_link" ng-click="flushHistory()" my-i18n="user_modal_delete_chat"></a> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="md_modal_section_link_wrap" ng-if="!f.showMoreActions"> |
||||||
|
<a class="md_modal_section_link" ng-click="f.showMoreActions = true" my-i18n="modal_more"></a> |
||||||
|
</div> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
|
@ -1,27 +1,27 @@ |
|||||||
<div class="username_edit_modal_wrap" my-modal-position> |
<div class="md_simple_modal_wrap" my-modal-position> |
||||||
|
|
||||||
<a class="modal-close-button" ng-click="$dismiss()"><i></i></a> |
<div class="md_simple_modal_body"> |
||||||
|
|
||||||
<div class="modal-body"> |
|
||||||
|
|
||||||
<form class="modal_simple_form" ng-submit="updateUsername()"> |
<form class="modal_simple_form" ng-submit="updateUsername()"> |
||||||
|
|
||||||
<h4 my-i18n="username_edit_modal_title"></h4> |
<h4 my-i18n="username_edit_modal_title"></h4> |
||||||
|
|
||||||
<div class="form-group import_modal_field_wrap" ng-class="{'has-error': checked.error, 'has-feedback': checked.feedback.length > 0}"> |
<div class="md-input-group" ng-class="{'md-input-error': checked.error}" my-labeled-input> |
||||||
<input class="form-control input-md" my-focused type="text" placeholder="{{'username_edit_placeholder' | i18n}}" ng-model="profile.username" name="username" ng-model-options="{updateOn: 'default blur', debounce: {default: 600, blur: 0}}"/> |
<label class="md-input-label" my-i18n="username_edit_placeholder"></label> |
||||||
<span ng-if="checked.error" class="glyphicon form-control-feedback" ng-class="{'glyphicon-remove': checked.error}"></span> |
<input class="md-input" my-focused type="text" ng-model="profile.username" name="username" ng-model-options="{updateOn: 'default blur', debounce: {default: 600, blur: 0}}" /> |
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="modal_simple_form_description" my-i18n="username_edit_description_md"></div> |
<div class="md_simple_form_description" my-i18n="username_edit_description_md"></div> |
||||||
|
|
||||||
</form> |
</form> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="modal-footer"> |
<div class="md_simple_modal_footer"> |
||||||
<a class="btn btn-link" ng-click="$dismiss()" my-i18n="modal_cancel"></a> |
|
||||||
<button class="btn btn-primary" ng-class="{disabled: profile.updating}" ng-click="updateUsername()" ng-bind="profile.updating ? 'username_edit_submit_active' : 'username_edit_submit' | i18n" ng-disabled="profile.updating"></button> |
<button class="btn btn-md" ng-click="$dismiss()" my-i18n="modal_cancel"></button> |
||||||
|
<button class="btn btn-md" ng-class="{disabled: profile.updating}" ng-click="updateUsername()" ng-bind="profile.updating ? 'username_edit_submit_active' : 'username_edit_submit' | i18n" ng-disabled="profile.updating"></button> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
Loading…
Reference in new issue